Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Get the name of a testcase by ECL command (i.e. by variable substitution)(How to access the name of a testcase by ECL command)
icon5.gif  Get the name of a testcase by ECL command (i.e. by variable substitution) [message #1722058] Tue, 02 February 2016 14:25 Go to next message
Christian Bruckner is currently offline Christian BrucknerFriend
Messages: 1
Registered: February 2016
Junior Member
Hi all,

our AUT creates log files during the test run. These are copied from the workspace, gathered in one folder, and finally added by the Jenkins job to its build artifacts. In order to associate the log files to their corresponding test case, it would be helpful to label them with the name of the testcase.

Our first attempt resulted in the following workaround:
let [val testName "SomeTestCase.test"]
    [val timeStamp [get-time | format-time -format "YYYMMdd_hhmmss"]] {

  // some test steps

  copy-file
    -source [substitute-variables "${workspace_loc}/projectName/target/file_to_copy.log]
    -destination "/tmp/testresults"
    -name [concat $timeStamp "_" $testName ".log"]
}


However, this workaround is very prone to errors, for example when a test gets renamed.

Is there a way to get the name of a testcase directly (i.e. by variabel substitution)?

Thanks in advice,
Christian

[Updated on: Wed, 11 May 2016 13:50]

Report message to a moderator

Re: Get the name of a testcase by ECL command (i.e. by variable substitution) [message #1731956 is a reply to message #1722058] Wed, 11 May 2016 09:36 Go to previous message
Michel Wojdaszka is currently offline Michel WojdaszkaFriend
Messages: 4
Registered: June 2015
Junior Member
Hi,

I have the same issue,
I would like to log in a file the name of the testcase using a RCPTT variable.
Is there someone to help ?

Thanks.
Michel W.
Previous Topic:Aut-Arg from pom.xml wrongly passed
Next Topic:verification of partial text
Goto Forum:
  


Current Time: Thu Apr 25 05:37:46 GMT 2024

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

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

Back to the top