Hi,
I'm trying to reuse the same module within a test case but it is not letting me. I have a recording that I would like to run 8 different times, each time with a different variable value for a string. It seems the only way i can do this is by creating 8 different test cases because when I try to add the existing module to the same test i get "A module with the same name already exists." and there doesn't seem to be a way to rename the module after it has been added.
A bug I found while doing this: If you add a new test case and rename it, then add 1 existing module to that test case it renames the test case to the name of the existing module.
Test Suite and reusing modules
-
- Posts: 169
- Joined: Thu Jan 13, 2011 2:06 pm
Re: Test Suite and reusing modules
I see now that you can add a test case within a test case, so I guess this is the easiest way to go about what I was asking. I still see that bug though with the test case being automatically renamed.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Test Suite and reusing modules
Hi,
Data Driven Testing
Regards,
Peter
Ranorex Team
Just use a simple data table or another data connector to loop trough different values for a recording:tallahassee101 wrote: I have a recording that I would like to run 8 different times, each time with a different variable value for a string.
Data Driven Testing
This limitation will be removed in a future release of Ranorex.tallahassee101 wrote: I try to add the existing module to the same test i get "A module with the same name already exists." and there doesn't seem to be a way to rename the module after it has been added.
I can't see that bug. I tried to reproduce but it never renames the test case which was created before.tallahassee101 wrote:I see now that you can add a test case within a test case, so I guess this is the easiest way to go about what I was asking. I still see that bug though with the test case being automatically renamed.
Regards,
Peter
Ranorex Team