Ticket #119 (accepted enhancement)

Opened 2 years ago

Last modified 2 years ago

Automatic parameter ${testcase} to get name of currently running test script

Reported by: guest Owned by: rbri
Priority: major Milestone: Version 1.8.0
Component: Core Version: 1.7.0
Keywords: Cc:

Description

In a current Wetator test scenario we are not able to tear down and cannot delete test data after test execution from the tested application. That means after test execution there will be some left overs in the application.

To be able to leave a trace, where these leftovers belong to, we would like to add a comment to the data with a reference to the actual Wetator test.

For this purpose it would be great to have an automatically available parameter ${testcase} which would represent the name of the currently running test case e.g. wetator_testform.wett.

Change History

comment:1 Changed 2 years ago by tobwoerk

We decided to add three variables:

  • ${wetator.test-case} - the primarily executed file's name (without extension) - so wetator_testform for your example
  • ${wetator.test-file} - the file name of the file the variable access is executed from, so for example wetator_testform.wett (may also be a module's file name)
  • ${wetator.browser} - current browser during test execution in the same format as in the configuration file (e.g. FF52)

comment:2 Changed 2 years ago by rbri

In [2601]:

+ more vars (see #119)

comment:3 Changed 2 years ago by rbri

there are no minus inside our varnames so far the current impl uses
${wetator.testcase}
${wetator.testfile}
${wetator.browser}

comment:4 Changed 2 years ago by rbri

  • Status changed from new to accepted
Note: See TracTickets for help on using tickets.