I need to build a tool for Automatic GUI Validation


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers I need to build a tool for Automatic GUI Validation
# 1  
Old 08-30-2014
I need to build a tool for Automatic GUI Validation

Hi Friends,

So we have an internal link in my project. We generally login into it with our ids , then enter some generic values to check whether the functionality is working fine. If it is fine, the webpage delivers a successful preview or else throws error.

What i want to do is write a script( it can't be unix based i guess) which will automate the below tasks using some sort of webpage parsing technique?

(i) Open the webpage
(ii) Input the uname and password(can be hardcoded) by determining the appropriate textboxes in the webpage
(iii) Wait for sometime for Generic value input button to be displayed
(iv) Enter generic value by determing the textbox
(v) Wait for the webpage to display result and mail the result to inbox

Is it possible to do something like this?
# 2  
Old 08-30-2014
Hi.

I have not used this, but I ran across it while searching for strings like expect for GUI:
Quote:
xautomation
Control X from the command line for scripts, and do "visual scraping" to find things on the screen. The conrol interface allows mouse movement, clicking, button up/down, key up/down, etc, and uses the XTest extension so you don't have the annoying problems that xse has when apps ignore sent events. The visgrep program find images inside of images and reports the coordinates, allowing progams to find buttons, etc, on the screen to click on.
-- hoopajoo.net | Projects

which was, in turn, linked from http://wiki.tcl.tk/1691

This seems far lower than you appear to be looking for, however.

There are some testing tools specifically for web pages at Web testing - Wikipedia, the free encyclopedia and List of web testing tools - Wikipedia, the free encyclopedia

Best wishes ... cheers, drl

Last edited by drl; 08-30-2014 at 11:26 AM..
# 3  
Old 08-30-2014
Hi,

As drl said, try a web testing tool.

Selenium might be able to help.
# 4  
Old 09-01-2014
You can perhaps do all that with one of the full-blown web-testing tools that were already mentioned. But for the realtively simple task you describe a short script using cURL or wget will probably suffice too.

Quote:
Originally Posted by srkmish
What i want to do is write a script( it can't be unix based i guess) which will automate the below tasks using some sort of webpage parsing technique?
Why couldn't it be unix-based? From all the OSes i know (z/OS, Unix, DOS/Windows, CP/M, VMS, Netware) Unix (and arguably z/OS) have the most versatile script languages there are. IMHO there is ksh followed closely by REXX, then nothing for a long time, then all the others.

Quote:
Originally Posted by srkmish
(i) Open the webpage
(ii) Input the uname and password(can be hardcoded) by determining the appropriate textboxes in the webpage
(iii) Wait for sometime for Generic value input button to be displayed
(iv) Enter generic value by determing the textbox
(v) Wait for the webpage to display result and mail the result to inbox
The only thing unclear IMHO is: depending on the web server requesting the POST or the GET method you will have to write different code, but i suppose you can figure out what your own web server wants yourself.

Install either cURL or wget (both are open source) and read the respective documentation. I am sure you can find lots of example code on the net for both of them.

I hope this helps.

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

RHEL GUI Build process.

Hi Folks, I've recently upgraded (RHEL 6.5 to 7.5) a couple of servers and have noticed a peculiarity during the GUI build of the boxes. This can be best explained as follows; There were four Oracle ASM disks on each of these servers, these were selected in the GUI for reformat as XFS file... (2 Replies)
Discussion started by: gull04
2 Replies

2. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

3. UNIX for Dummies Questions & Answers

Can we build a tool for Windows to retrieve data from UNIX servers (putty console)

Hi Friends, Is it possible to build a windows tool ( a java applet maybe? ) which can retrieve data and display after performing certain commands on unix servers ( simple grep / script output) after logging into putty console. I am on a company server so please bear that in mind. I might have... (23 Replies)
Discussion started by: srkmish
23 Replies

4. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

5. UNIX for Dummies Questions & Answers

Mysql GUI tool?

Hi, I am looking for GUI based tool for Mysql. I found few but I need to pay for them to get the license. Since I work for mom & pop company, they don't have any money. :-( I was wondering if you guys know any good GNU tool out there? I get the data on the email, I was wondering if I... (3 Replies)
Discussion started by: samnyc
3 Replies

6. Shell Programming and Scripting

Giving automatic multiple Input to a tool from shell script

Hi, Please help me,its urgent. I have a tool that i want to run from a shell script. When we run the tool it will ask the user choice to add or delete. When user enter the choice it will then ask how many units he want to delete or add and will add or delete accordingly. Now I want to... (1 Reply)
Discussion started by: saket18@ymail.c
1 Replies

7. Programming

Migrating Java Gui tool from CLI to web

Hi Experts, I am practically with nil knowledge of java. I have this new requirement i would like to explore. there is this java base GUI application which loads GUI and lets user select a file. GUI is initiaited by following CLI java -Xms1024m -Xmx1024m -cp... (1 Reply)
Discussion started by: mtomar
1 Replies

8. Shell Programming and Scripting

script for GUI tool

Hi Legends. Thanks for all your support till now, Now my requirement is planned to create a GUI backup tool for both "Source Code Backup" and "Mysql Backup" is it possible to write own code for this , or else any other opensource Backup tool is available which option is better? my wish is Write... (0 Replies)
Discussion started by: anishkumarv
0 Replies

9. UNIX for Dummies Questions & Answers

If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip

Hello all, 1) I want to have a GUI application that will call Unix shell scripts, 2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix. That is for example. If a is windows gui (... (1 Reply)
Discussion started by: hchivukula
1 Replies
Login or Register to Ask a Question