Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:41 Go to next message
Elise Ruelle is currently offline Elise RuelleFriend
Messages: 74
Registered: April 2013
Member
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!


Elise Ruelle

ALL4TEC

[Updated on: Tue, 22 December 2015 12:56]

Report message to a moderator

Re: Script pass from rcptt but not from hudson [message #1719123 is a reply to message #1718317] Tue, 05 January 2016 13:57 Go to previous messageGo to next message
Elise Ruelle is currently offline Elise RuelleFriend
Messages: 74
Registered: April 2013
Member
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 !


Elise Ruelle

ALL4TEC
Re: Script pass from rcptt but not from hudson [message #1728868 is a reply to message #1719123] Fri, 08 April 2016 06:59 Go to previous messageGo to next message
Francois Le Fevre is currently offline Francois Le FevreFriend
Messages: 56
Registered: October 2014
Location: Paris Saclay, France
Member
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 10:57 Go to previous messageGo to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

In my opinion depends from your pom file. Why don't you try to log in a different version of Maven Plugin ?

"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Re: Script pass from rcptt but not from hudson [message #1729121 is a reply to message #1729120] Mon, 11 April 2016 10:59 Go to previous messageGo to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

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>



"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Re: Script pass from rcptt but not from hudson [message #1806683 is a reply to message #1729121] Mon, 13 May 2019 19:13 Go to previous message
Ming Hu is currently offline Ming HuFriend
Messages: 3
Registered: June 2016
Junior Member
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 19:15]

Report message to a 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: Sun Nov 10 19:16:06 GMT 2024

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

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

Back to the top