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
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
terminal services client
UFT 12.02 which ALM version will support
If I give some thousand tests to execute in two days what do you do?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
in a web page How to check and display a particular word from a paragraph?
Explain the difference between call to action and copy action?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
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
What is the Difference between test object and run time object?
How to save your test using quicktest professional?
What is parameter in qtp?
Difference between copy to action and call to action?
what is the diff b/w assistive and mandatary rules of object repository in QTP???