web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

RSAT test run from Azure Devops Build Pipeline: Failed Tests parsing error

(0) ShareShare
ReportReport
Posted on by 30

Hi Team,

I configured a build pipeline in Azure devops to run the RSAT test cases. I followed the below link.

https://community.dynamics.com/ax/b/axinthefield/posts/running-rsat-within-a-devops-pipeline

Script is running correctly. While parsing the values back to pipeline, it is not parsing the failed count and hence pipeline always pass even there is failures.

pastedimage1602047578127v1.png

2020-10-07T03:47:33.0600497Z Playback results: Tests: 3 Passed: 0 Failed: 3 Not Executed: 0
2020-10-07T03:49:13.4962484Z VERBOSE: 3:49:13 AM: -------RSAT Console App output END--------
2020-10-07T03:49:13.4973444Z 3:49:13 AM: Parsing the results for test suite ProjectBudgetRegressionRSAT
2020-10-07T03:49:13.5623218Z 3:49:13 AM: Total tests: 3
2020-10-07T03:49:13.5631577Z 3:49:13 AM: Passed tests: 0
2020-10-07T03:49:13.5651465Z 3:49:13 AM: Failed tests: 
2020-10-07T03:49:13.5701594Z 3:49:13 AM: Test suite execution complete for test suite ProjectBudgetRegressionRSAT
2020-10-07T03:49:13.5709204Z 3:49:13 AM: Removing the RSAT execution log folder C:\windows\TEMP\RSATBuildAutomationLogs
2020-10-07T03:49:13.5754530Z 3:49:13 AM: RSAT Test execution complete.
2020-10-07T03:49:13.5784226Z 
2020-10-07T03:49:13.5785322Z 
2020-10-07T03:49:13.6634728Z ##[section]Finishing: Run RSAT test suite

I used the same script available in the above link.

Is there any additional settings or configurations to be done for this. Please assist.

Thanks,
Siva.S
I have the same question (0)
  • Verified answer
    Fangyuan Hou Profile Picture
    on at

    Hi SivaKumarS,

    You may ask the author of the blog to have a check the code.

    pastedimage1602494644824v1.png

    What I see from the poweshell code, you can have a try add $notExecutedMarker to see if this works.

    $notExecutedMarker = 'Not Executed:'
    
    $failedTests = Get-Value -source $lastine -start $failedMarker -end $notExecutedMarker

  • SivakumarS Profile Picture
    30 on at

    Thanks Fangyuan. It worked.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans