Micro Focus QTP (UFT) Forums
Code issue - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Code issue (/Thread-Code-issue)

Pages: 1 2 3


RE: Code issue - 1981.madhu@gmail.com - 10-28-2009

vbs file of urs which u used and .tsr file,i will execte here .


RE: Code issue - Saket - 10-28-2009

I used a very simple vbs file, which returns a message box
Code:
msgbox "Message from VBS File"
you can create a vbs file with this and try.

regarding tsr file - I have not used any as I dont for what purpose you are adding it.
are you trying to add the repository to the vbs file?


RE: Code issue - 1981.madhu@gmail.com - 10-28-2009

ok, will try and let u know saket .Thanks alottttt .


RE: Code issue - 1981.madhu@gmail.com - 10-29-2009

In vbs file just ur code pasted and tried ..thats also not working.dont know wats the issue behind of this .In setting->run ->i selected run all rows .is this any issue ?pls suggest .Otherwise is there any code issue ?


RE: Code issue - Saket - 10-29-2009

No Setting run on all rows should not cause any issue. what is the error you are getting now?


RE: Code issue - 1981.madhu@gmail.com - 10-29-2009

No error .Its running successfully .Iam not getting output that msgbox


RE: Code issue - Saket - 10-29-2009

what is the output for this statement in your for loop
msgbox datatable.Value("Script_Path","newsheet")


RE: Code issue - 1981.madhu@gmail.com - 10-30-2009

When i debuging ,cursor never going into the if condition .

Thats the problem.Iam attaching the excel sheet vbs files and .tsr file try from ur end .Change the Paths in the excel .
[quote='1981.madhu@gmail.com' pid='8578' dateline='1256910290']
When i debuging ,cursor never going into the if condition .

Thats the problem.
Hi,

intItem = RandomNumber.Value(LBound(arrAllItems), UBound(arrAllItems))
Window("Flight Reservation").WinComboBox("Fly From:").Select "#" & intItem

While executing above code getting error .Pls help mew


RE: Code issue - Saket - 10-31-2009

I cant find any attachment, can you upload it again?


RE: Code issue - 1981.madhu@gmail.com - 11-02-2009

my vbs file code as below:

Code:
SystemUtil.Run  "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"

Dialog("Login").WinEdit("Agent Name:").Set("madhu")
Dialog("Login").WinEdit("Password:").Set ("mercury")
Dialog("Login").WinButton("OK").Click

and .tsr fiel nothing but recorded flight application

excel file as below

1st column header->Script_Path and its path as C:\Documents and Settings\madhu\Desktop\Loginn.vbs
2 nd column header->Repository_Path and its path as :C:\Documents and Settings\madhu\Desktop\Flight.tsr
3 rd header->column Flag and its value as :Y


while debugging in my code Cursor not going inside the IF cONDITION (iNSIDE OF CODE)Pls suggest