Q7

Modify absolute paths in Metus tests using vars

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.23, 1.3.7
  • Fix Version/s: 1.2.24, 1.3.8
  • Component/s: None
  • Labels:
  • Test Mode:
    Manual

Description

Now metus tests use literal absolute paths for accessing data files.
We need to rewrite them by using variable parameter like root-path

But before that, we need one special ECL command QS-2950 to transfer that parameter from launch configuration option.

Issue Links

Activity

Hide
Ulyana Skorokhodova added a comment - 20/Sep/13 8:14 PM

1) Added a vm argument into .pom file and into AUT configuration in IDE:

<vmArg>-DTestDataPath=D:\Metus\testdaten</vmArg>

2) Added a global variable testDataPath in ECL Context (MU - Standarddatei):

global [val testDataPath [get-java-property "TestDataPath"]]

3) Replaced absolute paths in ~24 tests.

Example:

was:

set-dialog-result File "D:\\Metus\\testdaten\\Importfiles\\Ventilator_13_Formeln.met

now:

set-dialog-result File [format "%s\\%s" $testDataPath "Importfiles\\Ventilator_13_Formeln.met"]
Show
Ulyana Skorokhodova added a comment - 20/Sep/13 8:14 PM 1) Added a vm argument into .pom file and into AUT configuration in IDE: <vmArg>-DTestDataPath=D:\Metus\testdaten</vmArg> 2) Added a global variable testDataPath in ECL Context (MU - Standarddatei): global [val testDataPath [get-java-property "TestDataPath"]] 3) Replaced absolute paths in ~24 tests. Example: was:
set-dialog-result File "D:\\Metus\\testdaten\\Importfiles\\Ventilator_13_Formeln.met
now:
set-dialog-result File [format "%s\\%s" $testDataPath "Importfiles\\Ventilator_13_Formeln.met"]

People

Vote (0)
Watch (0)

Dates

  • Created:
    19/Sep/13 7:07 PM
    Updated:
    23/Sep/13 8:53 AM
    Resolved:
    20/Sep/13 8:14 PM