how to display message with out using msgbox function?

Answers were Sorted based on User's Feedback



how to display message with out using msgbox function?..

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

how to display message with out using msgbox function?..

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

how to display message with out using msgbox function?..

Answer / venkat

hello swathi.......


you are wrong..

Wscript.Stdout.Write will not work...

Is This Answer Correct ?    6 Yes 0 No

how to display message with out using msgbox function?..

Answer / na

Wscript.Stdout.Write will not work...

Is This Answer Correct ?    0 Yes 0 No

how to display message with out using msgbox function?..

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

Post New Answer

More QTP Interview Questions

In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

0 Answers   HCL,


What is an expert view and keyword view?

0 Answers  


What is data driven testing in QTP?

11 Answers   Agile Software,


QTP -object reposistory spy tool is not able to spy the pop up message appearing in the application, so how is that i can handle such run time pop ups in QTP by code???

2 Answers   CGI,






How to handle Dynamically changing Objects in QTP?

4 Answers  


How i can test the background color of the records displayed in a Table. Eg i have a .net desktop application and there is a Table(swftable) with records displayed in the grids. i have to validate whether the 1st record is displayed in white background color and 2nd record in light blue background color...But the constraints is that once user click on the first record...the background color changes to grey.......Plze let me now how to validate this with QTP 9.2.

9 Answers   Accenture,


Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP

1 Answers   HP,


How to recognise the webelement and verifying that webelement is enabled?

0 Answers  


How to use debug tools?

0 Answers  


Pls explain me the difference between ........ Description.Create and CreateObject

5 Answers  


can we use QTP for load testing instead of load runner?

3 Answers  


Categories