Automating Application Control


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Automating Application Control
# 1  
Old 12-06-2009
Automating Application Control

I am currently wanting to automate the testing of a piece of software which runs in UNIX. The software is fairly basic, it has a menu, returns command line messages while operating, etc. I need to test it loading many different files which are all well organized and then run various combinations of menu options.

Basically my question is what would be the best approach and language to implement this quickly and efficiently? I'd like to be able able to run the same test/script on all of the input files automatically. But even if I had to run a small script which inputs the files individually it would save me a lot of time.

Being able to log and make decisions based on output to the console is very important.

I'm sure the solution is pretty simple but I'm new to UNIX and Google didn't really provide anything too relevant. Any pointers and references that would help me solve this problem would be greatly appreciated. Smilie
# 2  
Old 12-07-2009
Here's how I would normally approach something like this:

Do one test manually, recording every keystroke exactly the way I enter it until I exit the application.

Then, I would save all of these keystrokes in a file.
Then redirect the contents of that file into the application.
See if that works.

Typically, you can do this with any UNIX application that reads from stdin.
For example, with vi, you can do this:

Code:
vi some_file_nm << EOF
iHello, world. I am now entering text in vi.
how about that? ^[:wq
EOF

# 3  
Old 12-07-2009
Thank you. That got me started on a lot of things.

However, a key component is to be able to act on different cases output to the console from the application. (i.e. if theres an error/crash or other interesting case, log it, then progress accordingly).

My ideal would be some sort of wrapper program which will let me load/design scripts for this and other apps and have the system run them, logging the atypical results among other data.

Of course the minimum viable would be individual scripts to be run 1 at a time. However due to the number/complexity of the files that need to be operated on this isn't a good solution.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Automating the FTP get

Hi , I want to pull files from ftp monthly once . The files in ftp has a something like 292_fileto_pull and next month it will be 293_fileto_pull for each month the number keeps increasing. i thought in my script if i can use date and increment the number by it mget *_292_fileto_pull i... (2 Replies)
Discussion started by: vikatakavi
2 Replies

2. Shell Programming and Scripting

Automating

Hi All, I have a shell script that is integrated with a fault management system. It periodically monitors the system and raises an alarm. This script has different functions and it accepts input from us on the console. Is there any way to invoke it using a shell script ? Please advise. ... (2 Replies)
Discussion started by: praviper
2 Replies

3. UNIX for Dummies Questions & Answers

Automating a process

Could any one tell me , how to start a thread here, i just searching for so long. sorry to post in irrelavent here ---------- Post updated at 08:19 AM ---------- Previous update was at 08:00 AM ---------- Hi, I got a requirement to automate the process. We have SLA files, there are... (1 Reply)
Discussion started by: afahmed
1 Replies

4. Shell Programming and Scripting

Automating The process

Hi Guru's, I am trying to write a scripts that will automate my image provisoining process. Scenario: I have Linux Image Hosted on cloud which needs to be provisoned before it can be used. Currently we log onto the image through the putty on windows and connect to linux instance. I... (3 Replies)
Discussion started by: taqvia
3 Replies

5. Shell Programming and Scripting

Automating slapconfig

I'm a New Media student working at a small media/tech company that's part of the New Media department at my school. I'm working on a MySQL/LDAP-based system for keeping track of users of our Mac file server. I'm trying to write a script that backs up our LDAP database using the slapconfig command... (0 Replies)
Discussion started by: ZevEisenberg
0 Replies

6. UNIX for Advanced & Expert Users

Automating Autosys

Can multiple Autosys jobs be changed with the same parameter at the same time? what scripting do I need? (0 Replies)
Discussion started by: LilyClaro
0 Replies

7. Shell Programming and Scripting

Automating sendmail

Hi there, I am trying to send emails from within a shell script, and I need help. Also I am trying to send attachments from within a shell script. I am using sendmail. Regards (3 Replies)
Discussion started by: JimJim
3 Replies

8. Shell Programming and Scripting

automating password ?

Hi all, I want to write a script which logs into a database (DB2). To do this i need to have a password. This will be done lots and lots of times, so i need to modify the script to automate the response to the password request. How do i this, because at present i do the following: db2 connect... (3 Replies)
Discussion started by: Liamo
3 Replies
Login or Register to Ask a Question