Website Automation
Recently i was talking to my friend of ITVidya, (Ajay Sanghani) that i was working on automation & testing of web apps. He insisted that i should write more blogs etc. for which i agreed. But i like to write my blogs in text files as & when i have time.
So there was this problem of copy paste everytime i would like to blog. So like all programmers even i like to automate the routine task & test it.
Then what i did was that i made an application that will blog for me, i mean it automates the process of logging into my account & filling all the details & creating my blog. Now this application can be extended to make a platform for testing web apps.
How & what i did
I created an application using ruby & automation framework firewatir. i've put in all the configuration files & even the blog files in yaml. now i can simply create a blog in a text editor using a particular format. then i pass this blog file to the application.
What happens next is when i run the application, it opens the browser in my case firefox, goes to the site www.itvidya.com, logs in with my credentials, creates a new blog & fills up all the details of the blog, saves it, logout & then closes the browser. Now there are many things that i can do, i can preview it, or my app can be extended for testing of the itvidya etc.
Next what i'm thinking is to extend this to other blogging sites. so this way i can write a single blog (text file) which will be uploaded to different sites.
In all its fun. even now i'm writing this blog in a test file which will be posted to itvidya using my application.
Arun Tomar
Solution Enterprises
web: http://www.solutionenterprises.co.in