Hello,
I have defined 3 Global Parameters in Test Suite, which contains several Test Cases. And I wish assign some value to these parameter in User Code in one SetUp-Test Case, so that othere following Test Cases can read the value and use them. How?
Many Thanks
How to assign a global parameter of Test Suite?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to assign a global parameter of Test Suite?
Hello,
In order to set the values of your global parameters you can bind them to module variables and change the values of these module variables instead. Since they are bound to the global parameters they will change the values of the global parameters as well.
In general the global parameters can be used to pass the values of the module variables from one test case to another, you just need to bind them.
For more information please see the following link: Using Data in Test Suites.
Regards,
Markus
In order to set the values of your global parameters you can bind them to module variables and change the values of these module variables instead. Since they are bound to the global parameters they will change the values of the global parameters as well.
In general the global parameters can be used to pass the values of the module variables from one test case to another, you just need to bind them.
For more information please see the following link: Using Data in Test Suites.
Regards,
Markus
Re: How to assign a global parameter of Test Suite?
Hello Markus,
Thank you very much for your answer. That means, I have only to bind the global parameter and module variables: the assignment to global parameter in the setup test case and reading values from global parameter in other test cases and so on it happens automatically via binding. That will be fine.
Best Regards
Thank you very much for your answer. That means, I have only to bind the global parameter and module variables: the assignment to global parameter in the setup test case and reading values from global parameter in other test cases and so on it happens automatically via binding. That will be fine.
Best Regards
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to assign a global parameter of Test Suite?
Hello,
Yes, try it out and you will see that it works .
Regards,
Markus
Yes, try it out and you will see that it works .
Regards,
Markus
Re: How to assign a global parameter of Test Suite?
Hey Markus, yes, It works very well. Thank you very much. Best Regards