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']
How to write the ordee# validated to the report file
-
- Posts: 11
- Joined: Mon Apr 11, 2011 9:34 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to write the ordee# validated to the report file
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
Regards,
Alex
Ranorex Team
-
- Posts: 11
- Joined: Mon Apr 11, 2011 9:34 pm
Re: How to write the ordee# validated to the report file
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to write the ordee# validated to the report file
Hi,
If you want to customize the message of the Validate, please use following code:
http://www.ranorex.com/support/user-gui ... dules.html
Regards,
Peter
Ranorex Team
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