Replies: 1 comment
-
Hi @ArCiGo 👋 , Thanks for opening this in its own issue and apologies it took me a bit to get back to you.
So, the reason this happens is that If there's no target, Artillery won't know in reference to what page to report these metrics.
If you aren't interested in the web vital metrics, it's fine to do that, but there's also no harm in them being reported? If you're interested in measuring backend timings, while there isn't a direct way to do that, you can break down your flow into steps and measure the individual parts of the user journey that might hit your backend. For example Let me know if the above makes sense and if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
Following this previous conversation with @bernardobridge , but in a proper place.-
We have a library that performs all the API calls to our internal services, but we don't have exposure to the endpoints. This tool does all the calls for us internally. We build the requests in a programmatic way (so, when we execute our scripts, the tool internally performs what we want). Unfortunately, we can't have endpoints to manipulate.
I was doing a basic example of JS + Playwright + Artillery. I created this basic script.-
and in my *.yml file, I did this.-
When I execute the script, I get these results.-
But, if I set in the
target
the URL I have in the login.js script (https://www.saucedemo.com/v1/index.html), I get more outputs.-Test run id: t9znw_kdkp5tm76nqgff63634d496qarxet_cpw7 Phase started: unnamed (index: 0, duration: 1s) 12:35:24(+0300) Phase completed: unnamed (index: 0, duration: 1s) 12:35:25(+0300) -------------------------------------- Metrics for period to: 12:35:30(+0300) (width: 2.676s) -------------------------------------- browser.http_requests: ......................................................... 25 browser.page.CLS.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 0 max: ......................................................................... 0 mean: ........................................................................ 0 median: ...................................................................... 0 p95: ......................................................................... 0 p99: ......................................................................... 0 browser.page.FCP.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 112.4 max: ......................................................................... 112.4 mean: ........................................................................ 112.4 median: ...................................................................... 113.3 p95: ......................................................................... 113.3 p99: ......................................................................... 113.3 browser.page.LCP.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 150.6 max: ......................................................................... 150.6 mean: ........................................................................ 150.6 median: ...................................................................... 149.9 p95: ......................................................................... 149.9 p99: ......................................................................... 149.9 browser.page.TTFB.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 16.3 max: ......................................................................... 65 mean: ........................................................................ 40.7 median: ...................................................................... 16.3 p95: ......................................................................... 16.3 p99: ......................................................................... 16.3 browser.page.codes.200: ........................................................ 25 vusers.completed: .............................................................. 1 vusers.created: ................................................................ 1 vusers.created_by_name.0: ...................................................... 1 vusers.failed: ................................................................. 0 vusers.session_length: min: ......................................................................... 2675.4 max: ......................................................................... 2675.4 mean: ........................................................................ 2675.4 median: ...................................................................... 2671 p95: ......................................................................... 2671 p99: ......................................................................... 2671 All VUs finished. Total time: 4 seconds -------------------------------- Summary report @ 12:35:30(+0300) -------------------------------- browser.http_requests: ......................................................... 25 browser.page.CLS.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 0 max: ......................................................................... 0 mean: ........................................................................ 0 median: ...................................................................... 0 p95: ......................................................................... 0 p99: ......................................................................... 0 browser.page.FCP.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 112.4 max: ......................................................................... 112.4 mean: ........................................................................ 112.4 median: ...................................................................... 113.3 p95: ......................................................................... 113.3 p99: ......................................................................... 113.3 browser.page.LCP.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 150.6 max: ......................................................................... 150.6 mean: ........................................................................ 150.6 median: ...................................................................... 149.9 p95: ......................................................................... 149.9 p99: ......................................................................... 149.9 browser.page.TTFB.https://www.saucedemo.com/v1/index.html: min: ......................................................................... 16.3 max: ......................................................................... 65 mean: ........................................................................ 40.7 median: ...................................................................... 16.3 p95: ......................................................................... 16.3 p99: ......................................................................... 16.3 browser.page.codes.200: ........................................................ 25 vusers.completed: .............................................................. 1 vusers.created: ................................................................ 1 vusers.created_by_name.0: ...................................................... 1 vusers.failed: ................................................................. 0 vusers.session_length: min: ......................................................................... 2675.4 max: ......................................................................... 2675.4 mean: ........................................................................ 2675.4 median: ...................................................................... 2671 p95: ......................................................................... 2671 p99: ......................................................................... 2671
For my purposes, I found useful (I'm probably mistaken) to set the
target
property with any random URL since my internal library performs all the calls to our internal API (with the URL that should be used) and since we can't get endpoints exposed.-TIA! :D
Beta Was this translation helpful? Give feedback.
All reactions