How to capture the Check point Value into a variable?
Answers were Sorted based on User's Feedback
Answer / jay prakash
Every checkpoint will return a value.
You can capture that as below:
Dim strRtnVal
strRtnVal=Window("Flight Reservation").WinObject("Insert
Done").Check (CheckPoint("Insert Done"))
msgbox strRtnVal
The catch here is put "CheckPoint("Insert Done")" in
brackets as (CheckPoint("Insert Done"))
Please let me know if it helps.
| Is This Answer Correct ? | 5 Yes | 3 No |
checkpoints have values like true/pass(bo0lean)
if your insert one checkpoint it's "pass" it will return
True otherwise it's return false
s=Browser("Google").page("Google").check check("orkut")
if s=True Then
msgbox "it's as per expected"
else
msgbox "it's not as per expected"
| Is This Answer Correct ? | 1 Yes | 1 No |
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example
What is different command used in command Prompt while using QTP?
HOW MANY WAYS ARE THERE TO CPY TEST IN TEST LAB
Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"
Which company is better amdocs or techm ???
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
How to suppress warnings from the test results page?
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
What is Regular Expressions?
Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?
We have opened three browser such as Facebook,Gmail,Amazon,I want to generate the script of Login of Amazon application, but while adding the object such as edit box(user id,password) in OR is not added.Could you please resolve my issue