hi guys, could you please prepare script for given format ?
1,1,2,3,5,8,13,21,...etc use vbscript for this...?
Answers were Sorted based on User's Feedback
Answer / phani daddanala
dim a, b, c
a=1
b=1
c=a+b
print a
print b
print c
while c<=100
print c
a=b
b=c
c=a+b
wend
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / madhumita baitalik
Sub Fibonacci()
a = 0
b = 1
For i = 1 To 10
c = a + b
a = b
b = c
msg1 = msg1 & "," & b
Next
Msg = "The string is 1" & msg1
MsgBox Msg
End Sub
| Is This Answer Correct ? | 3 Yes | 3 No |
Hi All, I wanted know how does QTP identifies a DataCombo. While recording I clicked on the data combo and selected a value from the list. The click of Data Combo is recorded but the selection of the value from the list is not recorded. My application is based on VB and SQL server as the database. Please let me know as how do I record the action of selecting a value from a DataCombo list. The list is being loaded from the Database Record set.
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.
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
Can any body please tell me the steps of keyword driven framework of QTP.
Does QTP recognize two diff browser's at a time..?if possible how..? Is it possible run scripts on Mozilla which are recorded on IE..?..How..?
12 Answers IBM, Semantic Space, TCS,
what r advance features u had done in QTP?
Which property do you use to retrieve or assign data into a cell in a Data Table object?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
what is purpose of automation?
how to know no.of mails in our g mail by using vb-script
Whenever we use GETROPROPERTY function.