-
Notifications
You must be signed in to change notification settings - Fork 39
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
Multi Step scriptable lightweight API Journeys #137
Comments
Playwright added support for doing API testing natively - https://playwright.dev/docs/next/test-api-testing/ It would be easy as exposing the request context in our journey API and users can do multi step API testing at ease. Take a look at the example on the PW docs page, we would be able to do almost all of those with our steps and hook apis as well. |
This is pretty awesome! A huge +1 from me on that approach! |
Is there any update about this enhancement? Since playwright added test-api-testing, is it already possible to use it in synthetic tests? |
@iorfix Not yet, we need to expose the request object from Playwright which can be used for API testing. |
any update about using playwright api testing in synthetic tests? |
Hi @hager-yousri - thanks for following this issue. This is a capability that is on our roadmap. We're currently pushing towards the 1.0 release of our new Synthetics app in Elastic Observability. In addition to the full browser synthetic testing, we will be delivering the single ping availability checking that's in Uptime today. After our 1.0 launch, we will look to add in multi-step API journeys. It is a high priority for us. |
Is there any update on this? I would like to use some lightweight checks that require oauth2 authentication involving an initial step of retrieving an access token from a separate endpoint (OAuth 2 client credentials flow). Heartbeat doesn't support this so a multistep API journey would fulfill this requirement. I see that there is a request object that does not have the full overhead of the browser object, but it does not appear to be intended to be used in this way. The docs state that
|
@paulmouzas you are correct in that the I'm afraid we still don't have a timescale for having multi step scriptable lightweight API Journeys at this stage as we focus on the rest of Synthetics (brand new beta Synthetics UI launched in 8.7, multi step browser monitors and single step lightweight checks managed under the new UI and as Project Monitors). |
@paulb-elastic Are there any plans about this feature? It would be very useful for API testing |
Hi @iorfix we don't have any more concrete dates on when we'll be getting to this feature, it's on our backlog at the moment, but not prioritised to start working on it. |
Currently our synthetic journeys are all browser based. In the future it'd be good to add support for browser-less journeys for testing APIs or other things that don't need a browser.
This would also be useful for supporting odd protocols heartbeat doesn't support since with a full JS environment almost anything can be tested.
This issue is a stub and needs further fleshing out (example syntax etc.)(
The text was updated successfully, but these errors were encountered: