Solved

Programmatically controlling a unix application

Posted on 2002-07-26
7
234 Views
Last Modified: 2013-11-13
I have an application running on Solaris that has a very weak API. Some features are only available through it's user interface.

I need some examples of how one might go about programmatically controlling the application. I basically need to press some buttons and change text in edit boxes.

I've done this in Windows, but never unix. The application can use c/c++, java, perl, tcl, whatever (I'm familiar with all of these).
0
Comment
Question by:forloop
  • 4
  • 2
7 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 7181810
I can think of following solutions:

 1. purchase a software which can do this (sorry, don't have a produckt handy, but have a look at http://www.rational.com/)
 2. check if the application uses standard X resources
    That would be the most simplest way, 'cause you then can write a application resource file where all your values are filled in, and call the application which then should use these values (not shure if it works for events on buttons)
 3. write your own X-program which attaches to the application and fills in the values (X send), this requires that the application allowed the X send mechanism
 4. Tcl/Tk comes with a demo/rmt program which uses X send,
    unfortunately this demo can only talk to other Tcl/Tk applications, I'm not shure if it can be improved to talk to any X application

The most simple way is 1., I know that such products exist, at least for testing applications (stress test for example)
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7517520

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7519092









hmm, either my comment is valuable somehow, or it is not.
If it is not valuable the question should be deleted.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 54

Expert Comment

by:nico5038
ID: 7520379
As I think there might be value in it for some, I advised to store it as a PAQ.
When you're sure that "the answer" is between your remarks, the just post an additional comment.
I'm only making proposals and a moderator will take action on my proposal and your comment :-)

Thanks for your reaction !

Nic;o)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7521195
ask a moderator, please.
I vote for a PAQ, but not 0 points ('cause it's a valuable suggestion, somehow, IMHO).
I'm not gathering points, so you don't need to grade my comment. Just to be fair in compared to other PAQs.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7552511
Force-accepted.

Netminder
EE Admin
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7556630
THANKS.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question