Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

msg boxes in test result window

This is a discussion on msg boxes in test result window within the QTP forums, part of the Software Testing category; Hai. I am using QTP 9.0 for web testing. i am new for this plz help me. 1. In my scripts i add the message boxs for conformation the results. ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 10-18-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
msg boxes in test result window

Hai.

I am using QTP 9.0 for web testing.
i am new for this plz help me.

1. In my scripts i add the message boxs for conformation the results. because in my web i have to see that message boxes. If i display message boxes, i have to go the script and click ok in the msg box then only script move the next line. but i want to write these msg boxes in the test result window itself. so i cant save the time and i will not sit in front off the monitor na. once my script finished its run i can easily analysis the result with my messages na.

Is there any option for this facility. plz help me for this
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Oct 2007
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
mgkganesh is on a distinguished road
Re: msg boxes in test result window

Reporter.reportevent eventstatus, reportstepname, details [, in] argument type description eventstatus number or pre-defined constant status of the report step: 0 or micpass: causes the status of this step to be passed and sends the specified message to the report. 1 or micfail: causes the status of this step to be failed and sends the specified message to the report. When this step runs, the test or component fails. 2 or micdone: sends a message to the report without affecting the pass/fail status of the test or component. 3 or micwarning: sends a warning message to the report, but does not cause the test or component to stop running, and does not affect the pass/fail status of the test or component. Reportstepname string name of the intended step in the report (object name). Details string description of the report event. The string will be displayed in the step details frame in the report. In n/a not in use. Example the following examples use the reportevent method to report a failed step. Reporter.reportevent 1, "custom step", "the user-defined step failed." or reporter.reportevent micfail, "custom step", "the user-defined step failed."
Reply With Quote
  #3 (permalink)  
Old 10-30-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: msg boxes in test result window

Hi,

I cant understand ur ans.
Plz explain.
Reply With Quote
  #4 (permalink)  
Old 10-30-2007
Contributing Member
 
Join Date: Oct 2007
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
mgkganesh is on a distinguished road
Re: msg boxes in test result window

U can use Reporter.reportevent to pass messages to the Test results. I had just pasted the syntax of Reporter.reportevent
Reply With Quote
  #5 (permalink)  
Old 10-30-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: msg boxes in test result window

Hi,

I count the checked boxes.
in my page display only 25 orders
i checked all 25
now i test the total no of records and checked boxes

it should 25=25
this result is pass
else fails
now i got 2 counts
and compare that and display the msg "Pass"

How i write this in the test result.

how i use this reporter.reportevent
Plz explain

i am new for QTP.
Reply With Quote
  #6 (permalink)  
Old 11-02-2007
Junior Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
sudhanandareddy is on a distinguished road
Re: msg boxes in test result window

HI..


try this code...

set chkbox = description.create
chkbox("class name").value = WinCheckbox

get_chkbox = window("").childobjects(chkbox)

count_chkbox = get_chkbox.count

x = 0

for i = 0 to count_chkbox-1

get_property = get_chkbox(i).getROProperty("checked")

if get_property = "ON" then

x = x+1

else
end if

Next

if x = count_chkbox then

reporter.reportevent micpass, "all are checked","all checkboxes in window are checked"

else

reporter.reportevent micfail, "some are not checked" "some checkboxes in window are not checked"

end if


it will work..and it does not show mesagebox and directly writes to results window.
Reply With Quote
  #7 (permalink)  
Old 11-03-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: msg boxes in test result window

Hi sudhananda

Thanks reddy, Its working fine.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Test case to find the word for ctrl 'f' button window Geek_Guest Test Cases 2 09-24-2008 07:01 AM
Select multiple check boxes in VB application JobHelper QTP 5 03-03-2008 02:47 PM
Test results window is not opening Geek_Guest Rational Robot 2 11-22-2007 02:37 AM
What is 'DB' Folder in the test result folder Geek_Guest WinRunner 0 06-24-2007 04:19 PM
Log boxes in AR module JobHelper Oracle Apps 0 12-20-2006 07:23 PM


All times are GMT -4. The time now is 11:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved