Page 1 sur 1

Test result can not display in Squash-tm

Publié : lun. oct. 17, 2016 3:22 pm
par Grace
Hello,

I am using Squash-tm 1.13.2, squash-ta Toolbox 1.9.0 and Squash-ta server 1.7.1. I can run the test successfully in Eclipse, Jenkins, and can trigger it through Squash-TM. After the test is finished, squash-ta doesn't return the test result to Squash-TM. I checked the configuration many times, delete them all and started over three times. But couldn't figure it out.

I attached my pom.xml, console output and test script.


[attachment=402]pom.txt[/attachment]

[attachment=403]console.png[/attachment]

[attachment=404]test1.png[/attachment]

[attachment=405]test2.png[/attachment]

Does anybody know what's wrong in my project, and can help me to figure it out?

Thanks!

Test result can not display in Squash-tm

Publié : mer. oct. 26, 2016 5:14 pm
par mdelobeau
Hello,

Could you describe the steps you followed to configure the TM-TA link ?

Did you edit the squash.tm.cfg.properties file as mentioned [url=https://sites.google.com/a/henix.fr/wik ... rom-1-13-0]here[/url] ?

Did you also configure [url=https://sites.google.com/a/henix.fr/wik ... from-1-7-0]Squash TA server[/url] ?

Regards,

Marion - Squash Team

Test result can not display in Squash-tm

Publié : jeu. oct. 27, 2016 3:00 pm
par Grace
Hi Marion,

Thanks for your reply.

Here's my steps in Jenkins:

1. I use E:\Squash-TA-Server\execution_home as jenkins' home directory. have checked the plug in, they all have been installed.

2. Management Jenkins > Managed files,
[b]TaGlobalSettings[/b] file uses C:/Users/gwang/.m2/repository as maven repository because it's also used by other automation test.
[b]conf.properties[/b],
endpoint=http://10.1.0.18:8080/squash
endpoint.login=taserver
endpoint.password=taserver

I tried with
endpoint.1=http://10.1.0.18:8080/squash
endpoint.1.login=taserver
endpoint.1.password=taserver
then I got: login key null.login not found, no credentials will be used. After I removed ".1", It's a little better: login key http://localhost:8080/squash.login not found, no credentials will be used.

3. Management Jenkins > [b]Configuration files[/b], installed jdk1.8.0_31, maven3.3.3, Mercurial, Artifactory. re-entered Jenkins URL: http://10.1.0.18:9080/jenkins/ and Save.

4. [b]Configure Global Security[/b]: Enable security, use Jenkins' own user database, allow users to sign up, and Anyone can do anything.

5. Sign up a user [b]tmserver[/b] with password [b]tmserver[/b]

6. Copied jenkins job templateSquashTAExecutionMavenJob to myNewJob, the configuration in this job is:
operation: run
log4j2ConfigurationFile:log4j2.xml
externalJobId: blank
notificationURL: file://dev/null
testList: {file:testsuite.json}
others are using default configuration.
update source code management to pull from mercurial

7. In E:\Squash-TA-Server\execution_home, create taLinkConf.properties file
8. In E:\Squash-TA-Server\execution_home, create conf.properties:
http\://10.1.0.18\:8080/squash.login=tmserver
http\://10.1.0.18\:8080/squash.password=tmserver


Steps in Squash:
1. In E:\Squash-TM\conf, file squash.tm.cfg.properties:
tm.test.automation.pollinterval.millis=3000
tm.test.automation.server.callbackurl=http://10.1.0.18:8080/squash

2. Create a test automation server user with userName/password: taserver/taserver, in Test Automation Server group

3. Create test automation server: SquashTAServer with userName/password: tmserver/tmserver, URL: 10.1.0.18:9080/jenkins

4. Configure one Project to use SquashTAServer, add job myNewJob, job URL: http://10.1.0.18:9080/jenkins/job/myNewJob

5. In Test Case Workspace, select a test case, select /myNewJob/tc1.ta in Auto. script field

6. Run the test in Campaign workspace

One thing I did I changed jenkins WAR to use v1.609.3 instead, because I got an error when saving configuration.

Let me know if I missed something. Thank you so much!

Grace

Test result can not display in Squash-tm

Publié : jeu. oct. 27, 2016 3:32 pm
par Grace
Here's my console output.

Test result can not display in Squash-tm

Publié : jeu. févr. 02, 2017 1:48 pm
par Grace
[quote="Grace Wang" post=5400]Hi Marion,

Thanks for your reply.

Here's my steps in Jenkins:

1. I use E:\Squash-TA-Server\execution_home as jenkins' home directory. have checked the plug in, they all have been installed.

2. Management Jenkins > Managed files,
TaGlobalSettings file uses C:/Users/gwang/.m2/repository as maven repository because it's also used by other automation test.
conf.properties,
endpoint=http://XXXX:XXXX/squash
endpoint.login=taserver
endpoint.password=taserver

I tried with
endpoint.1=http://XXXX:XXXX/squash
endpoint.1.login=taserver
endpoint.1.password=taserver
then I got: login key null.login not found, no credentials will be used. After I removed ".1", It's a little better: login key http://localhost:8080/squash.login not found, no credentials will be used.

3. Management Jenkins > Configuration files, installed jdk1.8.0_31, maven3.3.3, Mercurial, Artifactory. re-entered Jenkins URL: http://XXXX:XXXX/jenkins/ and Save.

4. Configure Global Security: Enable security, use Jenkins' own user database, allow users to sign up, and Anyone can do anything.

5. Sign up a user tmserver with password tmserver

6. Copied jenkins job templateSquashTAExecutionMavenJob to myNewJob, the configuration in this job is:
operation: run
log4j2ConfigurationFile:log4j2.xml
externalJobId: blank
notificationURL: file://dev/null
testList: {file:testsuite.json}
others are using default configuration.
update source code management to pull from mercurial

7. In E:\Squash-TA-Server\execution_home, create taLinkConf.properties file
8. In E:\Squash-TA-Server\execution_home, create conf.properties:
http\://XXXX:XXXX/squash.login=tmserver
http\://XXXX:XXXX/squash.password=tmserver


Steps in Squash:
1. In E:\Squash-TM\conf, file squash.tm.cfg.properties:
tm.test.automation.pollinterval.millis=3000
tm.test.automation.server.callbackurl=http://XXXX:XXXX/squash

2. Create a test automation server user with userName/password: taserver/taserver, in Test Automation Server group

3. Create test automation server: SquashTAServer with userName/password: tmserver/tmserver, URL: XXXX:XXXX/jenkins

4. Configure one Project to use SquashTAServer, add job myNewJob, job URL: http://XXXX:XXXX/jenkins/job/myNewJob

5. In Test Case Workspace, select a test case, select /myNewJob/tc1.ta in Auto. script field

6. Run the test in Campaign workspace

One thing I did I changed jenkins WAR to use v1.609.3 instead, because I got an error when saving configuration.

Let me know if I missed something. Thank you so much!

Grace[/quote]

Test result can not display in Squash-tm

Publié : jeu. févr. 02, 2017 2:00 pm
par Grace
[quote="Grace Wang" post=5326]Hello,

I am using Squash-tm 1.13.2, squash-ta Toolbox 1.9.0 and Squash-ta server 1.7.1. I can run the test successfully in Eclipse, Jenkins, and can trigger it through Squash-TM. After the test is finished, squash-ta doesn't return the test result to Squash-TM. I checked the configuration many times, delete them all and started over three times. But couldn't figure it out.

I attached my pom.xml, console output and test script.



Does anybody know what's wrong in my project, and can help me to figure it out?

Thanks![/quote]