Skip to content
boakley edited this page Dec 31, 2014 · 4 revisions

The Testcase class represents a robotframework testcase. An instance of this object is what is passed to instances of TestRule. It has the following attributes:

  • linenumber contains the line number in the suite or resource file where this testcase begins
  • name contains the name of the testcase
  • parent contains a reference to the parent (suite or resource file) that has this testcase
  • path is an absolute path for the file that contains this testcase
  • rows is a list of Rows in the table. A row is built from one line of text in the source file, and is parsed to be a list of strings.
  • settings is a list of Statements for the settings in a testcase.
  • statements is a list of all Statements in the testcase. In effect, this is the combination of steps and settings
  • steps is a list of Statements in the testcase, excluding settings.
  • tags is a list of tags defined in the test. It does not include tags defined at the suite level, such as default tags and forced tags.
Clone this wiki locally