NBi icon indicating copy to clipboard operation
NBi copied to clipboard

Creating a loop in a test case

Open Nisha3297 opened this issue 4 years ago • 2 comments

Hi,

I have a scenario where i need to execute a test case /SQL query 500 times on DWH.

I found "instance-settling" and "loop-sentinel" for creating a loop. However with this i am getting 500 test cases in my Nunit. Is there any other way to achieve this with a single test case in Nunit as i just need to execute the query on DWH and no further comparison/ assertion is required. Successful execution of query is required to mark the test case as pass. For example, in code below i have created 5 instances of a test case:

Test_suite_1 SELECT * from table_name 1

Nisha3297 avatar Jul 29 '20 08:07 Nisha3297

image

Nisha3297 avatar Jul 31 '20 15:07 Nisha3297

This behaviour is on purpose to have a small granularity for each test. Having many tiny tests (and not one huge test) is considered as a best practice in terms of test automation. It's a won't fix.

Seddryck avatar Sep 13 '20 08:09 Seddryck