i have batch scripts in qtp and i want to update the status
like pass/fail in excel sheet after excecuting the every
script in batch.how to write the script for this?
Answer Posted / nihar ranjan
for each search_data in ows.usedrange
if search_data="fail" then
search_data.color.index="3"
else
search_data.color.index="4"
end if
next
| Is This Answer Correct ? | 0 Yes | 11 No |
Post New Answer View All Answers
can u please explain what is the exact difference between qtp8.2 and 9.0
Give the syntax to load function at run time.
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What is object spy in quicktest professional?
When you open QTP, how many sheets you can see?
Have you used xml check point in your project?
When and why to use descriptive programming?
Describe the differences between functions and actions in UFT?
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
How many tabs are available to view your test in a test pane and what are they?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
How does qtp recognize objects in aut?