Hi,
I have excel connector with 2 columns(username and password) and multiple rows. Rather recording I want to write code module to type-in values in my text boxes.
Could you please tell me how can we use data bind variable inside the code module, so that with each iteration variable will take different value as mentioned in excel sheet.
Thanks.
Data Bind variables(Excel connector) inside Code module
Re: Data Bind variables(Excel connector) inside Code module
Hi,
You simply have to add code module to TestCase or SmartFolder with created data connector of your choice. Then simply bind the variables created in CodeModule with those from data connector. If code module variable names are the same as data connector column names, you can simply use AutoBind to bind them.
You simply have to add code module to TestCase or SmartFolder with created data connector of your choice. Then simply bind the variables created in CodeModule with those from data connector. If code module variable names are the same as data connector column names, you can simply use AutoBind to bind them.
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: Data Bind variables(Excel connector) inside Code module
In addition to what Pavel said, you should create the module variables in the code module by right-clicking anywhere in the code editor window and selecting "Insert New Module Variable". This will create a variable that Ranorex can see for binding purposes.
Shortcuts usually aren't...
Re: Data Bind variables(Excel connector) inside Code module
Thanks @krstcs and @ odklizec for the help.