How do I call a test case from usercode?

Class library usage, coding and language questions.
orbistest
Posts: 23
Joined: Mon Oct 17, 2011 5:31 pm

How do I call a test case from usercode?

Post by orbistest » Mon Sep 10, 2012 3:52 pm

This is a real beginners question, I'm sure, but I am not a .net programmer by career, I'm a tester.
I do know that usually you would create an instance of the object required and then call something like a "run" method but I am having a real job working out which objects to create and in what order.
A piece of code like

references abc.cde.efg

dim mycase as new ranorex.test.testcase("test case 4")
mycase.run

would be great.
I want to use usercode to detect the state of a window - easy, cone that - then depending on this state I want to run one of two other scripts, thus giving me flow control in my suite.

Any help appreciated.
orbistest

orbistest
Posts: 23
Joined: Mon Oct 17, 2011 5:31 pm

Re: How do I call a test case from usercode?

Post by orbistest » Mon Sep 10, 2012 4:48 pm

Aha - I think I missed a reply which was made to one of my other posts -
http://www.ranorex.com/forum/post15640.html#p15640

I will try this out. I am not really sure why it should not be possible to mix and match usercode and recordings but I will live with the consequences if it gives me optional execution like in "Test complete".

Thanks.