Hi,
I have a recording module that accepts parameter. In one test case, I want the value to have A, and on other test case, I want the passed value to be B. However, when I bind the parameter, both instances are changed.
I intend to do the following
TC1
--SetValueRecording <<<bound variable A = "test"
TC2
--SetValueRecording <<bound variable B = "test2"
but what happens when I change TC2:
TC1
--SetValueRecording <<<bound variable A = "test2"
TC2
--SetValueRecording <<bound variable B = "test2"
Are there any ways I can achieve this?
Passing different values to recording module
Re: Passing different values to recording module
Hi,
I don't quite understand what's the problem? You can either create a new parameter in each TC, each with its own value for respective TC. Or you can create a data connector for each TC, from which you can fill the recording module variable. I would strongly recommend to go through this chapter in Ranorex user guide:
http://www.ranorex.com/support/user-gui ... sting.html
I don't quite understand what's the problem? You can either create a new parameter in each TC, each with its own value for respective TC. Or you can create a data connector for each TC, from which you can fill the recording module variable. I would strongly recommend to go through this chapter in Ranorex user guide:
http://www.ranorex.com/support/user-gui ... sting.html
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Passing different values to recording module
Thanks. Im sorry but I may have posted the wrong scenario.
I have recording module that accepts a parameter. Within 1 test case, I want to pass different values for that module.
When I open the data binding window, it is for the whole test case. How do I go around this to bind different values to RecModuleEnterFields.
I have recording module that accepts a parameter. Within 1 test case, I want to pass different values for that module.
Code: Select all
TCVerifyForAutocomplete
RecModuleEnterFields "entryName" << contains 15 steps that fills in other fields
RecModuleDelete << deletes the field values
RecModuleEnterFields "en" << should autocomplete
ValidateEntry
Re: Passing different values to recording module
Well SmarFolder does this for me allowing different values passed to two instances of that module in the same test case. Only doable with Ranorex 7. Problem solved!
Code: Select all
TCVerifyForAutocomplete
SmartFolder
RecModuleEnterFields "entryName"
RecModuleDelete
SmartFolder
RecModuleEnterFields "en"
ValidateEntry
Re: Passing different values to recording module
Actually, any version of Ranorex allows that as long as you either bind the variable to a different data entity, or nest more test cases (which is what you are doing with folders, they are just a new type of test container to go along with test cases).
Shortcuts usually aren't...