how to display message with out using msgbox function?
Answers were Sorted based on User's Feedback
Answer / sandeepguttikonda
I don't know whether am answerig your question or not.
But I would like to share my knowledge upon this question.
In QTP we are having one keyword named "Print"
This will display the results in QTP's "Quick Test PrintLog"
This also functions same as Msgbox.
Example:
1) Print "Print this in Quicktest PrintLog"
2) Result = 3+4
Print "The sum of two numbers = "&result.
Please let me know if I have not answered your Question
mean while I will explore for other solution too.
Thanks.
Regards,
Sandeep Guttikonda
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / harsha
hi sandeep....print is different from message box. We can
display message box by this way also.
Set oShell = CreateObject("WScript.Shell")
Mesgbox = oShell.Popup("Do you Want to
Continue",10,"Welcome",3)
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / venkat
hello swathi.......
you are wrong..
Wscript.Stdout.Write will not work...
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / swathi
to display message without using msgbox in standard output
format
Wscript.Stdout.Write
it will display the results same like msgbox
please correct me if am wrong..
| Is This Answer Correct ? | 0 Yes | 2 No |
What is test object?
How can I test the unix shell in QTP
Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman
I am Using QTP 9.1 version. I have created a Shared Object Repository. The size of Shared Object REpository is 9 MB. In my system i am able to execute the script very flexibly and it is very fast. But if i copy the same code into other system with the same configuration, it is executing very slowly(i.e dam slow). It is not happening in all machines it is in only some machines. Can please any one give th esolution. It is high priority to me as i need to give demo to client on their machines.
w is output value
why we use check points , In qtp we use the any check points , what r they , when and why
how much space occupies in object respository by default?
can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???
can anyone tell me from where i can download qtp demo or crack version
What is meant by Pseudo Code?
How to do the Mouse Operations in QTP. How to aacess an Image in a web application to save it on my desktop. To my Knwoledge that can be done by mouse right click on the Image and selecting 'Save the Image'option. Or Is there any alternate way to do this..
What is the difference between property and method?