Howto pass same parameter along rxrec, UserCodeCollection...
Posted: Tue Dec 19, 2017 1:06 pm
Hello Forum,
the help did not have suitable results for me to solve my task.
Dont know how to automate the following workflow with DataDriven Parameter using RecordModule, UserCodeCollection and UserCodeMethod in a RecordModule:
I am missing a mechanism similiar to "InsertNewModuleVariable" in UserCodeModule, but for UserCodeCollection/UserCodeMethod!
What has to be automated (the flow):
The UI has a "custom" keyboard (touch screen) which is using for user entries.
The value of this keyboard is written after completing in a chain along and at least into a "certain" register of a PLC.
The Automation has to verify that the proper value was really written into the PLC (read it out and compare it using Validation class of Ranorex).
The following Parameters should be considered to use as data driven test:
Name of the Register in PLC (e.g. IoPath)
Values to be entered (Keyboard "sequence" is not possible because the custom-keyboard is the bottleneck!)
Structure of the testsoftware (my approach so far):
- RecordModule ("addressid" based for Keyboard entries, one after one, eg. 2920333555,456 or xyz, -3666 etc.)
- UserCodeMethod to connect to the PCL
- UserCodeMethod to read out the Content of the Register from the PLC
- Ranorex Validation class for verification of the written value (inside the UserCodeMethod)
For testing with equivalence class the same Register has to be tested with Minvalue, Maxvalue etc.
The Name of the Register has to be taken out of e.g. csv-adapter for DataDriven tests.
Thanks in advance for any help (e.g. link to Rx documentation or code snippets).
BR
Klaus
the help did not have suitable results for me to solve my task.
Dont know how to automate the following workflow with DataDriven Parameter using RecordModule, UserCodeCollection and UserCodeMethod in a RecordModule:
I am missing a mechanism similiar to "InsertNewModuleVariable" in UserCodeModule, but for UserCodeCollection/UserCodeMethod!
What has to be automated (the flow):
The UI has a "custom" keyboard (touch screen) which is using for user entries.
The value of this keyboard is written after completing in a chain along and at least into a "certain" register of a PLC.
The Automation has to verify that the proper value was really written into the PLC (read it out and compare it using Validation class of Ranorex).
The following Parameters should be considered to use as data driven test:
Name of the Register in PLC (e.g. IoPath)
Values to be entered (Keyboard "sequence" is not possible because the custom-keyboard is the bottleneck!)
Structure of the testsoftware (my approach so far):
- RecordModule ("addressid" based for Keyboard entries, one after one, eg. 2920333555,456 or xyz, -3666 etc.)
- UserCodeMethod to connect to the PCL
- UserCodeMethod to read out the Content of the Register from the PLC
- Ranorex Validation class for verification of the written value (inside the UserCodeMethod)
For testing with equivalence class the same Register has to be tested with Minvalue, Maxvalue etc.
The Name of the Register has to be taken out of e.g. csv-adapter for DataDriven tests.
Thanks in advance for any help (e.g. link to Rx documentation or code snippets).
BR
Klaus