how do you done Data-driven test using MS-Word Instead of
DataTable
Answers were Sorted based on User's Feedback
Answer / saravana.s
In Case, if my word or text file is having millions of
lines then how can i calculate efficiently the total number
of lines?
| Is This Answer Correct ? | 1 Yes | 0 No |
Could u please give Idea and code for this Question
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / rajani
using the following script we do the data driven test, data
from flat file i.e., from notepad, Ms-Word etc.,
option explicit
dim fso,f,n
set fso=createobject("Scripting.filesystemobject")
set f=fso.opentextfile("path of word doc.",1,false)
while(f.atendofline<>true)'read the file to the end of file
n=f.readline()'line by line reading
| Is This Answer Correct ? | 0 Yes | 1 No |
What is Object Spy?
7 Answers JKH, Ordain Solutions,
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?
how to disable the pop ups through QTP using a script
What is the difference between QTP 8.2 and QTP 9.2
How to record application running on the Virtual machine?
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
Explain actions in qtp ?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
hi,which is the best book to refer QTP 9.2 and Faq's.
could any help me please, how to work on visual foxpro application using UFT
What type of problems one will face with QTP , if too many browsers are opened at a time?