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 |
write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result
wht type of User defined functions or Java Releated functions do we write in VB scripting
Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will be 'N' number of records arranged in with paging option in datagrid table. Each rows contains two columns, one is text and the other is a radio button. I will pass the first column value and based in it the tool have to select the corresponding radio button in that row. Please someone help me how to handle this as am new to QTP.
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
the develeper not accepter your defect what status is that ?
In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.
3 Answers Broadridge, Cigniti Technologies, HCL,
What is descriptive Programming in qtp.
What is the life cycle of QTP? Pls Give me Exact answer?
how u will evaluate the tool for test automation?
h to all plz send me the answer if any one knows about this....i want the java add-ins for the QTP to do my project which is developed under the java platform.
How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me
In Keyword driven frame work you have write 30 test case for one scenario,in which 10 test cases are failed while executing.client asked you to execute only the failed test cases. HOw can you execute only failed test cases