Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

Robot Framework result files can be of multiple hierarchy structures. The structure of these files depends upon the libraries that are used to generate the automation results. Upload through QMetry Automation API supports the following structure as mentioned in the table. The table explains the test assets creation for Test Suites, Test Cases and Test Steps in QMetry based on the structure of the Robot file.

Robot File Tag - Structure & Hierarchy

Tag that is created as QMetry Test Suite

Tag that is created as QMetry Test Case

Tag that is created as QMetry Test Case Step

suite>test case>steps

<suite> tag will be created as Test Suite.

<test> tag under the <suite> tag will be considered as Test Case.

<kw> tag under the<test> tag will be considered as Test Case Step.

suite>(sub/inner) suite>test case>steps

<(sub/inner) suite> tag under the <suite> tag will be considered as single Test Suite.

Multiple test suites will be created each (sub/inner) suites.

<test> tag under the <(sub/inner) suite> tag will be considered as Test Case.

<kw> tag under the <test> tag will be considered as Test Case Step.

suite>test case>steps>sub steps

<suite> tag will be considered as Test Suite

<test> tag under the <suite> tag will be considered as Test Case.

<kw> tag under the <test> tag will be considered as Test Case Step.

<kw> tag under the <kw> tag (i.e. sub steps) will be ignored and will not be imported into QMetry.

Supported file types : XML

...

View file
namerobot_Hierarchy3.xml

...

→ “Skip” status in the automation result file will be applied as "Not Applicable" instead of "Not Run" for automation test executions upload into QMetry.

Reuse Manual Test Cases

No.

Methods

Description

1.

Summary

  • If Test Case Summary in QMetry matches with Test Case Tag as per the hierarchy described above, the same test case in QMetry will be updated.

  • If the Test Case Summary matches, but Step Description in QMetry does not match with Test Step Tag as per the hierarchy described above, then new version of the same test case will be created.


Reuse Automation Test Cases

...

  • The attachment file should be included in a Zip file.

  • The relative file path in the zip should be mentioned in the XML.

Note: Make sure you provide the relative path/folder location of the attachment as per the attached zip file for attachments so that the file can be captured directly from it.

...



B. Embedded File

  • The attachment file should be encoded as string in the XML file.

  • The attachment file should be base64 encoded in embedding tag of the result file.

...