Is it possible to test Flat file using QTP?
I have two file- first file is Input file and second file
is output file.
Input file has Format like first 2 field is record type,
next 10 field is Description.
Output file also has format.
I want to check this file format using QTP. Is it possible??
please reply with example.
Answers were Sorted based on User's Feedback
Answer / guest
Yes Possible to Test Flat File using File System Object
but your question is not clear....
How many fields in first file 12 or 10 ?...
what is meant by record type... field or column in flat
file you mean notepad or excell sheet...
Give clear info.
regards...
Guest
| Is This Answer Correct ? | 2 Yes | 0 No |
How to capture dynamic objects in qtp like mark up text
During test run,How will you copy/paste from/to clipboard?
Plz explain about Virtual object? What is the situation u r using , explain with example?
What is parameterization? What is syncronization pt.?
3 Answers Semantic Space, SRM,
What is a quick test professional?
write the code to reverse a string without using Strrev built in function.
How to Import data from a ".xls" file to Data table during Runtime.
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.
Suppose I want fail that check point? How can you do that?
how will you check how many members visited the website www.infosys.com?
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..