How to start or invoke a test from module?

Best practices, code snippets for common functionality, examples, and guidelines.
kshekharkumar
Posts: 24
Joined: Thu Feb 06, 2014 10:57 am

How to start or invoke a test from module?

Post by kshekharkumar » Fri Sep 01, 2017 9:43 pm

Hi,

I was wondering if there is any way to invoke test(s) in TestSuite (can be current or any other test suite) from a code module.

Say a TestSuite T1 has tests TC1 TC2...

I have module M in a test in TestSuite T2. So I want to invoke TC1 and TC2..so on from module M.

Is this possible in Ranorex?
Is it alright to call tests in this way?

Please advise.
-Shekhar

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

Re: How to start or invoke a test from module?

Post by odklizec » Mon Sep 04, 2017 12:50 pm

Hi,

I don't think it's possible to start a test case from code. It's only possible to start recording/code module.

Anyway, why do you need to start the test case from test suite itself? I would suggest to configure a proper continuous integration system (like Jenkins). I just don't think it's a good idea to invoke a test case from code.
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