Okay I figured this one out.

When saving the shared object repository, you can delete the default
name (which uses the unwanted title values), and hard-name it to
something else. eg:

   Browser("OurBrowser").Page("OurPage")

...then modifying your checkpoints to use these values (don't forget
to delete the local object inserted by QTP when recording a
checkpoint!) will result in the test going to the shared repository
and finding the appropiate object.


thanks,
sm


On Nov 4, 11:56 am, SpaceMarine <[email protected]> wrote:
> hello,
>
> i am using QTP v9 to test a web application. i am somewhat experienced
> using it for a Java desktop application.
>
> in the java app world, when i was creating my QTP Object definitions
> it would base the object name on the title of the app window. since we
> used the build number in our title (ex: "SomeApp Build 1120") this was
> problematic, but luckily we could modify the Name descriptor to
> include a regular expression, thus allowing QTP to identify the window
> no matter what the build/title value was.
>
> now i am trying to do the same in a web app -- when i create my QTP
> Object definitions its using the the HTML <title> tag's value to name
> the Browser and Page. like so:
>
>    Browser("JOHN M BYERS 22287345").Page("JOHN M BYERS 22287345")
>
> ...as our customer name changes everytime a user operates the web app,
> this is no good. sometimes, like when using checkpoints, it breaks
> because it cant find the object.
>
> how can i implemented a similar fix such that the title of the page/
> browser is irrelevant? ideally id like to set a static label for both
> the Browser and Page.
>
> thanks!
> sm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to