What is meant by Step Generator in Qtp How is it used? pls
gimme in detail
Answer Posted / anjireddy.idamakanti
It is used to generate steps in the Test pane without click
on start Recording.
Step Generator consists of statements in three categories
such as
(i) Functions
(ii) Utility objects
(iii) Test Objects.
(i) Functions
This category specifies all general and mathematical
operations such as left, right, len, time, cint, cdbl, cstr,
ltrim, rtrim, trim etc.,
(ii) Test Object
This category specifies the operations which are performed
on the objects such as Set, Select, Activate, SetSecure,
Click, GetVisibleText, GetROProperty, GetTOProperty,
GetItem, GetItemCount, GetContent …. Etc.,
(iii) Utility Objects
This category specifies all miscellaneous operations such as
DataTableOperations, SystemUtil Operations, QCUtil
Operations, Recovery Operations etc.,
Ex
Prepare script for calculation Test in Application Flight
Reservation
Option explicit Dim x,y,tot,i
For i = 1 to 5 step 1 Window("Flight Reservation").Activate
Window("Flight Reservation").WinMenu("Menu").Select
"File;Open Order..." Window("Flight
Reservation").Dialog("Open Order").WinCheckBox("Order
No.").Set "ON"
Window("Flight Reservation").Dialog("Open
Order").WinEdit("Edit").Set i Window("Flight
Reservation").Dialog("Open Order").WinButton("OK").Click
x = Window("Flight
Reservation").WinEdit("Tickets:").GetVisibleText()
y = Window("Flight
Reservation").WinEdit("Price:").GetVisibleText() y=mid(y,2,
len(y)-1)
tot = Window("Flight
Reservation").WinEdit("Total:").GetVisibleText()
tot=mid(tot,2, len(tot)-1)
If cdbl(tot)=cdbl(x) * cdbl(y) Then
reporter.ReportEvent micPass, "Calculation is correct",
"Test is Pass" else
reporter.ReportEvent micFail, "Calculation is not correct",
"Test is fail"
End If Next
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points
What are the major/ important methods, functions in QTP we use realtime testing
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
What are the types of data tables in qtp?
Differentiate the type of test cases which can be automated and which cannot be automated?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
desribe a situation where u faced a stressful situation and how did u cope with it
what is the frame work in J-meter?
What are the different kinds of test steps?
how do u plan test automation?
How does qtp identify gui object?
What is Curd testing?
Explain the difference between check point and output value?
What is action?
What does it mean when a check point is in red color? What do you do?