Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does zerocode offer a test setup? #586

Open
itecsor opened this issue Sep 15, 2023 · 0 comments
Open

Does zerocode offer a test setup? #586

itecsor opened this issue Sep 15, 2023 · 0 comments

Comments

@itecsor
Copy link

itecsor commented Sep 15, 2023

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:

  1. Make a POST call to the API to create test resource - > get the ID of this resource
  2. Make a call to API to get configuration for the resource-> get config parameters
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant