Jmeter v3.0 with phantomjs(v1.2.1) is not initiating

475 views
Skip to first unread message

kondasa...@gmail.com

unread,
Aug 30, 2016, 9:59:42 AM8/30/16
to jmeter-plugins

I added phantomjs driver config(v1.2.1) to the my Jmeter(v3.0) web driver script.I am trying to execute it and getting the following error
Can any one help me on this issue if you come across it.

Error :

2016/08/30 13:08:42 INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
2016/08/30 13:08:42 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/30 13:08:42 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2016/08/30 13:08:43 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Pathways
2016/08/30 13:08:43 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Pathways.
2016/08/30 13:08:43 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2016/08/30 13:08:43 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2016/08/30 13:08:43 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1
2016/08/30 13:08:43 INFO  - jmeter.threads.JMeterThread: Thread started: Pathways 1-1
2016/08/30 13:08:43 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2016/08/30 13:09:04 ERROR - jmeter.threads.JMeterThread: Test failed! org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'
System info: host: 'BDC6-L-C41X8R1', ip: '10.239.250.247', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_92'
Driver info: driver.version: PhantomJSDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:115)
    at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:104)
    at com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig.createBrowser(PhantomJSDriverConfig.java:77)
    at com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig.threadStarted(PhantomJSDriverConfig.java:47)
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:647)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:996)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:978)
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:616)
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:604)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:237)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'
System info: host: 'BDC6-L-C41X8R1', ip: '10.239.250.247', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_92'
Driver info: driver.version: PhantomJSDriver
    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:178)
    at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:166)
    at org.openqa.selenium.phantomjs.PhantomJSCommandExecutor.execute(PhantomJSCommandExecutor.java:78)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
    ... 14 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:1332/status] to be available after 20034 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:107)
    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:175)
    ... 17 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:80)
    ... 18 more
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
    ... 19 more

2016/08/30 13:09:04 INFO  - jmeter.threads.JMeterThread: Thread finished: Pathways 1-1
2016/08/30 13:09:04 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/08/30 13:09:04 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)



mital.m...@gmail.com

unread,
Aug 30, 2016, 10:49:55 AM8/30/16
to kondasa...@gmail.com, jmeter-...@googlegroups.com
Seems to me an unhandled dynamic value.


Sent from Alto

On Tuesday, 30 August 2016 kondasathish28 wrote

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vincent Daburon

unread,
Aug 30, 2016, 10:51:13 AM8/30/16
to jmeter-plugins, kondasa...@gmail.com
Hi,

I create a script this 2 thread groups (Only one thread group run not both at the same time)
The first one, i configured the
bzm - PhantomJS Driver Config
with Path to Phantomjs executable = D:\software\phantomjs\phantomjs-2.0.0-windows\bin\phantomjs.exe

I run it => OK

.

The second one, i configured the
bzm - PhantomJS Driver Config
with Path to Phantomjs executable = D:\software\phantomjs\phantomjs-2.1.1-windows\bin\phantomjs.exe

I run it => OK

But i have some exception :

2016/08/30 16:45:14 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group phantomjs 2.1 1-1
2016/08/30 16:45:15 ERROR - jmeter.JMeter: Uncaught exception:  java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32
    at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:133)

Regards.
Vincent D.

kondasa...@gmail.com

unread,
Aug 30, 2016, 3:19:24 PM8/30/16
to jmeter-plugins, kondasa...@gmail.com
Hi Vincent,

I have tried with phantomjs-2.0.0-windows version and it is throwing the same error.
Could you please help me out on this...

I passed below arguments in phantomjs.cli.args :

--ssl-protocol=any, --ignore-ssl-errors=true,--browserName=phantomjs,--browser=firefox,--platform=ANY,--webdriver,--local-to-remote-url-access=true,--local-url-access

Error :

