The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Oracle e-Test

Pages: 1
DeadGrunt
Member


Reged: 10/30/06
Posts: 154
Loc: Vilnius, Lithuania
Two Oracle forms have elements with the same name
      #634202 - 07/12/10 12:49 AM

Hi all

We test application in Oracle Forms 10G, often there are several forms opened simultaneously.

And now question – what to do if two or more forms have element with the same Block Name and Name?

For example:
//forms:button[(@name=’TOOLBAR_EXIT_FORM_0’)]

How to address these elements?

--------------------
Roman


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mill_town_Larry
Member


Reged: 07/12/01
Posts: 212
Re: Two Oracle forms have elements with the same name [Re: DeadGrunt]
      #634789 - 07/14/10 04:19 PM

How is it that they have the same name? I though the default naming would be:

TOOLBAR_EXIT_FORM_0
TOOLBAR_EXIT_FORM_1

I there is a duplicate name then OpenScript is just going to find the first one. Do the elements do different things?


Post Extras: Print Post   Remind Me!   Notify Moderator  
DeadGrunt
Member


Reged: 10/30/06
Posts: 154
Loc: Vilnius, Lithuania
Re: Two Oracle forms have elements with the same name [Re: Mill_town_Larry]
      #634811 - 07/14/10 11:12 PM

if they were on the same form, then I think index would work correctly

but they are on different forms, so both have index "0"

these elements do different things - first closes first form, second closes second form

yes, now OpenScript simply finds the first element. unfortunately, it's the button on the inactive form, and it obviously cannot be pressed

--------------------
Roman

Edited by DeadGrunt (07/14/10 11:16 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
DeadGrunt
Member


Reged: 10/30/06
Posts: 154
Loc: Vilnius, Lithuania
Re: Two Oracle forms have elements with the same name [Re: DeadGrunt]
      #634812 - 07/14/10 11:18 PM

now we are thinking about instrumenting the code - inserting form name to the each block name, so it will look like:

//forms:button[(@name=’FORM1_TOOLBAR_EXIT_FORM_0’)]
//forms:button[(@name=’FORM2_TOOLBAR_EXIT_FORM_0’)]

--------------------
Roman


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  Joe Strazzere, martinh, AJ 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 336

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5