1. Home
  2. OpKey Help
  3. 4. Working with Test Cases
  4. 4.4 Creating Pre & Post Execution Report

4.4 Creating Pre & Post Execution Report

Overview

OpKey has now been added with an all new advanced feature, Pre & Post Test Execution Report. This feature allows you to export Pre as well as Post execution report of the Test Case and Suite. You can upload your sample report(s) template of desired format (Word form) to the selected project from the Upload Templates tab in Reports under the Project Management of OpKey Admin. Later, you can update, export and delete the uploaded report as required. You can download Sample Template for your reference by clicking on the Download sample template button. Pre execution report feature allows you to generate a report of your test without doing the actual test execution of the flow whereas you can export Post-Execution report after completing test execution.

Need of Pre & Post Execution Report?

Execution Reports play an important role in the validation of test execution and its analysis. Now, OpKey is implemented with such advanced feature known as Pre & Post Execution Report (Pre & Post Validation Report). OpKey users were looking for such reporting feature. This reporting feature helps you to create Pre & Post execution report of your own sample uploaded in word format. Here, you can create your own format so that you can customize your format and add desired fields that you need.

Getting started with the Pre & Post Execution Report

Now, OpKey allows you to generate Pre as well as Post execution report for the Test Case and Suite. You don’t need to execute the Test Case or Suite in order to generate the Pre-Execution (Validation) Report.

Before creating Pre or Post Execution report, make sure that you have uploaded sample report in OpKey from Reports (Beta) tab under Project Management in OpKey Admin Panel.

Uploading Sample Reports

  • Login to OpKey Web and switch to the OpKey Admin Panel.

  • Click on Upload Template icon to upload a new report template.
  • Select template and click on Open. Only a single template can be uploaded in one go.

  • Here, two template samples have been uploaded successfully. You can download a sample Validation report by clicking on the Download sample template icon.
  • You can update, export and delete uploaded template, as required.

  • Next tab, System Fields contains a list of the unique fields that can be added in the sample report to be uploaded which results filling of respective test data in the mapped fields in the Pre and Post-execution reports.

Note: System Fields (E.g. Test Script ID, Test Script Name etc.) in which test data will be filled in exported report, must be mapped under the Test Procedures table in the uploaded sample template. Go through the System Fields table for details about those fields, as showing above…

  • You can add your custom field tags from the Custom Fields tab in the selected project. Once you saved the newly added a new tag in Tag Name field, Field Name gets automatically added as per the set standard. While exporting Pre or Post-execution report, you can add Custom Field(s) and get added respective test data in the exported report.

  • Click on Add Tags icon to add new tag.

Creating Pre-Execution Report

  • Let us generate Pre execution report of a Test Case.
  • Open your Test Case, click on Run Now and then select Pre-Report option.

  • Fill required fields and click Next. Make sure that your OpKey Agent is online.
  • You can choose Step Hierarchy (One Level or Two Level).

Note: Step Hierarchy is the order level of Parent and child artifacts. If you choose One Level then report will contain only one level (Parents) whereas if you select two level then your report will contain Parent as well as child artifacts also.

  • From here, you can add Session Tags (Key & Value).
  • Click Finish to start creating Pre Execution Report.

  • Navigate to the Pre-Reports tab under dockable panel to view the status of report being created.

  • Pre-Execution Report has now been generated and you can download and view it.

  • Click on Download Report icon and then open it.
  • You can have a look at the Pre-Execution/Validation Report created successfully.

Creating Post-Execution Report

  • Let us generate Pre execution report of a Test Case.
  • Open your Test Case, click on the Execute under the Run Now button.

  • Fill all required fields of Local Execution Wizard.
  • Check Show Advanced Settings checkbox and click Next.

  • From here, you can apply Plugin Settings. Click Next to proceed.

  • Check Post Execution Report checkbox and click Next to proceed.

  • Post Report Settings (Beta) page which allows you to select Template, enter Report name, select Snapshot, Steps Hierarchy, Report Logo and then click on Next

  • From here, you can add Session Tags. Click Next to proceed.

  • From this step, you can choose a Global Variable and apply it.

  • Once the test execution gets completed successfully, click on the Export Report, select Post Execution Report and export it.

  • Now, here you can view your exported Post Execution Report in Word format.

Thus, we have successfully created Pre as well as Post Execution Report.
Was this article helpful to you? Yes No