2016/08/31 00:13:56 INFO  - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22
2016/08/31 00:13:56 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2016/08/31 00:13:56 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2016/08/31 00:13:56 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2016/08/31 00:13:56 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2016/08/31 00:13:56 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2016/08/31 00:13:56 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2016/08/31 00:13:58 INFO  - jorphan.exec.KeyToolUtils: keytool found at 'keytool'
2016/08/31 00:13:58 INFO  - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file C:\TerriSante\apache-jmeter-3.0\apache-jmeter-3.0\bin\proxyserver.jks
2016/08/31 00:13:58 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.config.MongoSourceElement
2016/08/31 00:13:58 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler
2016/08/31 00:13:59 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.DistributionGraphVisualizer
2016/08/31 00:13:59 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2016/08/31 00:13:59 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2016/08/31 00:13:59 INFO  - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
2016/08/31 00:13:59 INFO  - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2016/08/31 00:13:59 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.SplineVisualizer
2016/08/31 00:14:40 INFO  - jmeter.services.FileServer: Default base='C:\TerriSante\apache-jmeter-3.0\apache-jmeter-3.0\bin'
2016/08/31 00:14:40 INFO  - jmeter.gui.action.Load: Loading file: C:\TerriSante\apache-jmeter-3.0\apache-jmeter-3.0\bin\Final_scripts\Scripts_Final_v1.jmx
2016/08/31 00:14:40 INFO  - jmeter.services.FileServer: Set new base='C:\TerriSante\apache-jmeter-3.0\apache-jmeter-3.0\bin\Final_scripts'
2016/08/31 00:14:40 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2016/08/31 00:14:40 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2016/08/31 00:14:40 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.9
2016/08/31 00:14:40 INFO  - jmeter.save.SaveService: All converter versions present and correct
2016/08/31 00:14:40 INFO  - jmeter.save.SaveService: Loading file: C:\TerriSante\apache-jmeter-3.0\apache-jmeter-3.0\bin\Final_scripts\Scripts_Final_v1.jmx
2016/08/31 00:14:40 INFO  - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_
2016/08/31 00:14:40 INFO  - jmeter.protocol.http.control.CacheManager: Will only cache the following methods: [GET]
2016/08/31 00:14:41 INFO  - jmeter.services.FileServer: Set new base='C:\TerriSante\apache-jmeter-3.0\apache-jmeter-3.0\bin\Final_scripts'
2016/08/31 00:14:52 INFO  - jmeter.engine.StandardJMeterEngine: Running the test!
2016/08/31 00:14:52 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/31 00:14:52 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/31 00:14:52 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2016/08/31 00:14:52 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Pathways
2016/08/31 00:14:52 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Pathways.
2016/08/31 00:14:52 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2016/08/31 00:14:52 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2016/08/31 00:14:52 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1
2016/08/31 00:14:52 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2016/08/31 00:14:52 INFO  - jmeter.threads.JMeterThread: Thread started: Pathways 1-1
2016/08/31 00:15:14 ERROR - jmeter.threads.JMeterThread: Test failed! org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.

Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43
Driver info: driver.version: PhantomJSDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:115)
    at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:104)
    at com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig.createBrowser(PhantomJSDriverConfig.java:77)
    at com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig.threadStarted(PhantomJSDriverConfig.java:47)
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:647)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:996)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:978)
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:616)
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:604)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:237)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'

Driver info: driver.version: PhantomJSDriver
    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:178)
    at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:166)
    at org.openqa.selenium.phantomjs.PhantomJSCommandExecutor.execute(PhantomJSCommandExecutor.java:78)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
    ... 14 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:17458/status] to be available after 20014 ms

    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:107)
    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:175)
    ... 17 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:80)
    ... 18 more
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
    ... 19 more

2016/08/31 00:15:14 INFO  - jmeter.threads.JMeterThread: Thread finished: Pathways 1-1
2016/08/31 00:15:14 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/08/31 00:15:14 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
Driver info: driver.version: PhantomJSDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:115)
    at org.openqa.selenium.phantomjs.PhantomJSDriver.<init>(PhantomJSDriver.java:104)
    at com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig.createBrowser(PhantomJSDriverConfig.java:77)
    at com.blazemeter.jmeter.webdriver.phantomjs.PhantomJSDriverConfig.threadStarted(PhantomJSDriverConfig.java:47)
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:647)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:996)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:978)
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:616)
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:604)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:237)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'

Vincent Daburon

unread,
Aug 31, 2016, 3:44:36 AM8/31/16
to jmeter-plugins, kondasa...@gmail.com
Hi,

For phantomjs arguments, try with only
--ssl-protocol=any, --ignore-ssl-errors=true

I think your troubles could be generated with "-webdriver,--local-to-remote-url-access=true,--local-url-access", i see error likes


--ssl-protocol=any, --ignore-ssl-errors=true,--browserName=phantomjs,--browser=firefox,--platform=ANY,--webdriver,--local-to-remote-url-access=true,--local-url-access

jmeter.threads.JMeterThread: Test failed! org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.52.0', revision: '
4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43
Driver info: driver.version: PhantomJSDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)

Regards
Vincent D.

 

kondasa...@gmail.com

unread,
Sep 3, 2016, 2:10:55 PM9/3/16
to jmeter-plugins, kondasa...@gmail.com
Hi Vincent,

Thanks for your replay..
I have tried with only --ssl-protocol=any, --ignore-ssl-errors=true arguments and getting browser related below message.
Do i need to add any jar files to support browser for this issue and pls suggest me on this to get resolve...


Browser not supported Your browser is not supported to access clinical portal . The latest versions of the following browsers are supported: Safari Google Chrome iPad Internet Explorer (Windows) Microsoft Edge Firefox

Thanks,
Sathish

Vincent Daburon

unread,
Sep 5, 2016, 4:25:37 AM9/5/16
to jmeter-plugins, kondasa...@gmail.com
Hi,
You need to change the user agent but i don't know how do that.
http://stackoverflow.com/questions/18501387/how-to-change-selenium-user-agent-in-selenium-webdriver-nodejs-land

Regards.
Vincent D.

Vincent Daburon

unread,
Sep 5, 2016, 4:37:37 AM9/5/16
to jmeter-plugins, kondasa...@gmail.com
Hi,
Maybe in the "Add parameters send to the GhostDriver with text field phantomjs.ghostdriver.args"
https://github.com/detro/ghostdriver
Add
phantomjs.page.settings.userAgent=Mozilla/5.0
or

may be :
phantomjs.page.settings.userAgent=

'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.11 Safari/537.36'Regards.

Vincent D.

kondasa...@gmail.com

unread,
Oct 14, 2016, 10:04:24 AM10/14/16
to jmeter-plugins, kondasa...@gmail.com
Hi Vincent,

I tried with the both options which you mentioned and i am getting the same browser error.

Please help me on it if you have any other thoughts or is there any special naming parameter convention need to follow in phantomjs.ghostdriver.args text field

Thanks,
Sathish
Reply all
Reply to author
Forward
0 new messages