Posts: 2
Threads: 1
Joined: May 2012
Reputation:
0
05-22-2012, 04:56 PM
Hi,
I need to create a QTP script which identifies all the objects say buttons, drop down etc. on any screen and validates them.
It should be a reusable script.
Can anyone help on this.
Thanks, Dipti
Posts: 66
Threads: 7
Joined: Sep 2011
Reputation:
0
05-22-2012, 05:59 PM
For one of my project I had a similar scenario to work.
We had created a function which will take - type of object(swfbutton),name of object (Name) and the object path(.SWfwindow("Main"))
And then inside function we can put a switch statement and perfom whatever operation we have to perform.
This is one time effort but this function we can reuse multiple times and it was really useful.
Please revert back if you have any query regarding this.
Posts: 2
Threads: 1
Joined: May 2012
Reputation:
0
05-29-2012, 09:53 AM
Thanks Shridevi.
It would be great help, if you could mail or post the function code.
Atleast i would get some idea.
In my project i need to capture all the elements on any opened screen and then validate them.
mailid: dipti.pasricha@gmail.com
Regards,
Dipti
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
05-29-2012, 07:18 PM
HI Dipti,
we can capture the elements using the childobjects but I need some more clarification on the validation part. What do you mean by validate? What type of validation?
Thanks,
SUpputuri