Unexpected exception: There are multiple test suite files

Ranorex Studio, Spy, Recorder, and Driver.
palbaret
Posts: 26
Joined: Wed Jun 27, 2012 4:21 pm

Unexpected exception: There are multiple test suite files

Post by palbaret » Wed Jun 27, 2012 5:18 pm

Hi everyone,

I have an issue when executing a Ranorex solution.

When I Compile it, I sometime obtain the following warning:

Code: Select all

Impossible de lire le fichier d'état "obj\x86\Debug\ResolveAssemblyReference.cache". Le processus ne peut pas accéder au fichier '...\obj\x86\Debug\ResolveAssemblyReference.cache', car il est en cours d'utilisation par un autre processus. (MSB3088)
As it is a warning, I try to execute my testcase but the execution failed with the following error message:

Code: Select all

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 Ranorex.Core.Testing.TestSuiteRunner.Run(Type containerType, String cmdLineArgs)
My Solution contains 8 projects with the following dependencies
Project A has no dependency
Project B depends of Project A
Project C depends of Project A
Project D depends of Project A
Project E depends of Project A and B
Project F depends of Project A and B
Project G depends of Project A and B and E
Project F depends of Project A, B , C, D, E, F, G

Do you think, my issue may be linked to the project references?

I saw a post quiet similar http://www.ranorex.com/forum/creating-r ... t2799.html but I don't know if this issue is resolved

palbaret
Posts: 26
Joined: Wed Jun 27, 2012 4:21 pm

Re: Unexpected exception: There are multiple test suite files

Post by palbaret » Wed Jun 27, 2012 5:54 pm

I have solved the "ResolveAssemblyReference.cache" issue by adding some references in other project such as:
Project A has no dependency
Project B depends of Project A
Project C depends of Project A and B
Project D depends of Project A , B and C
Project E depends of Project A , B , C, D
Project F depends of Project A , B , C D E
Project G depends of Project A, B, C, D, E, F
Project F depends of Project A, B , C, D, E, F, G

But I don't understand theissue

Code: Select all

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)
My File rxtst seems to have the right syntax.

in the bin/debug folder for Project C, I have the PrajectA and ProjectB rxtst files.
If I delete them manually, i'm able to execute my tests but if there is more than 1 rxtst file I have this issue.

Is there a parameter to set somewhere in order to avoid that?

palbaret
Posts: 26
Joined: Wed Jun 27, 2012 4:21 pm

Re: Unexpected exception: There are multiple test suite files

Post by palbaret » Thu Jun 28, 2012 6:10 am

I solved this issue by checking the assemblyNAme of my project with the testsuite file name.

My test suite file and the assembly name of the project was different.
to know the Assembly name select your Project then Properties. in this page you see the AssemblyName.
Then I modified it with the rxtst file name

The issue disappears.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Unexpected exception: There are multiple test suite files

Post by Support Team » Thu Jun 28, 2012 3:39 pm

Hello,

It is great to hear that you solved the problem.
Thank you for the explanation, it could help others.

Regards,
Bernhard
Ranorex Support Team