1) How will you associate SOR in Runtime? ( u had written 10
lines of code from 11th line u want associate what code u
will write)
2) How will close n number of browser expect only one which
is has to test? ( First tell me how will you identify how
many browser are opened ) what logic u will use?
3) In web Table u want to click on link ( Link Name Mohamed
) you dont know in which row and column that link is there.
how wil u identify and click on that link.
Answers were Sorted based on User's Feedback
Answer / prasant87
1)Write the below code after line 10 -
RepositoriesCollection.Add ("C:\Test\ObjRes.tsr")
2)Please some one tell the logic. I do not know:(
3. Capture the link property and write the code to click on that.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / prathyusha
We can go for descriptive programming to get the collection of browsers.
set obrowser=description.create
obrowser.add "micclass","Browser"
set obrowsercol=Desktop.childobjects(obrowser)
msgbox obrowsercol.count
from this we can get to know howmany browsers are opened.
if you don't want to close particular browser we can get the name of the browser using getroproperty("name") then we can match that browser with expected one then we can close remaining browsers.
set obrowser=description.create
obrowser.add "micclass","Browser"
set obrowsercol=Desktop.childobjects(obrowser)
for i=0 to obrowsercol.count-1
browsername=browser.getroproperty("name")
if browsername <> "Google" then
obrowsercol(i).close
end if
| Is This Answer Correct ? | 0 Yes | 0 No |
Hi All, I am 4 yrs experieced in manual testing and new to automation tool QTP. Iam trying to learn it thru online and material i have.I am able to understand but unable to trace out which method or function to be used where necessary in VB Script. How come we know the functions or methods to be used to open a window when clicking on button or so...Pls suggest me.How can i proceed further to apt VB Script.
when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.
what are the design objects in qtp
What are the key points to create a framework in QTP for oracle forms?
what is the difference between call to copy action and call to an existing action
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
Please guide me release notes of Automation once scripts are completed
What are the limitations in using Virtual objects?
How to add a standard checkpoint in your test ?
Find the 'String' from excel sheet and save to another sheet.But we don't know the string column number and row number?
in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do
terminal services client