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