How to write the ordee# validated to the report file : Automation Tools

How to write the ordee# validated to the report file

Ranorex Spy, Recorder, and Studio.

How to write the ordee# validated to the report file

Postby vdoddaguni » Thu Jul 28, 2011 6:00 pm

Hi,

I am placing an order from our website. Once I get the order confirmation number, I am validating it during the recording. However, I want to write the value that was validated to the report. log file. In this way, we have the order numbers in the log file.

How can this be accomplished? Please let me know...

Thanks

div[2]/p[@innertext='Your confirmation # is ']/strong/span[@id='ctl00_Content_OrderNumberLabel']
vdoddaguni
 
Posts: 11
Joined: Mon Apr 11, 2011 10:34 pm

Re: How to write the ordee# validated to the report file

Postby Support Team » Thu Jul 28, 2011 6:16 pm

Please, read the API documentation of the "message" parameter of the Validate method you are using (e.g. for Validate.Attribute). The "message" parameter supports placeholders that are replaced by the actual value of the validated attribute.

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How to write the ordee# validated to the report file

Postby vdoddaguni » Fri Jul 29, 2011 9:24 pm

Hi,

I am new to Ranorex and do not have much programming background. If you can give me a code snippet that I can use it will be very beneficial.

Thanks
vdoddaguni
 
Posts: 11
Joined: Mon Apr 11, 2011 10:34 pm

Re: How to write the ordee# validated to the report file

Postby Support Team » Mon Aug 01, 2011 3:47 pm

Hi,

If you want to customize the message of the Validate, please use following code:
Validate.Attribute(repo.AppFolder.RepoItemInfo, "Text", "match", "YourTextHere");

If you are new at Ranorex and want to write code, I would suggest you to read following user guide entry.
http://www.ranorex.com/support/user-gui ... dules.html

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation Tools

Who is online

Users browsing this forum: No registered users and 0 guests