Page 1 of 1
automatic test without gui
Posted: Mon Apr 07, 2008 10:46 am
by melloul
hi
can we execute automatic test with ranorex components without seeing GUI?
output data will be checked during automatic test.
Posted: Mon Apr 07, 2008 1:19 pm
by Support Team
What do you mean by "without seeing GUI" ?
The GUI of the application you want to test?
Michael
Ranorex Support Team
test withot launching GUI
Posted: Mon Apr 07, 2008 3:53 pm
by melloul
I mean i want to launch and test the GUI without seeing it. Is it possible? for example if i want to test a button a don't have to see the button graphicaly but i have just to check the instance button without launching the button.
I hope i am clear.
Marc.
Posted: Tue Apr 08, 2008 11:09 am
by Support Team
Marc,
It depends largely on the application you want to automate. There are several different approaches, but you might try the following:
1) Hiding the window and hoping that the application is still active:
- Use elements (form.Element) for working with controls.
- Use form.Hide() to hide the window.
- for clicking a button, you can do buttonElement.DoDefaultAction()
- this is implementation-dependent an can produce very weird results
2) Running the test inside a Virtual Server or VMWare guest OS
- This should run without any problems, use it if you dont want to have
a dedicated machine with a desktop to run your stuff on
3) Use a virtual desktop tool to run the application on another desktop
Note: Disconnected terminal- or remote desktop sessions usually don't work
Michael
Ranorex Support Team