Skip to content

Two approaches from within your Worksoft SaaS Slack App to retrieve (pull) Test Run execution details

If a project within your Worksoft SaaS domain is integrated with Slack, you can receive (pull) the Test Run execution completion notifications (along with key details about the outcome of the test run) from within the slack channel(s) that are integrated with a specific project.  
                                                             
There are two approaches you can use to accomplish the same.

a) Use the Slash Command and feed in the test run id.

Steps to copy test run id:

Step 1: Login to Worksoft SaaS.
Step 2: Select a Project, where you will be navigated to the Test Runs screen.

  

Step 3: Click on the icon shown in the screenshot to copy the test run id.



/run <TestRunID>

    Please note: You must have space between the command name "run" and the <TestRunID>

b) Post the URL that points to the test execution results page of the test run that you are interested in

Steps to copy test run URL:

Step 1: Login to Worksoft SaaS.
Step 2: Select a Project, where you will be navigated to the Test Runs screen.

  

Step 3: Click on the "View Results" link, where you will be navigated to that test run's execution screen.
Step 4: On clicking on the URL icon, the page URL gets copied as shown below.



<URLOfTestExecutionResultsPageOfSpecificTestRunID>

You can use either or both approaches to accomplish the same end goal of retrieving the details about the status and outcome of test run execution. 
  • For using the Slash command from within the Worksoft SaaS Slack app, you must have copy-pasted the Test Run Id from the Worksoft SaaS application OR from an email notification you may have gotten from Worksoft SaaS or from one of the operational/analytical reports downloaded from Worksoft SaaS.
  • For using the URL you must have copied the URL from the test execution results page when you are in the context of the specific test run of interest OR from an email notification you may have gotten from Worksoft SaaS or from one of the operational/analytical reports downloaded from Worksoft SaaS.
The Result:   

Please note that you get the same exact response back irrespective of the approach you follow. You decide which approach is best for your situation.
        

As you can see from the screenshot above, the response includes more or less the same detail that is currently included in the (push) email notifications about the execution status and outcome of test runs, if you opted and configured for the same to get sent out at the test run level.

If there are any failures in the specific test run, please note that you will also get a screenshot of the first failed instruction in the notification pushed into your Slack channel(s).   

Auto Re-executions Information:

You can see the auto re-execution information of the tests both in the Email & Slack notification. The re-executions of the tests happen based on the auto-assignment of the Root Cause for Failure labels using Worksoft AI/ML. You can learn more about this feature by clicking here.

A sample Email and Slack notifications can be seen as shown below:

Email Notification:
img

Slack Notification:
img

Useful tip:

The screenshot below shows you how you can easily copy-paste the URL (hyperlink) of a test run from the email you would have gotten from Worksoft SaaS. Once you copy the URL, you can go into your Slack Channel and post it any number of times for you to retrieve the test run level execution detail into your Slack Channel. 



Accessing of the assets by using the direct URLs: This is another useful feature for you where you can copy the URLs of any asset (Screenshots/Videos/Log Files) and paste them in the respective channel of the project which is integrated with Slack App.

Feedback and Knowledge Base