Class library usage, coding and language questions.
-
omayer
- Posts: 458
- Joined: Thu Oct 28, 2010 6:14 pm
Post
by omayer » Tue Apr 02, 2013 7:10 am
How to access user input value from different usercode module, currently returns null when access from other user code module, tried w/inheritance but same null value, so far workaround will be writing the userinput into external file or db then read back but looking for better solution, thank you in advance.
Code: Select all
void ITestModule.Run()
{
Mouse.DefaultMoveTime = 300;
Keyboard.DefaultKeyPressTime = 100;
Delay.SpeedFactor = 1.0;
try{
ConsolePromptToGetInput();
Login();
}
Tipu
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Post
by Support Team » Wed Apr 03, 2013 4:05 pm
Hello,
You could create a parameter and bind it to your recording variables.
Then, you could use the user input in several modules.
Please take a look at
Combining Variables with Parameters in our User Guide
Regards,
Markus (T)
.

-
omayer
- Posts: 458
- Joined: Thu Oct 28, 2010 6:14 pm
Post
by omayer » Mon Apr 08, 2013 3:33 pm
Thank you Markus, after binding to global parameter how do i run multiple times w/different value
Tipu
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Post
by Support Team » Tue Apr 09, 2013 3:15 pm
Hi,
I am not sure if I got this correctly, what do you exactly mean with "how do i run multiple times w/different value"? Could you please explain in detail what you want to do?
If you want to run specific test cases multiple times you could use the data driven approach:
Lesson 3: Data-Driven Testing.
Regards,
Markus
.
