Page 1 of 1

How do I call a test case from usercode?

Posted: Mon Sep 10, 2012 3:52 pm
by orbistest
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

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

Posted: Mon Sep 10, 2012 4:48 pm
by orbistest
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.