Print Thread
Adding repeated versions of a given test to the Test Manager with different inputs and expected res.
#59819 03/25/19 01:08 PM
Joined: Jul 2010
Posts: 16
A
Member
OP Offline
Member
A
Joined: Jul 2010
Posts: 16
I may be missing the obvious, but I want to add the same test over and over to the test manager with a range of inputs and expected results. Do I have to create a separate variant test file for every one of these?
I would like to see this in the test manager tests window - same TST file, different variants:
...
funcXtest - inputs a,b,c, result 1
funcXtest - inputs d,e,f, result 2
funcXtest - inputs a,NULL,c, result EXCEPTION

Each of these could be enabled/disabled individually...

Could be dozens.

Re: Adding repeated versions of a given test to the Test Manager with different inputs and expected res.
Allen Marshall #59820 03/25/19 01:15 PM
Joined: Jul 2010
Posts: 16
A
Member
OP Offline
Member
A
Joined: Jul 2010
Posts: 16
at the risk of droning on and on, each entry's description should be distinct, and, it should be possible to duplicate an entry in Test Manager and then tweak the inputs and modify the description.

For consistency with other unit testing frameworks, (optional) Setup and Teardown test phases might be helpful too....

Re: Adding repeated versions of a given test to the Test Manager with different inputs and expected res.
Allen Marshall #59821 03/26/19 09:14 AM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
You can add the same test script multiple times, and give each instance a logical description and a different set of variable values.


Marco Kalter
Allround Automations
Re: Adding repeated versions of a given test to the Test Manager with different inputs and expected res.
Marco Kalter #59822 03/26/19 12:38 PM
Joined: Jul 2010
Posts: 16
A
Member
OP Offline
Member
A
Joined: Jul 2010
Posts: 16
OK, confirmed. I must have tripped over my shoelaces. The only suggestion I might have is that the app require a distinct name for each test. So,

funcXtest1 - inputs a,b,c, result 1
funcXtest2 - inputs d,e,f, result 2
funcXtest3 - inputs a,NULL,c, result EXCEPTION

A button to duplicate a test would still be helpful, and maybe a sequence of execution?

Re: Adding repeated versions of a given test to the Test Manager with different inputs and expected res.
Allen Marshall #59829 03/27/19 09:12 AM
Joined: Aug 1999
Posts: 22,216
Member
Offline
Member
Joined: Aug 1999
Posts: 22,216
I have added this to the list of enhancement requests.

Note that the sequence of execution is top to bottom. To change the sequence you can move a test item with the "Move up" and "Move down" button.

To duplicate a test item, select it, hold down the Ctrl-key, and press the "New" button. I admit that it's a bit of a hidden feature.

Last edited by Marco Kalter; 03/27/19 09:18 AM.

Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.029s Queries: 14 (0.010s) Memory: 2.5176 MB (Peak: 3.0426 MB) Data Comp: Off Server Time: 2024-05-11 21:05:36 UTC
Valid HTML 5 and Valid CSS