Help! Multiple Test Suite Files in Assembly directory error

Ranorex Spy, Recorder, and Studio.
puniar
Posts: 19
Joined: Thu Jan 24, 2019 12:51 pm

Help! Multiple Test Suite Files in Assembly directory error

Post by puniar » Wed Feb 03, 2021 12:32 pm

Hello,

I have a solution containing multiple projects and each of these projects contain multiple test suites.

I use the command to execute the test suites using the CLI in azure. There are many such test suites which are executing without any errors but there is one particular project and related test suites which fail with the following error code.


Unexpected exception occurred: Ranorex.RanorexException: There are multiple test suite files in the assembly directory. Please specify the test suite by using command line parameters or rename the test suite file to the current assembly name.
at Ranorex.Core.Testing.TestSuiteRunner.GetTestSuiteXml(Type containerType, String fileName)
at Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs, String testSuiteXml)
at Settings.Program.Main(String[] args)

Command:TestSuite.exe /ts:Testsuite.rxtst /junit /zr /zrf:Reports/ExportImportDex.rzlog

I have verified the Assembly name for the project and see no issues on it.
CurrentStructure.PNG
CurrentStructure.PNG (30.76 KiB) Viewed 57 times
Regards,
Punith

User avatar
Stub
Posts: 425
Joined: Fri Jul 15, 2016 1:35 pm

Re: Help! Multiple Test Suite Files in Assembly directory error

Post by Stub » Wed Feb 03, 2021 1:06 pm

Specify the full path and filename of the TestSuite file on the /ts parameter.