suppose i have one datatable in my datatable in 2 nd row 3rd
column one link is ther i need to validate that link how do
u do this?(wipro)
Answers were Sorted based on User's Feedback
Answer / chandana
datatable.rowcount(row num)
datatable.value("column num","sheet num")
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / natarajng
var = "<Link Name>"
n = datatable.rowcount
for i = 0 to n
g= datatable.parametercount(i)
for j = 0 to g
k = datatable.value(j)
if k = var then
reporter.reportevent micpass, "validating link", "Link
is validated"
else
reporter.reportevent micfail, "validating link", "link is
noy found"
end if
next
next
If any issues nanda.dreddy@gmail.com
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / krishna
datatable.getcurrentrow(2,3)
for i=2&3 step2
next
u will get answer
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / suman
L_Name="<Link-name>"
L_Name1=B("name").P("title").WT("Tbname").Getcelldata(2,3)
if strcomp(L_Name=L_Name1)=0 Then
Reporter.reporteven micpass,"Linkname","Is Present"
else
Reporter.reporteven micpass,"Linkname","Is not Present"
Is This Answer Correct ? | 0 Yes | 0 No |
How to import excel sheet to QC?
What is the Obect Repository type, we use in Automated Testing..in Real time.. Pls anybody can give the answer.. Thanks in advance...
what are the main differences between keyword driven frame work and data driven frame work?
1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 objects there in web page,how we will store that 100 objects repostries?
what is error and fault in terms of software quality?
How to Identify broken links in QTP
what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description
Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya
Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?
I am testing a website TheLancet in qtp 9.2 and running a script but its not working.Tell me if m doing anything wrong in the script. If Browser("TheLancet.com - Home Page").Page("TheLancet.com - Home Page").Link("Clinical").exists then msgbox "object exist" Else msgbox"object doesnt exist"
What is Reusable component is QTP...Anybody can answer it..Thanks in advance...
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance