How to get the automation tests displayed in Test Cases Workspace for Squash TM

Avatar de l’utilisateur
bfranchet
Messages : 142
Inscription : jeu. nov. 22, 2012 1:36 pm

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par bfranchet »

Hi,

Could you send us your Squashh TM logs ? Maybe we could find some informations on your problem there.

Regards
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

Error from Squash TM logs. Hope this might help narrow down the issue . Please note servername / address in the url has been erased /replaced with server text


qtp19335919-89 ERROR 09/02 14:32:10 [org.squashtest.tm.service.testautomation.spi.TestAutomationConnector] - TestAutomationConnector : the task 'fetch test list' failed for project 'templateSquashTAExecutionMavenJob' on server 'http://server:9090', caused by :
java.util.concurrent.ExecutionException: org.squashtest.tm.service.testautomation.spi.NotFoundException: TestAutomationConnector : the requested build for project project 'templateSquashTAExecutionMavenJob', build : external id '1423477929224', jenkins id 'null' cannot be found
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.squashtest.tm.service.internal.testautomation.FetchTestListFuture.get(FetchTestListFuture.java:59)
at org.squashtest.tm.service.internal.testautomation.AutomatedTestManagerServiceImpl.collectAllTestLists(AutomatedTestManagerServiceImpl.java:134)
at org.squashtest.tm.service.internal.testautomation.AutomatedTestManagerServiceImpl.listTestsInProjects(AutomatedTestManagerServiceImpl.java:100)
at sun.reflect.GeneratedMethodAccessor283.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy190.listTestsInProjects(Unknown Source)
at org.squashtest.tm.service.internal.testcase.CustomTestCaseModificationServiceImpl.findAssignableAutomationTests(CustomTestCaseModificationServiceImpl.java:389)
at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy214.findAssignableAutomationTests(Unknown Source)
at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.squashtest.tm.core.dynamicmanager.internal.handler.CustomMethodHandler.invoke(CustomMethodHandler.java:44)
at org.squashtest.tm.core.dynamicmanager.internal.handler.CompositeInvocationHandler.doInvoke(CompositeInvocationHandler.java:75)
at org.squashtest.tm.core.dynamicmanager.internal.handler.CompositeInvocationHandler.invoke(CompositeInvocationHandler.java:59)
at com.sun.proxy.$Proxy131.findAssignableAutomationTests(Unknown Source)
at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy152.findAssignableAutomationTests(Unknown Source)
at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:71)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:54)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy302.findAssignableAutomationTests(Unknown Source)
at org.squashtest.tm.web.internal.controller.testcase.TestCaseAutomationController.findAssignableAutomatedTests(TestCaseAutomationController.java:60)
at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.squashtest.tm.web.internal.filter.IE8AcceptHeaderFixerFilter.doFilter(IE8AcceptHeaderFixerFilter.java:158)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.squashtest.tm.web.internal.filter.UserConcurrentRequestLockFilter.handleReadRequest(UserConcurrentRequestLockFilter.java:114)
at org.squashtest.tm.web.internal.filter.UserConcurrentRequestLockFilter.handleRequest(UserConcurrentRequestLockFilter.java:101)
at org.squashtest.tm.web.internal.filter.UserConcurrentRequestLockFilter.doFilter(UserConcurrentRequestLockFilter.java:75)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.squashtest.csp.core.bugtracker.web.BugTrackerContextPersistenceFilter.doFilter(BugTrackerContextPersistenceFilter.java:78)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.squashtest.tm.web.internal.filter.HtmlSanitizationFilter.doFilter(HtmlSanitizationFilter.java:68)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Unknown Source)
Caused by: org.squashtest.tm.service.testautomation.spi.NotFoundException: TestAutomationConnector : the requested build for project project 'templateSquashTAExecutionMavenJob', build : external id '1423477929224', jenkins id 'null' cannot be found
at org.squashtest.tm.plugin.testautomation.jenkins.internal.tasksteps.GetBuildID.perform(GetBuildID.java:111)
at org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.BuildStep.run(BuildStep.java:51)
at org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.SameThreadStepScheduler.schedule(SameThreadStepScheduler.java:31)
at org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.SameThreadStepScheduler.schedule(SameThreadStepScheduler.java:41)
at org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.AbstractBuildProcessor.scheduleNextStep(AbstractBuildProcessor.java:86)
at org.squashtest.tm.plugin.testautomation.jenkins.internal.tasks.SynchronousBuildProcessor.run(SynchronousBuildProcessor.java:31)
at org.squashtest.tm.plugin.testautomation.jenkins.TestAutomationJenkinsConnector.listTestsInProject(TestAutomationJenkinsConnector.java:149)
at sun.reflect.GeneratedMethodAccessor284.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:71)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:54)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy220.listTestsInProject(Unknown Source)
at org.squashtest.tm.service.internal.testautomation.FetchTestListTask.call(FetchTestListTask.java:51)
at org.squashtest.tm.service.internal.testautomation.FetchTestListTask.call(FetchTestListTask.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
Avatar de l’utilisateur
bfranchet
Messages : 142
Inscription : jeu. nov. 22, 2012 1:36 pm

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par bfranchet »

Hello,

I asked to a collegue of the TM team. It seems that TM didn't found the list of TA script.
Do you confirm that the TA script list is published in your jenkins ? You should have a link named "Test list" in the left menu of your jenkins job. And when you click on this link you have a file in json which contains the list of your ta script.

If it's not the case, take a look to your job configuration. In the post build section, the "Publish HTML reports" part should be configured like in the capture attached to this post.

Regards

[attachment=219]Capture.png[/attachment]
Pièces jointes
Capture.png
Capture.png (39.34 Kio) Consulté 3029 fois
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

Please see my response inline with tag [SAK]

Do you confirm that the TA script list is published in your jenkins ? You should have a link named "Test list" in the left menu of your jenkins job. And when you click on this link you have a file in json which contains the list of your ta script.

[SAK]: No. There is no link named "Test List" in the left menu of my jenkins job.
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

If it's not the case, take a look to your job configuration. In the post build section, the "Publish HTML reports" part should be configured like in the capture attached to this post.

[SAK]: After carrying out the job configuration as instructed, it still doesn't list the link in jenkins job.

I find following lines in the console output post build execution

Waiting for Jenkins to finish collecting data
[JENKINS] Archiving C:\Documents and Settings\qa\.jenkins\workspace\templateSquashTAExecutionMavenJob\my.squash.ta.project\pom.xml to org.squashtest.tutorial/my.squash.ta.project/1.0/my.squash.ta.project-1.0.pom
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level C:\Documents and Settings\qa\.jenkins\workspace\templateSquashTAExecutionMavenJob\target\squashTA\html-reports to C:\Documents and Settings\qa\.jenkins\jobs\templateSquashTAExecutionMavenJob\builds\137\htmlreports\Squash_TA_HTML_Report
[htmlpublisher] Archiving at PROJECT level C:\Documents and Settings\qa\.jenkins\workspace\templateSquashTAExecutionMavenJob\target\squashTA\test-tree to C:\Documents and Settings\qa\.jenkins\jobs\templateSquashTAExecutionMavenJob\htmlreports\Test_List
Finished: SUCCESS
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

Please note that there is no htmlreports folder in the destination location
C:\Documents and Settings\qa\.jenkins\jobs\templateSquashTAExecutionMavenJob\builds\137
C:\Documents and Settings\qa\.jenkins\jobs\templateSquashTAExecutionMavenJob

Do I need to check /set something?
Avatar de l’utilisateur
bfranchet
Messages : 142
Inscription : jeu. nov. 22, 2012 1:36 pm

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par bfranchet »

Hello

Clic on the "Workspace" link in you jenkins job. There you should find: target/squashTA/test-tree/testTree.json
If it's not the case, that means the test list is not generated at all, so could you send your full execution log?

By the way which version of TA framework do you use ?
Do you use your own jenkins or the one embedded in Squash TA server ?

Regards
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

Please find attached screenshot for the click on workspace and then navigating through the project and finally with the json file and its content (No direct link available)

This file lists the test "PetStoreSeleniumStoreTest.ta" which I am looking for.


Also launching jenkins manually with the parameter goal = squash-ta:test-list lists both the tests associated to my project in console oupt for the run

TA framework used in my case is "1.8.0-RELEASE"


I have squash toolbox installed which i think doesn't have jenkins so to answer your question, I have my own jenkins set to different port (9090)


Just a quick question: DO i need to specify goal in the jenkins job beneath the pom details?

I assume with the execution report you meant about the console output for the job run. Please find attached the same. Do let me know if any other info. is required?

On another note, I am also attaching screenshot for HTML report settings that was mentioned earlier
Pièces jointes
Test-Tree.png
Test-Tree.png (171.55 Kio) Consulté 3029 fois
Consoleoutputlogforjenkinsjob.txt
(5.83 Kio) Téléchargé 133 fois
Jenkinsjob-HTMLreportsettings.png
Jenkinsjob-HTMLreportsettings.png (125.35 Kio) Consulté 3029 fois
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

Please find attached screenshot for the click on workspace and then navigating through the project and finally with the json file and its content (No direct link available)

This file lists the test "PetStoreSeleniumStoreTest.ta" which I am looking for.


[attachment=223]Jenkinsjob-HTMLreportsettings.png[/attachment]

Also launching jenkins manually with the parameter goal = squash-ta:test-list lists both the tests associated to my project in console output for the run


TA framework used in my case is "1.8.0-RELEASE"


I have squash toolbox installed which i think doesn't have jenkins so to answer your question, I have my own jenkins set to different port (9090)


Just a quick question: DO i need to specify goal in the jenkins job beneath the pom details?

I assume with the execution report you meant about the console output for the job run. Please find attached the same. Do let me know if any other info. is required?


[attachment=224]Consoleoutputlogforjenkinsjob.txt[/attachment]

On another note, I am also attaching screenshot for HTML report settings that was mentioned earlier


[attachment=225]Test-Tree_2015-02-11.png[/attachment]
Pièces jointes
Test-Tree_2015-02-11.png
Test-Tree_2015-02-11.png (171.55 Kio) Consulté 3029 fois
Consoleoutputlogforjenkinsjob.txt
(5.83 Kio) Téléchargé 137 fois
Jenkinsjob-HTMLreportsettings.png
Jenkinsjob-HTMLreportsettings.png (125.35 Kio) Consulté 3029 fois
Saleej
Messages : 43
Inscription : jeu. janv. 29, 2015 4:50 am

How to get the automation tests displayed in Test Cases Workspace for Squash TM

Message par Saleej »

Quick Question: I haven't seen it on the site, but do squash support also have chat room?

It would have been helpful to get a quick solution / feedback on the thread and avoid the time differnce
Répondre

Revenir à « Lien cas de test - tests automatisés / Test cases - automated tests link »