Hi
I'm using SmartClient 10.0 power edition. Last updated in early November build.
We are busy automating our tests. I've got the SmartClient record and playback working with Selenium IDE. And also stored a html test file that is working well.
I'm now trying to automate it with com.isomorphic.autotest.TestRunnerDriver. I've been following the documentation but clearly I'm missing something.
I've added the following code to a TomCat war project:
When I trigger the code via webservice, the following logs are the output, but NO browser startes - basically nothing happen:
07:02:08.397 DEBUG - Security checking request GET /billion-booking/controller/run-tests
07:02:08.397 DEBUG - Not subject to any constraint
=== 2014-12-15 07:02:08,398 [c-10] INFO RequestContext - URL: '/billion-booking/controller/run-tests', User-Agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36': Safari with Accept-Encoding header
=== 2014-12-15 07:02:08,399 [c-10] WARN TestRunnerConfiguration - Danger - ServletContext detected as org.apache.catalina.core.ApplicationContextFacade@166a9512
=== 2014-12-15 07:02:08,399 [c-10] INFO TestRunnerConfiguration - Detected webRoot as C:/Dev/workspace/billion/target/billion-booking
=== 2014-12-15 07:02:08,399 [c-10] INFO TestRunnerConfiguration - Detected fileRoot as C:\Dev\workspace\billion\src\main\webapp\
=== 2014-12-15 07:02:08,399 [c-10] WARN TestRunnerConfiguration - Both fileRoot and webRoot are set, but they are different! You may be able to modify server.properties to change webRoot.
2014/12/15 07:02:08:401 CAT [INFO] SeleniumServer - Writing debug logs to selenium.log
2014/12/15 07:02:08:401 CAT [INFO] SeleniumServer - Java: Oracle Corporation 23.7-b01
2014/12/15 07:02:08:401 CAT [INFO] SeleniumServer - OS: Windows 8 6.2 amd64
2014/12/15 07:02:08:402 CAT [INFO] SeleniumServer - vnull [null], with Core vnull [null]
2014/12/15 07:02:08:403 CAT [INFO] HttpServer - Version Jetty/5.1.10
2014/12/15 07:02:08:403 CAT [INFO] Container - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
2014/12/15 07:02:08:404 CAT [INFO] Container - Started HttpContext[/selenium-server,/selenium-server]
2014/12/15 07:02:08:404 CAT [INFO] Container - Started HttpContext[/,/]
2014/12/15 07:02:08:405 CAT [INFO] SocketListener - Started SocketListener on 0.0.0.0:4444
2014/12/15 07:02:08:405 CAT [INFO] Container - Started org.mortbay.jetty.Server@753c9a33
=== 2014-12-15 07:02:08,405 [c-10] INFO SeleniumServerHelper - Selenium server started
2014/12/15 07:02:08:406 CAT [INFO] ThreadedServer - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
2014/12/15 07:02:08:507 CAT [INFO] SocketListener - Stopped SocketListener on 0.0.0.0:4444
2014/12/15 07:02:08:617 CAT [INFO] Container - Stopped HttpContext[/selenium-server/driver,/selenium-server/driver]
2014/12/15 07:02:08:670 CAT [INFO] Container - Stopped HttpContext[/selenium-server,/selenium-server]
2014/12/15 07:02:08:736 CAT [INFO] Container - Stopped HttpContext[/,/]
2014/12/15 07:02:08:736 CAT [INFO] Container - Stopped org.mortbay.jetty.Server@753c9a33
=== 2014-12-15 07:02:08,736 [c-10] INFO SeleniumServerHelper - Selenium server stopped
Any help will be highly appreciated. I tried everything and came to the end of what I must try.
I'm using SmartClient 10.0 power edition. Last updated in early November build.
We are busy automating our tests. I've got the SmartClient record and playback working with Selenium IDE. And also stored a html test file that is working well.
I'm now trying to automate it with com.isomorphic.autotest.TestRunnerDriver. I've been following the documentation but clearly I'm missing something.
I've added the following code to a TomCat war project:
Code:
TestRunnerDriver testRunner = new TestRunnerDriver(); testRunner.setHttpPort(80); testRunner.setBrowser("firefox"); testRunner.setHttpTarget("http://adminonline.biz"); testRunner.setUserExtensionsFile("C:\\Dev\\util-lib\\SmartClient_v100p_2014-10-07_PowerEdition\\smartclientSDK\\tools\\selenium\\user-extensions.js"); testRunner.setNoEmail(); testRunner.setMaximizeBrowser(true); testRunner.setTestRoot("/C:/Dev/workspace/billion/src/main/webapp/testfiles/"); testRunner.setFiles(new String[] {"adminonlinetest1.rctest.html"}); testRunner.setFileRoot("C:\\Dev\\workspace\\billion\\src\\main\\webapp\\"); testRunner.run();
07:02:08.397 DEBUG - Security checking request GET /billion-booking/controller/run-tests
07:02:08.397 DEBUG - Not subject to any constraint
=== 2014-12-15 07:02:08,398 [c-10] INFO RequestContext - URL: '/billion-booking/controller/run-tests', User-Agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36': Safari with Accept-Encoding header
=== 2014-12-15 07:02:08,399 [c-10] WARN TestRunnerConfiguration - Danger - ServletContext detected as org.apache.catalina.core.ApplicationContextFacade@166a9512
=== 2014-12-15 07:02:08,399 [c-10] INFO TestRunnerConfiguration - Detected webRoot as C:/Dev/workspace/billion/target/billion-booking
=== 2014-12-15 07:02:08,399 [c-10] INFO TestRunnerConfiguration - Detected fileRoot as C:\Dev\workspace\billion\src\main\webapp\
=== 2014-12-15 07:02:08,399 [c-10] WARN TestRunnerConfiguration - Both fileRoot and webRoot are set, but they are different! You may be able to modify server.properties to change webRoot.
2014/12/15 07:02:08:401 CAT [INFO] SeleniumServer - Writing debug logs to selenium.log
2014/12/15 07:02:08:401 CAT [INFO] SeleniumServer - Java: Oracle Corporation 23.7-b01
2014/12/15 07:02:08:401 CAT [INFO] SeleniumServer - OS: Windows 8 6.2 amd64
2014/12/15 07:02:08:402 CAT [INFO] SeleniumServer - vnull [null], with Core vnull [null]
2014/12/15 07:02:08:403 CAT [INFO] HttpServer - Version Jetty/5.1.10
2014/12/15 07:02:08:403 CAT [INFO] Container - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
2014/12/15 07:02:08:404 CAT [INFO] Container - Started HttpContext[/selenium-server,/selenium-server]
2014/12/15 07:02:08:404 CAT [INFO] Container - Started HttpContext[/,/]
2014/12/15 07:02:08:405 CAT [INFO] SocketListener - Started SocketListener on 0.0.0.0:4444
2014/12/15 07:02:08:405 CAT [INFO] Container - Started org.mortbay.jetty.Server@753c9a33
=== 2014-12-15 07:02:08,405 [c-10] INFO SeleniumServerHelper - Selenium server started
2014/12/15 07:02:08:406 CAT [INFO] ThreadedServer - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
2014/12/15 07:02:08:507 CAT [INFO] SocketListener - Stopped SocketListener on 0.0.0.0:4444
2014/12/15 07:02:08:617 CAT [INFO] Container - Stopped HttpContext[/selenium-server/driver,/selenium-server/driver]
2014/12/15 07:02:08:670 CAT [INFO] Container - Stopped HttpContext[/selenium-server,/selenium-server]
2014/12/15 07:02:08:736 CAT [INFO] Container - Stopped HttpContext[/,/]
2014/12/15 07:02:08:736 CAT [INFO] Container - Stopped org.mortbay.jetty.Server@753c9a33
=== 2014-12-15 07:02:08,736 [c-10] INFO SeleniumServerHelper - Selenium server stopped
Any help will be highly appreciated. I tried everything and came to the end of what I must try.
Comment