If you entered into yahoo mail with your valid user name
and password , then you will get " welcome , username "
(for example you will see , “welcome, Krishna” ) text on
the top of the Inbox page , how can you test the user name
is correct or not using QTP?
Answer Posted / nanda
yeah....
you can use the getROProperty method to get that value.
later on compare that value with ur parameter.
for example:
GetAppval = Browser("XXX").Page("XXX").WebElement("html
tag:=TD","index:=3").GetROProperty("innertext")
getparam = Datatable.Value("name",dtGlobalSheet)
If GetAppval = getparam then
msgbox "pass"
Else
msgbox "fail"
End If
guys here i just given the logic to use. instead message
box use a reporter statement or if u r writing to exeternal
log use it. and i used data table for example, but many
people (including me) will use separate excel file for
parameterization. but this is the logic to check values.
Regards...
nanda.d reddy
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
If the objects hierarchy is changing from build to build, then how you will handle that condition?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
Did the scripts need lot of maintenance? If yes, why?
Can we run multiple QTP scripts one after the other without manual intervention? How?
How will you compare keyword and expert view?
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
Can we record an application running on a remote machine using qtp?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
how to evalute defects in QTP script?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
What is checkpoint in qtp?
What is the expert view?
Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution