You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way i can do a test setup or testsuite setup like BeforeAll in Java and write to some variables that i can use in the tests and the config? I want to run the tests on a resource that i create for the test suite, before running the tests, so each test needs to have access to the id of the resource i created for the test suite. Then when the tests are through, i need to clean up the resource.
I have this scenario:
Setup:
Make a POST call to the API to create test resource - > get the ID of this resource
Make a call to API to get configuration for the resource-> get config parameters
Use the config parameters and fill in properties file that will be used for testing
Test 1. Make GET call to API to get the resource with the ID and verify some fields
Test 2. Do some actions on the resource that require the use of the properties file with the queried parameters (step 2 of Setup)
I have seen the hello_world_jsonfile_as_part_payload.json file from the hello-world example but i need the resource id in all scenarios.
Is there a way i can achieve the setup from above?
Thanks
The text was updated successfully, but these errors were encountered:
Is there a way i can do a test setup or testsuite setup like BeforeAll in Java and write to some variables that i can use in the tests and the config? I want to run the tests on a resource that i create for the test suite, before running the tests, so each test needs to have access to the id of the resource i created for the test suite. Then when the tests are through, i need to clean up the resource.
I have this scenario:
Setup:
Test 1. Make GET call to API to get the resource with the ID and verify some fields
Test 2. Do some actions on the resource that require the use of the properties file with the queried parameters (step 2 of Setup)
I have seen the hello_world_jsonfile_as_part_payload.json file from the hello-world example but i need the resource id in all scenarios.
Is there a way i can achieve the setup from above?
Thanks
The text was updated successfully, but these errors were encountered: