Ask a Question

Calling Test Routines via COM from Java and/or Ruby

bensullivan
Occasional Contributor

Calling Test Routines via COM from Java and/or Ruby

Hi



I'm interested in driving our test scripts from Java/JRuby/Ruby via COM.



Reading the TestComplete doco it seems I need to call RunRoutineX.



Does anyone have any experience calling routines from a JVM via COM?  It looks feasible in theory from what I've read.



I just wanted to get any feedback from the community before I get my hands dirty with the code 🙂



Many thanks



Ben
1 REPLY 1
AlexeyK
SmartBear Alumni (Retired)

Ben,


I don't know if there is a bridge between JVM and COM. If you know about the bridge between JVM and COM, you have a solution. If not, the task seems to be unfeasible. I've heard about this project, but it seems it is frozen now, so...

http://danadler.com/jacob/


One possible solution, however, is to create a DLL that can access TestComplete via COM and perform the actions you need. The DLL should export functions that you can call from your Java/Ruby code to control the test execution, e.g. call one function to run tests and another to get results. However, the resulting solution seems to be not very flexible: you will be limited with these functions and with simple data types, as I doubt that you will be able to use TestComplete COM objects in Java code.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community.
Any views or opinions expressed do not necessarily represent those of SmartBear Software.

-----
cancel
Showing results for 
Search instead for 
Did you mean: