0

while executing the Jmeter selenium scripts in azure pipeline ,I repeatedly seeing the error 500 error saying that "No Such Session Found"

But while running the same script in our Virtual Machine script is working fine for large no.of iterations.

kindly help me in this issuse. I attached the Error what we are facing below .

https://i.stack.imgur.com/KJlec.png

1 Answer 1

0
  1. Using Selenium for performance testing is not recommended by Selenium developers

    Performance testing using Selenium and WebDriver is generally not advised. Not because it is incapable, but because it is not optimised for the job and you are unlikely to get good results.

  2. Using Selenium for performance testing is not recommended by WebDriver Sampler developers

    Note: It is NOT the intention of this project to replace the HTTP Samplers included in JMeter. Rather it is meant to compliment them by measuring the end user load time.

If you really need to conduct browser-based performance testing make sure to install:

  1. The browser (i.e. Firefox or Chrome)
  2. The relevant version of WebDriver (i.e. Geckodriver or Chromedriver)
  3. Make sure to configure the WebDriver to run in headless mode
  4. Follow webdriver and operating system documentation, i.e. if you're running Chromedriver under super user account you need to pass --no-sandbox command-line argument

For further assistance please share request and response details from View Results Tree listener, your JMeter configuration and jmeter.log file

However it's better to use JMeter's HTTP Request samplers, given you configure JMeter to behave like a real browser there should be no difference at all from the system under test perspective, resource footprint will be much lower and you will be able to collect more comprehensive test results and metrics.

2
  • we want to know how much time the UI gonna take to load during our load test is the purpose so that ,we follow 90 % percent load in HTTP samples and only 10% load in UI . to run that JMETER selenium scripts in azure pipeline we facing the above issues like NO Such session, but while running same in anyone of Virtual machine what we had , it working good. @Dmitri T Kindly help me in this issues
    – Abinav
    Sep 14, 2023 at 4:34
  • i.stack.imgur.com/KJlec.png - error from jmeter view results tree. jmeter version in pipeline - 5.5 I am already use sandbox command in my code and headless mode only in linux OS which is available in Azure pipeline
    – Abinav
    Sep 14, 2023 at 5:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.