How to get the automation tests displayed in Test Cases Workspace for Squash TM
How to get the automation tests displayed in Test Cases Workspace for Squash TM
Following pre-requisite has been completed
Install and set up Squash TM
Install and set up Squash TA Toolbox (including Framework and Eclipse)
Setup Squash TA-TM Link
I created maven project and was successfully able to run the test script using eclipse, Jenkins and commandline prompt (Not to forget - with the help from Squash Support -http://www.squashtest.org/forum/ta-scri ... in?lang=en)
Inorder to run the automation test from TM, I followed the steps in the Squash tutorial/ documentation and at present am stuck with one of the issue
I select a test case from Test Cases Workspac. Click on (Click to edit..) for Auto.script field and then I select the Pick.. button
Now the window that opens up includes only the Job name and not the test associated to it
Squash TA version used is 1.8.0-RELEASE (pulled from the pom.xml) and Squash TM version is 1.11.0.RELEASE (fetched from administration panel of Squash TM)
Also attached is the pom.xml file for reference and also the screenshot wherein the tests are not displayed
Install and set up Squash TM
Install and set up Squash TA Toolbox (including Framework and Eclipse)
Setup Squash TA-TM Link
I created maven project and was successfully able to run the test script using eclipse, Jenkins and commandline prompt (Not to forget - with the help from Squash Support -http://www.squashtest.org/forum/ta-scri ... in?lang=en)
Inorder to run the automation test from TM, I followed the steps in the Squash tutorial/ documentation and at present am stuck with one of the issue
I select a test case from Test Cases Workspac. Click on (Click to edit..) for Auto.script field and then I select the Pick.. button
Now the window that opens up includes only the Job name and not the test associated to it
Squash TA version used is 1.8.0-RELEASE (pulled from the pom.xml) and Squash TM version is 1.11.0.RELEASE (fetched from administration panel of Squash TM)
Also attached is the pom.xml file for reference and also the screenshot wherein the tests are not displayed
- Pièces jointes
-
- TestCasesworkspace.png (156.84 Kio) Consulté 3423 fois
How to get the automation tests listed in jobs under the test cases workspace
Missed out attaching pom.xml
How to get the automation tests listed in jobs under the test cases workspace
Not sure why the attachment is not visible. hence pasting the content of the POM file
4.0.0
org.squashtest.tutorial
my.squash.ta.project
pom
1.0
1.8.0-RELEASE
src/log4j.properties
org.squashtest.ta
squash-ta-maven-plugin
${ta.framework.version}
${ta.jenkins.attachment.mode}
${status.update.events.url}
${squash.ta.external.id}
${jobname}
${hostname}
${squash.ta.conf.file}
${ta.tmcallback.reportbaseurl}
${ta.tmcallback.jobexecutionid}
${ta.tmcallback.reportname}
run
org.squashtest.ta.release
squashtest test automation - releases
http://repo.squashtest.org/maven2/releases
org.squashtest.plugins.release
squashtest.org
http://repo.squashtest.org/maven2/releases
false
true
4.0.0
org.squashtest.tutorial
my.squash.ta.project
pom
1.0
1.8.0-RELEASE
src/log4j.properties
org.squashtest.ta
squash-ta-maven-plugin
${ta.framework.version}
${ta.jenkins.attachment.mode}
${status.update.events.url}
${squash.ta.external.id}
${jobname}
${hostname}
${squash.ta.conf.file}
${ta.tmcallback.reportbaseurl}
${ta.tmcallback.jobexecutionid}
${ta.tmcallback.reportname}
run
org.squashtest.ta.release
squashtest test automation - releases
http://repo.squashtest.org/maven2/releases
org.squashtest.plugins.release
squashtest.org
http://repo.squashtest.org/maven2/releases
false
true
How to get the automation tests listed in jobs under the test cases workspace
Hello,
Have you already run this jenkins job ?
In fact Squash TA generate the list of .ta script in the project through two ways:
[ul]
[li]By using the 'list' goal of the TA maven plugin[/li]
[li]As first step of the 'run' goal of the TA maven plugin[/li]
[/ul]
This generated list of .ta script is then published by jenkins at the end of the job.
TM use this published list to display the available .ta script. So if no job execution has been done, then no list is published and no .ta script are displayed in the TM popup. I think it's what happen in your case.
Regards
Have you already run this jenkins job ?
In fact Squash TA generate the list of .ta script in the project through two ways:
[ul]
[li]By using the 'list' goal of the TA maven plugin[/li]
[li]As first step of the 'run' goal of the TA maven plugin[/li]
[/ul]
This generated list of .ta script is then published by jenkins at the end of the job.
TM use this published list to display the available .ta script. So if no job execution has been done, then no list is published and no .ta script are displayed in the TM popup. I think it's what happen in your case.
Regards
How to get the automation tests listed in jobs under the test cases workspace
HI
Thanks for quick response.
I confirm that the jenkins jobs was executed multiple times but it still doesn't list the tests under the job.
Anything else that i need to try?
Thanks for quick response.
I confirm that the jenkins jobs was executed multiple times but it still doesn't list the tests under the job.
Anything else that i need to try?
How to get the automation tests displayed in Test Cases Workspace for Squash TM
First, try to launch with the target on eclipse : mvn squash-ta:test-list
After, launch on Jenkins manually with the parameter goal = squash-ta:test-list
If it works, the problem is around TM and TA link and need détails on your configuration file. Please let me know...
After, launch on Jenkins manually with the parameter goal = squash-ta:test-list
If it works, the problem is around TM and TA link and need détails on your configuration file. Please let me know...
How to get the automation tests displayed in Test Cases Workspace for Squash TM
Hi
It could be a problem of rights of the jenkins user declared in TM. Try to give more rights to this user in jenkins.
Regards
It could be a problem of rights of the jenkins user declared in TM. Try to give more rights to this user in jenkins.
Regards
How to get the automation tests displayed in Test Cases Workspace for Squash TM
As advised, I tried launching on eclipse and Jenkins manually with test-list- It lists my test associated to the project. So it works
Could you please elaborate of configuration files related to TM-TA link that i need to share with?
Thanks in advance
Could you please elaborate of configuration files related to TM-TA link that i need to share with?
Thanks in advance
How to get the automation tests displayed in Test Cases Workspace for Squash TM
Following are the things I tried
1. New user creation from the login screen of Jenkins
Login - Create an account
User: tmserver / tmserver
Later based on your comment tried to give privileges to specific user (doubt if that will make any change as its already set to allow to perform anything for anyone)
This was done from Configure Global Security page. (Assuming thats the only way to do it)
Changed the Authorization parameter from " Anyone can do anything" to "Matrix based secuirty"
Gave anonymous user "read only" and "tmserver" user full access
Run the job from jenkins and then checked the test cases workspace. Tests are still not listed in it
Also tried adding it to Global credentials list(to figure out if it makes any difference) but that too didnt help
There seems some minute stuff that I am missing. Is there something else that I need to check?
1. New user creation from the login screen of Jenkins
Login - Create an account
User: tmserver / tmserver
Later based on your comment tried to give privileges to specific user (doubt if that will make any change as its already set to allow to perform anything for anyone)
This was done from Configure Global Security page. (Assuming thats the only way to do it)
Changed the Authorization parameter from " Anyone can do anything" to "Matrix based secuirty"
Gave anonymous user "read only" and "tmserver" user full access
Run the job from jenkins and then checked the test cases workspace. Tests are still not listed in it
Also tried adding it to Global credentials list(to figure out if it makes any difference) but that too didnt help
There seems some minute stuff that I am missing. Is there something else that I need to check?
How to get the automation tests displayed in Test Cases Workspace for Squash TM
Brief description on the steps carried out for TM-TA link
From TA:
1. Securing the Squash TA server
Configure Global Security in jenkins -
Check "Enable security",
In "Access Control / Security Realm" select "Jenkins's own user database"
Check "Allow users to sign up"
Set "Authorization" to "Anyone can do anything"
Created an user with login / password : tmserver / tmserver
2. Configure TM callback
In jenkins -> Managed files
Created a Global Maven settings.xml with name TaGlobalsSettings and comment Maven global settings for squash TA project with content pre-populated
Created a custom file conf.properties with comment TM-TA link configuration file and content as mentioned below
endpoint.1=http://server:8080/squash (obvious that the server name is provided in the url)
endpoint.1.login=taserver
endpoint.1.password=taserver
From TM:
1. Configure Squash TM properties
Updated the tm.testautomation.conf.properties file in services (ex : C:\Squash-TM\conf\services) folder to have tm.test.automation.server.callbackurl=http://server:8080/squash/ .. "Obvious that the server is updated in the URL"
2. Create a Test Automation Server User:
User created with credentials taserver/taserver and group = Test Automation Server
3. Create a Test Automation Server
Name: Test
URL: http://server:9080/jenkins (obvious server is updated in the URL)
Login: tmserver
Password: tmserver
4. Link an Automated server to a Project
Selected Test in the Execution server details for the project and respective job created in jenkins
---------------------------------------------------------------------------------------------
Ran the jenkins Job
Once the job worked fine and was successful, navigated to Tst cases workspace in Squash TM . Selected a test case within the project . Click on pick for Aut,.script filed.
Actual: Still tests were not displayed. It was just the job
From TA:
1. Securing the Squash TA server
Configure Global Security in jenkins -
Check "Enable security",
In "Access Control / Security Realm" select "Jenkins's own user database"
Check "Allow users to sign up"
Set "Authorization" to "Anyone can do anything"
Created an user with login / password : tmserver / tmserver
2. Configure TM callback
In jenkins -> Managed files
Created a Global Maven settings.xml with name TaGlobalsSettings and comment Maven global settings for squash TA project with content pre-populated
Created a custom file conf.properties with comment TM-TA link configuration file and content as mentioned below
endpoint.1=http://server:8080/squash (obvious that the server name is provided in the url)
endpoint.1.login=taserver
endpoint.1.password=taserver
From TM:
1. Configure Squash TM properties
Updated the tm.testautomation.conf.properties file in services (ex : C:\Squash-TM\conf\services) folder to have tm.test.automation.server.callbackurl=http://server:8080/squash/ .. "Obvious that the server is updated in the URL"
2. Create a Test Automation Server User:
User created with credentials taserver/taserver and group = Test Automation Server
3. Create a Test Automation Server
Name: Test
URL: http://server:9080/jenkins (obvious server is updated in the URL)
Login: tmserver
Password: tmserver
4. Link an Automated server to a Project
Selected Test in the Execution server details for the project and respective job created in jenkins
---------------------------------------------------------------------------------------------
Ran the jenkins Job
Once the job worked fine and was successful, navigated to Tst cases workspace in Squash TM . Selected a test case within the project . Click on pick for Aut,.script filed.
Actual: Still tests were not displayed. It was just the job