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
How do you capture tooltip using QTP?
How to use debug tools?
On what document base Descriptive programming is written if build is not yet ready ?
Tell me one scenario, the complex functionality you have automated in your project?
How to recognise the webelement and verifying that webelement is enabled?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
How can you handle exceptions in qtp?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
What are the different kinds of test steps?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
What are main panes available in qtp test browser?
I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.
Suggest and Define a solution for an application whose objects are not recognized by UFT?