The execution raised an error in the TEST phase of the TA script 'test.ta'
Publié : mar. janv. 10, 2017 10:03 pm
Hi,
I'm newbie using Squash. I have configured squash TA and its Jenkins. I have a Selenium Maven Project that can be launched using [code]mvn test -Dtest=PersonnePhysiqueCreationTest[/code]. When I launch the Jenkins job using list, the TA file is found and the corresponding json file is created.
But when I run the Jenkins job, I get this error message:
The execution raised an error in the TEST phase of the TA script 'second-test.ta' with the message: 'The resource SCOPE_TEST:selenium cannot be found. Please note that the resource name must not contains any space.'.
[code][INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building testsuite1 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- squash-ta-maven-plugin:1.9.0-RELEASE:run (default-cli) @ testsuite1 ---
[WARN] The POM for javafx:jfxrt:jar:2.2 is missing, no dependency information available
[WARN] Per maven bug #MNG5787, re-adding filtered artifact URL: file:/C:/m2_repo/javax/inject/javax.inject/1/javax.inject-1.jar
[WARN] Per maven bug #MNG5787, re-adding filtered artifact URL: file:/C:/m2_repo/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[WARN] Applied Maven 3.3.x fix
[INFO] Squash TA : compiling tests...
[INFO] Squash TA : initializing context...
[INFO] Listing sqhashTA engine component packages
[INFO] Loading plugin configuration for: org.squashtest.ta.enginecore
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.commons-component
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.filechecker
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.sahi
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.soapui
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.selenium
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.ftp
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.db
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.ssh
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.local.process
[INFO] Loading XML bean definitions from Byte array resource [Computed squashTA engine configuration]
[INFO] Refreshing org.springframework.context.support.GenericXmlApplicationContext@37a54f5e: startup date [Tue Jan 10 21:48:18 CET 2017]; root of context hierarchy
[INFO] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[WARN] The endpoint URL is set to its default value: "file://dev/null", so the call back is not activated
[INFO] Squash TA : testing...
[WARN] TA context initialization : configuration warning : repository 'file:/C:/Selenium/Squash-TA-Server/execution_home/jobs/pruebasquashta/workspace/src/squashTA/repositories/PersonnePhysiqueCreationTest.java' could not be instanciated
[INFO] Beginning execution of ecosystem tests
[INFO] Beginning execution of test first-test.ta
[INFO] Beginning execution of test second-test.ta
[INFO] URLRepository : could not load resource 'selenium' from repository 'file:src/squashTA/resources' : malformed url
[ERROR] The execution raised an error in the TEST phase of the TA script 'second-test.ta' with the message: 'The resource SCOPE_TEST:selenium cannot be found. Please note that the resource name must not contains any space.'.
[INFO] Exporting results
[INFO] Cleaning resources
[INFO] Squash TA : build complete.
[INFO] All the files from C:\Users\usuario\AppData\Local\Temp\Squash_TA were properly deleted.
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.081 s
[INFO] Finished at: 2017-01-10T21:48:21+01:00
[INFO] Final Memory: 20M/491M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.squashtest.ta:squash-ta-maven-plugin:1.9.0-RELEASE:run (default-cli) on project testsuite1: Build failure : there are tests failures
[ERROR] Test statistics : 2 test runs, 1 passed, 1 tests didn't pass
[ERROR] Tests failed / crashed :
[ERROR] -----------
[ERROR] tests:
[ERROR] ==> second-test.ta
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... eException
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\workspace\target\squashTA\html-reports to C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\builds\2017-01-10_21-48-06\htmlreports\Squash_TA_HTML_Report
[htmlpublisher] Archiving at PROJECT level C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\workspace\target\squashTA\test-tree to C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\htmlreports\Test_list
Finished: FAILURE[/code]
My Ta script file is:
[code]SETUP :
TEST :
# EXECUTE_SELENIUM2 selenium WITH MAIN CLASS PersonnePhysiqueCreationTest
TEARDOWN :[/code]
I'm newbie using Squash. I have configured squash TA and its Jenkins. I have a Selenium Maven Project that can be launched using [code]mvn test -Dtest=PersonnePhysiqueCreationTest[/code]. When I launch the Jenkins job using list, the TA file is found and the corresponding json file is created.
But when I run the Jenkins job, I get this error message:
The execution raised an error in the TEST phase of the TA script 'second-test.ta' with the message: 'The resource SCOPE_TEST:selenium cannot be found. Please note that the resource name must not contains any space.'.
[code][INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building testsuite1 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- squash-ta-maven-plugin:1.9.0-RELEASE:run (default-cli) @ testsuite1 ---
[WARN] The POM for javafx:jfxrt:jar:2.2 is missing, no dependency information available
[WARN] Per maven bug #MNG5787, re-adding filtered artifact URL: file:/C:/m2_repo/javax/inject/javax.inject/1/javax.inject-1.jar
[WARN] Per maven bug #MNG5787, re-adding filtered artifact URL: file:/C:/m2_repo/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
[WARN] Applied Maven 3.3.x fix
[INFO] Squash TA : compiling tests...
[INFO] Squash TA : initializing context...
[INFO] Listing sqhashTA engine component packages
[INFO] Loading plugin configuration for: org.squashtest.ta.enginecore
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.commons-component
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.filechecker
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.sahi
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.soapui
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.selenium
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.ftp
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.db
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.ssh
[INFO] Loading plugin configuration for: org.squashtest.ta.plugin.local.process
[INFO] Loading XML bean definitions from Byte array resource [Computed squashTA engine configuration]
[INFO] Refreshing org.springframework.context.support.GenericXmlApplicationContext@37a54f5e: startup date [Tue Jan 10 21:48:18 CET 2017]; root of context hierarchy
[INFO] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[WARN] The endpoint URL is set to its default value: "file://dev/null", so the call back is not activated
[INFO] Squash TA : testing...
[WARN] TA context initialization : configuration warning : repository 'file:/C:/Selenium/Squash-TA-Server/execution_home/jobs/pruebasquashta/workspace/src/squashTA/repositories/PersonnePhysiqueCreationTest.java' could not be instanciated
[INFO] Beginning execution of ecosystem tests
[INFO] Beginning execution of test first-test.ta
[INFO] Beginning execution of test second-test.ta
[INFO] URLRepository : could not load resource 'selenium' from repository 'file:src/squashTA/resources' : malformed url
[ERROR] The execution raised an error in the TEST phase of the TA script 'second-test.ta' with the message: 'The resource SCOPE_TEST:selenium cannot be found. Please note that the resource name must not contains any space.'.
[INFO] Exporting results
[INFO] Cleaning resources
[INFO] Squash TA : build complete.
[INFO] All the files from C:\Users\usuario\AppData\Local\Temp\Squash_TA were properly deleted.
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.081 s
[INFO] Finished at: 2017-01-10T21:48:21+01:00
[INFO] Final Memory: 20M/491M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.squashtest.ta:squash-ta-maven-plugin:1.9.0-RELEASE:run (default-cli) on project testsuite1: Build failure : there are tests failures
[ERROR] Test statistics : 2 test runs, 1 passed, 1 tests didn't pass
[ERROR] Tests failed / crashed :
[ERROR] -----------
[ERROR] tests:
[ERROR] ==> second-test.ta
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... eException
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\workspace\target\squashTA\html-reports to C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\builds\2017-01-10_21-48-06\htmlreports\Squash_TA_HTML_Report
[htmlpublisher] Archiving at PROJECT level C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\workspace\target\squashTA\test-tree to C:\Selenium\Squash-TA-Server\execution_home\jobs\pruebasquashta\htmlreports\Test_list
Finished: FAILURE[/code]
My Ta script file is:
[code]SETUP :
TEST :
# EXECUTE_SELENIUM2 selenium WITH MAIN CLASS PersonnePhysiqueCreationTest
TEARDOWN :[/code]