Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Script pass from rcptt but not from hudson
Script pass from rcptt but not from hudson [message #1718317] Tue, 22 December 2015 06:41 Go to next message
Eclipse UserFriend
Hi everyone,

I come here with a new issue using RCPTT.
I wrote a script to test a feature of my AUT. To be more precise, this script create a report in my AUT (shown by BIRT) and click on a button to export it.

This script works very well if I run it from RCPTT, or via maven in my local machine or in the machine used by the continuous integration but if I run it from Hudson the script failed. I've tried to check, what's going on during the run in this particular case and if I look at the screen during the test it works !
I really don't understand what's the problem with my script.

This is the code where the error appears :
with [get-view $Report] {
	with [get-control Browser | get-property text] {
    	    contains "Error" | verify-false
    	    contains "sql" | verify-false
    }
    get-button "Add report to project" | click
}

The exact error is : [INFO] Fail 14 (14) processed. 2 failed. spent: 22:16, 0:00 mins remaining. 19 - Check Reports Visualisation and Exports. time: 67469ms Cause: The Browser "[]" could not be found.

If anyone could help me on this particular problem, I will really appreciate.

Thanks per advance for any help!

[Updated on: Tue, 22 December 2015 07:56] by Moderator

Re: Script pass from rcptt but not from hudson [message #1719123 is a reply to message #1718317] Tue, 05 January 2016 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Hi everyone,

Nobody has an idea about this issue ?

I've tried some others things, but it doesn't work. I've tried to explicitly specify the levels before the "get-control Browser", or try to wait before to select it but I always have the same result.

Thanks per advance for any idea or clue !
Re: Script pass from rcptt but not from hudson [message #1728868 is a reply to message #1719123] Fri, 08 April 2016 02:59 Go to previous messageGo to next message
Eclipse UserFriend
Hello
I am facing a similar problem [1]
The rcptt test is valiaded on my computer when running with rcptt.
But when executing with Hudson, I got a

[INFO] Fail 1 (5) processed. 1 failed. spent: 0:11, 0:11 mins remaining. TC-AProjectCreation. time: 10709ms Cause: The Button "SysML 1.4" could not be found.

The line in my test [2] is:

get-button "SysML 1.4" | click

Anyone has a clue?
Thanks
Francois


[1]: https://hudson.eclipse.org/papyrus/job/papyrus-sysml-gerrit-product/87/console
[2]: /org.eclipse.papyrus.sysml14.rcptt.tests/testcases/TC-AProjectCreation.test
Re: Script pass from rcptt but not from hudson [message #1729120 is a reply to message #1728868] Mon, 11 April 2016 06:57 Go to previous messageGo to next message
Eclipse UserFriend
In my opinion depends from your pom file. Why don't you try to log in a different version of Maven Plugin ?
Re: Script pass from rcptt but not from hudson [message #1729121 is a reply to message #1729120] Mon, 11 April 2016 06:59 Go to previous messageGo to next message
Eclipse UserFriend
Try this
  <!-- RCPTT Maven Plugin and RCPTT Runner are hosted in this repository -->
  <pluginRepositories>
    <pluginRepository>
      <id>rcptt-releases</id>
      <name>RCPTT Maven repository</name>
      <url>https://repo.eclipse.org/content/repositories/rcptt-releases/</url>
    </pluginRepository>
    <pluginRepository>
      <id>rcptt-snapshots</id>
      <name>RCPTT Maven Snapshots repository</name>
      <snapshots>
        <updatePolicy>always</updatePolicy>
      </snapshots>
      <url>https://repo.eclipse.org/content/repositories/rcptt-snapshots/</url>
    </pluginRepository>
  </pluginRepositories>

  <!-- 
       If RCPTT tests are planned to be run on an update site, 
       RCPTT Maven Plugin can download Eclipse SDK of required version
       for current platform from repository below (to see 
       an up-to-date list of available versions visit this link:
       http://maven.xored.com/nexus/content/repositories/ci4rcptt-releases/org/eclipse/sdk/
  -->
  <properties>
     <rcptt-maven-version>2.0.1</rcptt-maven-version>
  </properties>

Re: Script pass from rcptt but not from hudson [message #1806683 is a reply to message #1729121] Mon, 13 May 2019 15:13 Go to previous message
Eclipse UserFriend
Hi Elise/Francois,

We are using 2.0.0 rcptt and 2.0.1 rcptt runner, and we have observed the same issue here, test passed in rcptt IDE but failed in Jenkins. Or test passed in local maven run from DOS prompt, but failed in Jenkins.

I wonder if you have resolved this issue? Has the above suggestion from Angelo worked?

Thanks,
Ming

[Updated on: Mon, 13 May 2019 15:15] by Moderator

Previous Topic:Different results between Jenkins and test cases run from RCPTT IDE
Next Topic:RCPTT for testing sirius Diagrams
Goto Forum:
  


Current Time: Thu Mar 27 03:50:38 EDT 2025

Powered by FUDForum. Page generated in 0.04449 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top