hi,
In A Table there are some columns and dynamic rows and in each
row in first column there is a link with name. upon clicking on
that link it will show some details. write the vbscript to check
that link without descriptive programming?
Answer Posted / kshama
I think the question asked was that you have to search for
"Testing" word from the name column.
Follow the below given steps:
1. prepare an excel sheet whose colums are dynamic and rows
are static.
2.Rename the "sheet1" with any name say for an eg:- "Data"
3.suppose excel sheet contains columns like Name, class and
section. and in "Name" column you have to search for the
word "Testing".
4.In Qtp write the following scipt.
datatable.addsheet"vital"
'Vital is the name of the virtual sheet in QTP'
datatable.importsheet"Pathe of the Excel sheet","Data","vital"
rc=datatable.getsheet("vital".getrowcount
MsgBox rc
For i=1 to rc
Dim a
a=datatable.value="Name","vital"
if a="Testing"
MsgBox "Testing"
Endif
Next
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
Write a script to verify font style and color of a windows object using descriptive programming
What is synchronization? What are the ways you can synchronize?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
is it possible to add sheets to excel at runtime
How can I check if a environment variable exist or not?
What is quick test pro? What is a quick test professional?
How to import a test case present in ".xls" file to TD under a Test set?
how many maximum number of virtual users we can create?
What is Port testing. Whhen will you perform?
How can I use Call dlls in QTP ?
How many types of Automation frameworks are there in UFT? Describe them.
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Brief the process of testing with UFT?