Unexpected behavior? with TCER/ TSER generation with 'add prefix to name' feature
As per documentation at Generating test case and test suite execution records automatically
The point as below, we should be able to create unique TCER/ TSER and unique Test Environment names by using 'prefix'
Tip: You can create unique names for each test case execution record or test suite execution record by selecting the To make the new test environment names unique, add a prefix to the generated name option.
However, the prefix does not work as expected.
Sample scenario:
1. Go to Test Plan > Test Cases > 'select a test case' > Click Generate TER.
Now, select few environment attributes, select option to add prefix to generated name.
result: A TCER and test environment is created.
2. Re-try scenario on step 1 without prefix.
expected : There is one more TCER and test environment created.
actual : A new TCER is created, but the test environment created in step 1 is reused.
Is this a documentation defect?
The point as below, we should be able to create unique TCER/ TSER and unique Test Environment names by using 'prefix'
Tip: You can create unique names for each test case execution record or test suite execution record by selecting the To make the new test environment names unique, add a prefix to the generated name option.
However, the prefix does not work as expected.
Sample scenario:
1. Go to Test Plan > Test Cases > 'select a test case' > Click Generate TER.
Now, select few environment attributes, select option to add prefix to generated name.
result: A TCER and test environment is created.
2. Re-try scenario on step 1 without prefix.
expected : There is one more TCER and test environment created.
actual : A new TCER is created, but the test environment created in step 1 is reused.
Is this a documentation defect?
Accepted answer
It depends on the environment attributes you have set.
In the Generate Test Case Execution Records Wizard - Step 1, You'll select a number of environment attributes on the Generate Test Environments tab.
Then in Step 2 it will try to find any existing environments with the attributes you set in previous step, the result could be one with a prefix. If you want to ignore the existing one a create a new Test environment, then you use a new prefix.
Then, to answer your question, if in 2. (from your steps) you used the same environment attributes in step 1, then it is expected that it will reuse the one you created in 1.
In the Generate Test Case Execution Records Wizard - Step 1, You'll select a number of environment attributes on the Generate Test Environments tab.
Then in Step 2 it will try to find any existing environments with the attributes you set in previous step, the result could be one with a prefix. If you want to ignore the existing one a create a new Test environment, then you use a new prefix.
Then, to answer your question, if in 2. (from your steps) you used the same environment attributes in step 1, then it is expected that it will reuse the one you created in 1.
Comments
Hi Gerardo.. exactly as I expected. But I am unable to find any supporting document that says there should not be unique environment(s) created unless the test environment variables in the 2 steps use different attributes..
Also, the document says noted in my comment above says...
"Tip: You can create unique names for each test case execution record or test suite execution record by selecting the To make the new test environment names unique, add a prefix to the generated name option."
So it is confusing whether the prefix usage should create unique TCER/ TSER alone or will it create unique Test Environments as well...
Best Regards, Sunil