Custom lock test cases
Custom lock test cases
In my project there is a Test Case. For it is given Data Source. For different input danyh need to run all of the scripts and sample. How can I do so that would be subject to exit stsenriya, I could see it in the report? For example blocks Blocked
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Custom lock test cases
Hello,
I am afraid that I don't understand your issue.
Could you please explain your issue in more detail?
Thank you!
Regards,
Bernhard
I am afraid that I don't understand your issue.
Could you please explain your issue in more detail?
Thank you!
Regards,
Bernhard
Re: Custom lock test cases
Case study for a test I have a Data Binding (table with a number of lines). In a test case is a test case attached to its Data Binding. I want depending on the test case study of the upper level, skip to iterate Case verhengo level, and not for interior execution of nested test case.
Option c Report.Failure not fit. In connection with the program have to use infrastruturoy Error Behavior = Continue with iteration
That is, depending on the conditions necessary to block the execution of the current iteration of the case study, and attached case studies, and continue with the next iteration.
Option c Report.Failure not fit. In connection with the program have to use infrastruturoy Error Behavior = Continue with iteration
That is, depending on the conditions necessary to block the execution of the current iteration of the case study, and attached case studies, and continue with the next iteration.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Custom lock test cases
Hi,
am I right that you have following situation:
You have a ParentTestCase and in this testcase you have a NestedTestCase you iterate over.
Depending on what happens in ParentTestCase you want to skip the current interation and continue with the next?
To continue with next iteration at some point see following lines of code:
Hope this will help you,
Larissa
Ranorex Team
am I right that you have following situation:
You have a ParentTestCase and in this testcase you have a NestedTestCase you iterate over.
Depending on what happens in ParentTestCase you want to skip the current interation and continue with the next?
To continue with next iteration at some point see following lines of code:
Code: Select all
if (skipCondition == true)
{
TestCase.Current.DataContext.Next();
}
Larissa
Ranorex Team
You do not have the required permissions to view the files attached to this post.
Re: Custom lock test cases
When using this method, the parameters are the same iteration, and required parameters of a new iteration
Re: Custom lock test cases
Info
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Custom lock test cases
Hi,
ok I see. You want to skip the whole Testcase too.
This can be done by the following line of code:
Don't forget to set in the else branch.
Regards,
Larissa
ok I see. You want to skip the whole Testcase too.
This can be done by the following line of code:
Code: Select all
TestSuite.Current.GetTestCase("RecalcFWDBonds").Checked = false;
Code: Select all
Checked = true
Regards,
Larissa
-
- Posts: 2
- Joined: Fri Jan 31, 2014 7:11 am
Re: Custom lock test cases
Hi,
1)I have Test suite consists of so many test cases , all module variables with default values are binded with the global variable .Now i want to skip some test cases from command line while executing entire test suite passing global parameters ....
2) is there any way to pass param's while executing single test case in the test suite ?
Your reply is very much needed.
Thanks
1)I have Test suite consists of so many test cases , all module variables with default values are binded with the global variable .Now i want to skip some test cases from command line while executing entire test suite passing global parameters ....
2) is there any way to pass param's while executing single test case in the test suite ?
Your reply is very much needed.
Thanks
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Custom lock test cases
Hi raghupokuri,
You can for example use the TestRunConfiguration to execute desired Testcases of your TestSuite.
Create a new Test Run Configuration e.g: TestRunConfiguration with your desired Testcases
Run the <GeneratedTestSuite>.exe with /rc:TestRunConfiguration as argument
e.g. Test.exe /rc:TestRunConfiguration
Or Run the <GeneratedTestSuite>.exe with /tc:TestCase if you want only a single Testcase
e.g. Test.exe /tc:TestCase1
To pass global parameters add /pa:<Parameter name>=<Value> (without <>)
e.g. Test.exe /tc:TestCase1 /pa:global1=value1 /pa:global2=value2
for more information about Running a Test via Command Line please have a look at Running Tests via Command Line
regards,
Markus
You can for example use the TestRunConfiguration to execute desired Testcases of your TestSuite.
Create a new Test Run Configuration e.g: TestRunConfiguration with your desired Testcases
Run the <GeneratedTestSuite>.exe with /rc:TestRunConfiguration as argument
e.g. Test.exe /rc:TestRunConfiguration
Or Run the <GeneratedTestSuite>.exe with /tc:TestCase if you want only a single Testcase
e.g. Test.exe /tc:TestCase1
To pass global parameters add /pa:<Parameter name>=<Value> (without <>)
e.g. Test.exe /tc:TestCase1 /pa:global1=value1 /pa:global2=value2
for more information about Running a Test via Command Line please have a look at Running Tests via Command Line
regards,
Markus