Execute Test Case of another Solution/Project from a different Test Case

Class library usage, coding and language questions.
puniar
Posts: 26
Joined: Thu Jan 24, 2019 12:51 pm

Execute Test Case of another Solution/Project from a different Test Case

Post by puniar » Thu Jul 11, 2019 11:26 am

Hi,

I am looking at a possible UserCode which will help me to execute a Test Case which executes set of steps and the usercode which will call the TestSuite of another Project/Solution and execute a set of test cases. (Either Single TestCase or Based on RunConfiguration).
Ex:
1. TestProj1
TestProj1.rxtst

2. TestProj2
TestProj2.rxtst


In this Solution I want to execute a set of TestCases of TestProj2.rxtst (Put up in a SmartFolder or as a RunConfiguration) while executing TestCases of TestProj1.rxtst

Firstly, whether "TestReport.BeginTestSuite" is the right approach to it?
Secondly, I looked at the API of "TestReport.BeginTestSuite", But couldn't proceed further where i could pass the TestCase or the run configuration to the execution.
Regards,
Punith

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Execute Test Case of another Solution/Project from a different Test Case

Post by odklizec » Thu Jul 11, 2019 11:55 am

Hi,

As far as I know, Ranorex currently does not support running test cases/smart folders from code. The only way could be running an already precompiled test from command line, where you can specify test case/smart folder you want to run. For more details about running tests from command line, see Ranorex user guide:
https://www.ranorex.com/help/latest/ran ... execution/
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration