How to Use Reusable Automated Scripts

Tuesday, May 9, 2017
Avatar

I want to be able to create an automated test case using a reusable test script.  So let's say I have 3 test cases where the Login and Create new Item steps are all the same(just different input values) and from there each test case does something different.  How do I link them all together to run as one test?  I don't want to recopy the same code in to all the tests, mostly so I can easily maintain the code.

Currently I've created a stand alone automated test for the Login step

I've also created a stand alone automated test for the CreateItem step.

If I link the tests under the "Test Steps" section of the test case, they are ignored when I go to run the test as automated. I'm trying to avoid adding all the tests under a Test Set, since technically they all are a part of one test and I only want one pass/fail status for the entire test.

Is there any way to do this?

I'm using UFT 12.02 and SpiraTeam v5.2

 

1 Replies
Monday, May 15, 2017
Avatar
re: jbrambl Tuesday, May 9, 2017

Hi Jennifer,

At the present time, the 'Insert Link' feature is only used for manual test cases. We plan on supporting automated test cases in the future.

Regards

Jim

Statistics
  • Started: Tuesday, May 9, 2017
  • Last Reply: Monday, May 15, 2017
  • Replies: 1
  • Views: 670