Remote agent: Sequence contains no matching elements

Best practices, code snippets for common functionality, examples, and guidelines.
HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

Remote agent: Sequence contains no matching elements

Post by HansSchl » Wed Jan 20, 2021 1:54 pm

Hi,

I run several test suites under Ranorex agent. All works well, except one suite which doesn't even start- The zipped log contains just one step with the message "Sequence contains no matching element " and this stack trace:

Code: Select all

at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
at Ranorex.Integrations.TestRail.Service.ReportingServiceBuilder.CreateNew(RxTestSuite rxSuite, IEnumerable`1 selectedCases, String runName)
at Ranorex.Core.Testing.TestSuiteRunner.HandleReportingService(RunParams runParams, TestSuite testSuite)
at Ranorex.Core.Testing.TestSuiteRunner.RunInternal(Type containerType, String[] testSuiteXmls, RunParams[] rps)
The output of the test execution is this:

Code: Select all

Searching Agent ...
--------------------------------------------------------------------------------
| P A C K I N G   T E S T   S O L U T I O N                                    |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
| E X E C U T I N G   J O B                                                    |
--------------------------------------------------------------------------------
Job issued on http://10.1.4.172:8081/api/
Job arguments: Virtual_Entries.exe /optimizations:"ReuseDirectoryForExecution, DetectChangesOnUpload" /pid:8796 /testrail /trpass:Pass0815 /trrunname:"DBMRanorexTests.Virtual_Entries@VM-T-32-RANOREX: DBM 5.6.8118.0 on 2021-01-20 12:38" /truser:[email protected] /trvideo /ts:Virtual_Entries.rxtst /zr
Cleanup directory...
Extracting files from 'http://10.1.4.172:8081/api/files/9cea317e9a2a3791f3ad92d2b473b57d.zip' to local execution directory C:\Users\qa\AppData\Local\Temp\Ranorex\9cea317e9a2a3791f3ad92d2b473b57d\.
Reuse files.
Validating Ranorex runtime...
Ranorex runtime validated. [9.3.1.0]
Searching for binary test executable in 'C:\Users\qa\AppData\Local\Temp\Ranorex\9cea317e9a2a3791f3ad92d2b473b57d\'.
Executing Virtual_Entries.exe /optimizations:"ReuseDirectoryForExecution, DetectChangesOnUpload" /pid:8796 /testrail /trpass:Pass0815 /trrunname:"DBMRanorexTests.Virtual_Entries@VM-T-32-RANOREX: DBM 5.6.8118.0 on 2021-01-20 12:38" /truser:[email protected] /trvideo /ts:Virtual_Entries.rxtst /zr
Sequence contains no matching element
Execution finished with result Error
Publishing test results
Publishing C:\Users\qa\AppData\Local\Temp\Ranorex\9cea317e9a2a3791f3ad92d2b473b57d\TestSuite_20210120_131546.rxzlog to http://10.1.4.172:8081/api/files/
Test results published
--------------------------------------------------------------------------------
| D O W N L O A D   R E S U L T S                                              |
--------------------------------------------------------------------------------
Download TestSuite_20210120_131546.rxzlog
31%
63%
95%
100%
--------------------------------------------------------------------------------
| D O N E                                                                      |
--------------------------------------------------------------------------------
Execute test suite
Test execution failed
Report: E:\DBRanorexTests_Scripts\work\Test.bin\TestSuite_20210120_131546.rxzlog
Job completed: Error
An interesting side aspect is that the log file name starts with "TestSuite". For all other test suites, it starts with the name of the suite.

The test runs well when executed outside the agent. Any ideas? This is Ranorex 9.3.1 running under Win10 64bit.

Thank you
Hans

HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

Re: Remote agent: Sequence contains no matching elements

Post by HansSchl » Fri Jan 22, 2021 8:18 am

I found the solution: The specific test case was not connected to TestRail. After running the TestRail wizard, all was fine :-)

fbacker
Posts: 1
Joined: Sat Jan 23, 2021 5:15 pm
Contact:

Re: Remote agent: Sequence contains no matching elements

Post by fbacker » Sat Jan 23, 2021 5:23 pm

HansSchl wrote:
Fri Jan 22, 2021 8:18 am
I found the solution: The specific test case was not connected to TestRail. After running the TestRail wizard, all was fine :-)
Wonderful