ReadyAPI - Organize test steps into blocks ?
Logically speaking, tests (api, ui etc) often have the following 3 "steps" or sections:
1 - Arrange - Create the test data/prerequisite conditions for testing.
2 - Act - Perform an action.
3 - Assert - Test if the action produces the expected result.
It is easy to show & demarcate these sections in code with heading comments or newlines between the sections. How can I show the same sections in ReadyAPI?
I have many tests which begin with 3-5 Run Test Case test-steps before the actual testing begins. These test-steps are actually setting up test data. Additionally, some tests have more than 1 test-step for validation instead of only 1. So, when such tests fail, it is hard to know which section of the test is responsible (test data, api call or assertions). Moreover, when I read such a test, it is often hard to figure out where the actual testing begins.
Keywords - Arrange Act Assert, Organizing test steps.
i that sounds like a feature request. In fact, you could take that request one step further and suggest re-usable test blocks, which contain commonly used set of steps.