LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2014, 02:17 AM   #1
Blentavi
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Automatization


Hello guys,
I'm a work as a tester and i test linux applications acctually one, so I'm thinking of automatization my work progress, I test one app and the test consists of checking the connection, inputing numbers into certain fields, and clicking few buttons.

I'm thinking of writing a bash script, you might help me with that, and wanted to ask you is it possible, and is it hard that much, basicly the script will be runned and preform actions on a aplication and give me a html report of the testing done.

Hope to hear your opinion of this.
 
Old 08-05-2014, 06:09 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
We need a lot more info; eg exactly what is the interface to this 'app' eg is it a web page?
Does it have a cli interface instead or as well?

As an example, to automate a browser type interface, see the Perl module http://search.cpan.org/~ether/WWW-Me...W/Mechanize.pm
 
Old 08-05-2014, 07:36 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I suspect that while you can do tons with BASH programming, given some of the things you've mentioned, I'd lean towards C programming first. I think you need to write a test harness which may pass information from one process to another in a comprehensive manner and to me that's more easily done within a programming language. And you can also run scripts from within an application if there are parts of it which you find which are more easily scripted.

As a QA tester, I think you need to be familiar with programming as well as scripting. Plus if you need to talk to certain instruments, then you'll need to be adaptable to deal with syntax for their commands, be they serial commands or bus instructions (thinking former HPIB - HP Interface Bus language; but there's probably way newer stuff)

To get more focused assistance, make some efforts. Start small, like automate one or two easy things, attack the low hanging fruits; by which I mean attack the easiest to do items first. When you have some content and happen to be stuck, or wish to ask questions about how to do things better/differently, then post your questions, showing what you've done and where you're stuck. Unfortunately unless something you ask is moderately simple, I think you'll find if anyone merely asks something attune to: "Can someone give me a script which automates network testing?" the result is that many will ask for more details, and also want to see your efforts up to that point. There are the possible situations where someone happened to have a script or program that is ideally suited to what someone asks for, and they may post it, they may not.

Some suggestions how to get started with BASH programming:
  1. blog entry on bash programming
  2. Bash Scripting Guide for Beginners
  3. Advanced Bash Scripting Guide
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MBR Recovery automatization with Boot-Floppy? Sören Schneider Linux - General 4 04-23-2006 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration