Validate InnerText pulled from a Data Source
Posted: Tue Feb 16, 2016 3:38 pm
Hi Forum,
I am trying to validate text inside a Span, InnerText using the recording module however the text is being populated from an Excel Connector using the formula "NOW()" so that the title will be unique.
I have created 1 recording module (module 1), with an Excel Data Source that is pointing at an excel .xslb document with 1 active cell. The cell is "NOW()" formula so that the data used is always unique to the test run. So for example, I've filled out a form title and saved the form.
I have then created another recording module (module 2) referencing the same Excel Data Source that I want to validate the data entry from in Module 1. So for example, I now want to validate the form title is correct.
1) When I run the test will the Excel Data Source be checked when recording module 1 is run and then checked again when recording module 2 is run so the unique value will be different due to seconds passing?
2) Is it possible to create a "store" so to speak, that will take the first entry from the Excel Data Source when module 1 is run, and I can validate against that in module 2 rather than calling the Excel Data source again?
Any help is massively appreciated. Please bare in mind that I am brand new to Ranorex.
Regards,
Chris
I am trying to validate text inside a Span, InnerText using the recording module however the text is being populated from an Excel Connector using the formula "NOW()" so that the title will be unique.
I have created 1 recording module (module 1), with an Excel Data Source that is pointing at an excel .xslb document with 1 active cell. The cell is "NOW()" formula so that the data used is always unique to the test run. So for example, I've filled out a form title and saved the form.
I have then created another recording module (module 2) referencing the same Excel Data Source that I want to validate the data entry from in Module 1. So for example, I now want to validate the form title is correct.
1) When I run the test will the Excel Data Source be checked when recording module 1 is run and then checked again when recording module 2 is run so the unique value will be different due to seconds passing?
2) Is it possible to create a "store" so to speak, that will take the first entry from the Excel Data Source when module 1 is run, and I can validate against that in module 2 rather than calling the Excel Data source again?
Any help is massively appreciated. Please bare in mind that I am brand new to Ranorex.
Regards,
Chris