Hi,
we are testing TestRunner utility (SmartGwt Power 4.0).
We correctly created the "batchRun" and "testResult" tables with AdminConsole utility.
We ran the code found into TestRunner documentation as follows:
TestRunnerDriver driver = new TestRunnerDriver();
driver.setTestRoot(System.getProperty("user.install.root") + "\\" + "selenium_testRoot");
driver.setBatchCommit(true);
String[] files = {"test1.rctest.html"};
driver.setFiles(files);
driver.run();
The "testRoot" is an external path. The "test1.rctest.html" file is into this path.
The execution generates the following log:
[18/07/13 10.04.18:441 CEST] 00000032 SystemOut O === 2013-07-18 10:04:18,441 [ : 5] DEBUG SQLDriver - Freeing SQLDriver dbConnection 100992517
[18/07/13 10.04.18:441 CEST] 00000032 SystemOut O === 2013-07-18 10:04:18,441 [ : 5] DEBUG SQLConnectionManager - About to close PoolableConnection with hashcode "100992517"
[18/07/13 10.04.21:100 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.log.LoggingManager configureLogging Writing debug logs to selenium.log
[18/07/13 10.04.21:104 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer logStartupInfo Java: IBM Corporation 2.4
[18/07/13 10.04.21:105 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer logStartupInfo OS: Windows 7 6.1 build 7600 x86
[18/07/13 10.04.21:135 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer logVersionNumber v2.26.0, with Core v2.26.0. Built from revision 18041
[18/07/13 10.04.21:683 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer createWebDriverRemoteContext RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
[18/07/13 10.04.21:693 CEST] 00000032 HttpServer I org.openqa.jetty.http.HttpServer doStart Version Jetty/5.1.x
[18/07/13 10.04.21:697 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/selenium-server,/selenium-server]
[18/07/13 10.04.21:712 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started org.openqa.jetty.jetty.servlet.ServletHandler@8090809
[18/07/13 10.04.21:715 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/wd,/wd]
[18/07/13 10.04.21:717 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/selenium-server/driver,/selenium-server/driver]
[18/07/13 10.04.21:719 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/,/]
[18/07/13 10.04.21:761 CEST] 00000032 SocketListene I org.openqa.jetty.http.SocketListener start Started SocketListener on 0.0.0.0:4444
[18/07/13 10.04.21:763 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started org.openqa.jetty.jetty.Server@48f448f4
[18/07/13 10.04.21:769 CEST] 00000032 SystemOut O === 2013-07-18 10:04:21,769 [ : 5] INFO SeleniumServerHelper - Selenium server started
[18/07/13 10.04.21:931 CEST] 00000034 ThreadedServe I org.openqa.jetty.util.ThreadedServer$Acceptor run Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
[18/07/13 10.04.22:030 CEST] 00000032 SocketListene I org.openqa.jetty.http.SocketListener stop Stopped SocketListener on 0.0.0.0:4444
[18/07/13 10.04.22:201 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/selenium-server,/selenium-server]
[18/07/13 10.04.22:203 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped org.openqa.jetty.jetty.servlet.ServletHandler@8090809
[18/07/13 10.04.22:367 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/wd,/wd]
[18/07/13 10.04.22:415 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/selenium-server/driver,/selenium-server/driver]
[18/07/13 10.04.22:522 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/,/]
[18/07/13 10.04.22:524 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped org.openqa.jetty.jetty.Server@48f448f4
[18/07/13 10.04.22:525 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,525 [ : 5] INFO SeleniumServerHelper - Selenium server stopped
[18/07/13 10.04.22:526 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,526 [ : 5] DEBUG DSRequest - Caching instance 18 of DS batchRun from DSRequest.getDataSource()
[18/07/13 10.04.22:526 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,526 [ : 5] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
[18/07/13 10.04.22:527 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,527 [ : 5] DEBUG AppBase - [builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application
[18/07/13 10.04.22:527 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,527 [ : 5] DEBUG AppBase - [builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation
[18/07/13 10.04.22:527 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,527 [ : 5] INFO SQLDataSource - [builtinApplication.null] Performing update operation with
criteria: {batchStartTime:new Date(1374134658000)} values: {batchEndTime:new Date(1374134662526)}
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] WARN SQLDriver - [builtinApplication.null] DSRequest has no RPCManager set when testing if we should join a transaction - transaction will not be joined
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] DEBUG SQLConnectionManager - [builtinApplication.null] Borrowed connection '100992517'
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] DEBUG SQLDriver - [builtinApplication.null] About to execute SQL update in 'DB2' using connection'100992517'
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] INFO SQLDriver - [builtinApplication.null] Executing SQL update on 'DB2': UPDATE batchRun SET batchEndTime='2013-07-18 10:04:22' WHERE (batchRun.batchStartTime='2013-07-18 10:04:18')
[18/07/13 10.04.22:597 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,597 [ : 5] DEBUG SQLDataSource - [builtinApplication.null] update operation affected 1 rows
[18/07/13 10.04.22:597 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,597 [ : 5] DEBUG SQLDriver - Freeing SQLDriver dbConnection 100992517
[18/07/13 10.04.22:598 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,598 [ : 5] DEBUG SQLConnectionManager - About to close PoolableConnection with hashcode "100992517"
As you can see, TestRunner starts and successfully writes the execution log into the batchRun table, but it does not process any *.rctest.html file (it does not write into the testResult table).
It seems that TestRunner is not able to find the *.rctest.html files.
We used this link as documentation: http://www.smartclient.com/smartgwte...estRunner.html.
Is there any more available?
Could you help us?
Thanks in advance for you support.
pcocchi
we are testing TestRunner utility (SmartGwt Power 4.0).
We correctly created the "batchRun" and "testResult" tables with AdminConsole utility.
We ran the code found into TestRunner documentation as follows:
TestRunnerDriver driver = new TestRunnerDriver();
driver.setTestRoot(System.getProperty("user.install.root") + "\\" + "selenium_testRoot");
driver.setBatchCommit(true);
String[] files = {"test1.rctest.html"};
driver.setFiles(files);
driver.run();
The "testRoot" is an external path. The "test1.rctest.html" file is into this path.
The execution generates the following log:
[18/07/13 10.04.18:441 CEST] 00000032 SystemOut O === 2013-07-18 10:04:18,441 [ : 5] DEBUG SQLDriver - Freeing SQLDriver dbConnection 100992517
[18/07/13 10.04.18:441 CEST] 00000032 SystemOut O === 2013-07-18 10:04:18,441 [ : 5] DEBUG SQLConnectionManager - About to close PoolableConnection with hashcode "100992517"
[18/07/13 10.04.21:100 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.log.LoggingManager configureLogging Writing debug logs to selenium.log
[18/07/13 10.04.21:104 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer logStartupInfo Java: IBM Corporation 2.4
[18/07/13 10.04.21:105 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer logStartupInfo OS: Windows 7 6.1 build 7600 x86
[18/07/13 10.04.21:135 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer logVersionNumber v2.26.0, with Core v2.26.0. Built from revision 18041
[18/07/13 10.04.21:683 CEST] 00000032 SeleniumServe I org.openqa.selenium.server.SeleniumServer createWebDriverRemoteContext RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
[18/07/13 10.04.21:693 CEST] 00000032 HttpServer I org.openqa.jetty.http.HttpServer doStart Version Jetty/5.1.x
[18/07/13 10.04.21:697 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/selenium-server,/selenium-server]
[18/07/13 10.04.21:712 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started org.openqa.jetty.jetty.servlet.ServletHandler@8090809
[18/07/13 10.04.21:715 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/wd,/wd]
[18/07/13 10.04.21:717 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/selenium-server/driver,/selenium-server/driver]
[18/07/13 10.04.21:719 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started HttpContext[/,/]
[18/07/13 10.04.21:761 CEST] 00000032 SocketListene I org.openqa.jetty.http.SocketListener start Started SocketListener on 0.0.0.0:4444
[18/07/13 10.04.21:763 CEST] 00000032 Container I org.openqa.jetty.util.Container start Started org.openqa.jetty.jetty.Server@48f448f4
[18/07/13 10.04.21:769 CEST] 00000032 SystemOut O === 2013-07-18 10:04:21,769 [ : 5] INFO SeleniumServerHelper - Selenium server started
[18/07/13 10.04.21:931 CEST] 00000034 ThreadedServe I org.openqa.jetty.util.ThreadedServer$Acceptor run Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]
[18/07/13 10.04.22:030 CEST] 00000032 SocketListene I org.openqa.jetty.http.SocketListener stop Stopped SocketListener on 0.0.0.0:4444
[18/07/13 10.04.22:201 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/selenium-server,/selenium-server]
[18/07/13 10.04.22:203 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped org.openqa.jetty.jetty.servlet.ServletHandler@8090809
[18/07/13 10.04.22:367 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/wd,/wd]
[18/07/13 10.04.22:415 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/selenium-server/driver,/selenium-server/driver]
[18/07/13 10.04.22:522 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped HttpContext[/,/]
[18/07/13 10.04.22:524 CEST] 00000032 Container I org.openqa.jetty.util.Container stop Stopped org.openqa.jetty.jetty.Server@48f448f4
[18/07/13 10.04.22:525 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,525 [ : 5] INFO SeleniumServerHelper - Selenium server stopped
[18/07/13 10.04.22:526 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,526 [ : 5] DEBUG DSRequest - Caching instance 18 of DS batchRun from DSRequest.getDataSource()
[18/07/13 10.04.22:526 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,526 [ : 5] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
[18/07/13 10.04.22:527 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,527 [ : 5] DEBUG AppBase - [builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application
[18/07/13 10.04.22:527 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,527 [ : 5] DEBUG AppBase - [builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation
[18/07/13 10.04.22:527 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,527 [ : 5] INFO SQLDataSource - [builtinApplication.null] Performing update operation with
criteria: {batchStartTime:new Date(1374134658000)} values: {batchEndTime:new Date(1374134662526)}
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] WARN SQLDriver - [builtinApplication.null] DSRequest has no RPCManager set when testing if we should join a transaction - transaction will not be joined
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] DEBUG SQLConnectionManager - [builtinApplication.null] Borrowed connection '100992517'
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] DEBUG SQLDriver - [builtinApplication.null] About to execute SQL update in 'DB2' using connection'100992517'
[18/07/13 10.04.22:528 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,528 [ : 5] INFO SQLDriver - [builtinApplication.null] Executing SQL update on 'DB2': UPDATE batchRun SET batchEndTime='2013-07-18 10:04:22' WHERE (batchRun.batchStartTime='2013-07-18 10:04:18')
[18/07/13 10.04.22:597 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,597 [ : 5] DEBUG SQLDataSource - [builtinApplication.null] update operation affected 1 rows
[18/07/13 10.04.22:597 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,597 [ : 5] DEBUG SQLDriver - Freeing SQLDriver dbConnection 100992517
[18/07/13 10.04.22:598 CEST] 00000032 SystemOut O === 2013-07-18 10:04:22,598 [ : 5] DEBUG SQLConnectionManager - About to close PoolableConnection with hashcode "100992517"
As you can see, TestRunner starts and successfully writes the execution log into the batchRun table, but it does not process any *.rctest.html file (it does not write into the testResult table).
It seems that TestRunner is not able to find the *.rctest.html files.
We used this link as documentation: http://www.smartclient.com/smartgwte...estRunner.html.
Is there any more available?
Could you help us?
Thanks in advance for you support.
pcocchi
Comment