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

SpringBoot test as a service ? #7

Open
SpringBootTestAsAService opened this issue Jun 21, 2023 · 1 comment
Open

SpringBoot test as a service ? #7

SpringBootTestAsAService opened this issue Jun 21, 2023 · 1 comment

Comments

@SpringBootTestAsAService

Hi
i can across your 'spring-cucumber-serenity-test-harness' project and find it very helpful in understanding what I am trying to achieve.
I have recently started a role as an automation engineer.

What my developers want is to create end to end tests as a service. What I mean is write end to end api tests in cucumber bdd using serenity and restassured and write them as a service and deploy them as a webservice.

Tests will run when I will deploy this service and it will have a schedule which will also run the test.

As well as we can trigger the tests from Postman by hitting the 'POST' request.

I have already written a simple test and deployed it as a service. Now I want to convert this test into cucumber and serenity bdd so that there is feature file and serenity report

Is this doable you recon and is there any help/suggestion you can give me ?

@cmccarthyIrl
Copy link
Owner

cmccarthyIrl commented Nov 14, 2023

Hi @SpringBootTestAsAService,

I'm glad you found my code useful. Yes, it's doable.

I would recommend creating a REST web service that allows you to make a POST request. Something like cmccarthyIrl/spring-karate-test-harness/ or Building REST services with Spring would work.

Once your web service is in place, I'd create an executable JAR file based on the Serenity or TestNG tests. The JAR file would read in the parameters/payload of your POST request.

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

2 participants