hello,

i am using QTP 9.0 on a Java desktop application. for the basic things
i have no problem. ive written some automated tests and things are
cool. thus far most of my tests have used Local repositories. now,
however, im moving to shared -- when i have a bunch of tests that use
the same screen objects, i create a shared respository in Quality
Center (QC) and link it to my test. cool.

the problem -- our application is updated by the developers in
periodic builds; when a new build is released the title of our main
JavaDialog changes from "SomeTitle (TM) (Build xx)" to "SomeTitle (TM)
(Build yy)". the problem: when this happens QTP fails to pair up the
JavaDialog with the one defined in the repository since the title is
different.

to fix this i open the shared repository in the manager, find the
object in question (the JavaDialog), and edit its "title" property
(listed under "Descriptive properties"). where it says "SomeTitle (TM)
(Build xx)" i click and instruct it to use a regular expression. now,
i would think the regex would be like so:

   SomeTitle /(TM/)*

or even:

   SomeTitle*

...yet with those QTP fails to pair the object w/ the repository. but
if i use this:

   SomeTitle*.*

...then QTP succesfully matches the JavaDialog to the one defined in
the shared repository.

why is that? id expect only a single * to be needed. am i just
misunderstanding how regexes work, or is QTP's regex engine slightly
different?


thanks!

--~--~---------~--~----~------------~-------~--~----~
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