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 reports 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 the Post-Execution report after completing the 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.
- Go to Project Management. Click on Report Management.

- 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.

Critical Parameters
This feature allows the user to have a new Excel Execution Report which will be in Excel format, consisting of the parameters matching with the session of Function Libraries along with the name and value of both Input parameters and Output parameters. This report will have a description, status, and time of the test case as this will be implemented only for the Test Case level.
The Admin Panel now has a separate tab named “Critical Parameter”.
Go to - Admin Panel from the Settings tab.
- Go to Project Management. Click on Report Management.
- On a new page, towards the right-hand corner is the tab of the Critical Parameter.
You’ll have to download the XML file on the Project Level. The user will choose the parameters which they consider Critical to be presented in the Report. In the XML File, the user will name the Input and Output Parameters which will be uploaded to the Critical Parameter tab.
Upon uploading the data again, the existing data will be removed from the tab thereby replacing and updating with the new data. The Summary dashboard Report will get downloaded for any used Function Libraries from the session, whose parameters match the parameters of the XML data. The specified parameters will be presented as a report on downloading. The report will not be downloaded if any parameters do not match.
The downloaded report will be in Excel File as shown above.
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 Generate Documents 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.
- A new window opens up
- From here, you can add Session Tags (Key & Value).
- Click Finish to start creating Pre Execution Report.

Type image caption here (optional)
- Navigate to the Test Case Document tab under Details section to download the generated document.

- Click on Download Report icon and then open it.
- You can have a look at the Pre-Execution 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 the Show Advanced Settings checkbox and click Next.

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

- Click Next to proceed.

- 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.