How do you done Data-Driven Testing using MS-Word. What is
the script for that
Answers were Sorted based on User's Feedback
Answer / rajani
option explicit
dim fso,f,n
set fso=createobject("Scripting.filesystemobject")
set f=fso.opentextfile("path of the word document",1,false)
while(f.atendoflen<>true)'reading the word doc.
n=f.readline 'retrive the data from doc.line by line
wend.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / prashanth chenna
Hai friends,
What is the script above is absolutly correct. in script,
in 4th line 1--> Read mode of file
2--> Write mode of file
8--> Append mode of file
True--> New file creation when specified file doesnot exist
False--> QTP is not responsible when specified file doesnot
exist
in 6th line
f.atendofline--> the end of file content
this script not only for MS.Word also for Notepad ie for
Flat files.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sunitha
Hi,
I tried the steps given above, but it displays only in
terms of ASCII. could you please give me the correction.
| Is This Answer Correct ? | 0 Yes | 0 No |
If 2 gmail browsers are opened in our system, how to enter the mail id and password into second browser by using discriptive program?
how do close the task manager through QTP?
what is keyword driven testing in qtp?n how is it useful?
I have a login page like username, password and login. I have to pass the 50 user names and 50 passwords but how can i test this page with out using parameters?
Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?
Hi I am from delhi, Now I can surely say that no institution of QTP here in Delhi After reading you people I want to get cry, from last six month I am trying to learn QTP, I have knowledge too but dont know VB Script. Now it appears that without learning QTP no one can learn complete QTP, I want to get a formal learning in QTP. Can you suggest me the best institution. and please let me know the charges and span of the course too. thanks in advance to you alkaa.dugaal@gmail.com
Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?
In qtp is it possible to check broken links of a page?
Can a function return a dictionary object?
Can we do qtp testing without creating objects in Dbject repository? can we do it completely writing code i.e in expert view only. Are there any books for this?
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
how to associate object repository during runtime in qtp