Create a Test Case Follow
A test case is a set of conditions under which AuraTester will determine whether the business process tested is working. The test case runs a web service with specific input parameters making sure all functions performed on Oracle Forms (Insert/Delete/Etc.) are done correctly by validating the web service responses and execution time.
To read the article about how to create a Test Group, click here.
1. Go to Services -> choose the web service you wish to test -> click on its 'Details' button
Note: In order to create a test case/test group you must have existing web services. If you don’t have any existing web services, please "create a new service" by checking How do I record/create a new web service?
2. In the 'Service Details' page, click 'Create Test Case' button at the top
3. In the 'Test Case Configuration' page set the following:
a. Batch Configuration – Here you can choose a batch CSV file to enable you to run multiple occurrences of a test with different parameters for either input or to validate expected results.
If you are not using a batch file for this test, please skip to section 'b'.
i. Upload a CSV file – Click on 'Choose File' to upload the CSV file
ii. Configure the batch test
|Use first line as header||Check the check box to define first line as header|
|Number of iterations||Define how many lines from the CSV file you wish to run as test case (AuraTester will calculate it automatically)|
|Run until end of file||Instead of 'Number of iterations', this option will run the entire CSV file|
|Download parameters||Downloads the CSV file to your machine|
b. Test Case Details
|Test Case Name||Name your test case|
|Description||Describe your test case (optional)|
|Response Format||Choose the test response format (JSON/XML)|
|Response Level||Choose the amount of detail you wish to see:
Error – Shows the description of the Errors if they occur
Debug – Shows input parameters that were sent to the web service and all the responses received.
d. Input Parameters - here we define the input parameters needed to run the scripts
Set Input Parameters: You can input parameters either as static values or choose values as parameters from a CSV file.
|Default Value||Choose the default input parameters you wish to test by editing them in the 'Default Value' field.|
(* batch testing only)
|From the drop down, choose the corresponding column from the CSV file.|
e. Output Parameters – This section lists the output parameters that we will see as the response from our script. Here we can set validations to compare results received with expected results. Validations can be chosen from a set of predefined rules or chosen from values contained in the CSV file. To configure test validation, click on the 'Validations' button next to the field whose parameter you wish to test.
Configure the validation - Choose the rule on which the validation will fail
Please note that the validation value is case sensitive.
f. Response Time Validation – Choose the number of seconds the test can run before failing it
4. Click the 'Save' button once all configurations are set; the test case is now ready to run
5. Run the test case by clicking the 'Run' button; the test will run in the background and the page will refresh with the results. Scroll down the page to see the results.
6. Export - Clicking the 'Export' button and choosing one testing framework will download its test file in a zip. JMeter and Webload are load testing tool and Junit is a unit testing tool.
For a video demonstration about how to create a test case, click here.