Can anyone help me after execution on test manager any test set how we send the pdf results file after completing the execution directly to our client through mail , please help me

For ex :- Please help me on whole project how we download the Test set results file then pick a file from a location and then send a mail to our client please help me

Hello @SAURAV_GIRI try this approach
Download or export Test Results as PDF and then pick the latest PDF from folder using this in AssignpdfFiles = Directory.GetFiles("C:\YourFolderPath", "*.pdf") then sort by creation time using this in Assign
latestFile = pdfFiles.OrderByDescending(Function(f) New FileInfo(f).CreationTime).First() then

Use send Outlook Mail Message and in properties in To "clientemailid.com" then in subject "Automated Test Execution Results" then in body "Hi Team," + Environment.NewLine + Environment.NewLine + "Please find attached the latest test execution report." and in attachments {latestFile}

Cheers

@SAURAV_GIRI

First make sure you Test Manager is Enabled.

Then Follow below steps to download Test set Result

Orchestrator–>Test Manager–>Execution–>choose your test set Then you download where ever you want at any location..

Now take SMTP OR SEND MAIL Activity to send mail via Bot. Or send manually

for latest :
filepath= Directory.GetFiles("C:\Reports", “*.csv”).OrderByDescending(Function(f) New FileInfo(f).CreationTime).First()

for mail:

  • To = Client’s email (string)
  • Subject = "Test Set Results - " + Now.ToString("dd-MMM-yyyy")
  • Body = "Hi Team, Please find attached the latest Test Set Results."
  • Attachments = filePath

Still stuck then share error screeshot

Regards,
Rajesh Rane

Thanks Bhavesh , I am trying and let you know , i have a another thing like how we download the results file like can we set a particular code for after 1 hr running from our main test set right I think

You can create a separate xaml if you want to download the file after 1 hr of your main execution and put a trigger as per your need then you can use Http request with your Orchestrator APi to download the result file.

Cheers

@SAURAV_GIRI

Or hestrator apis would be your way

Apart from that there is a marketplace components for creatinf a report for your tests you can readily use it as well

Cheers