Tag Archives: HTML

PHP-Selenium Framework for UI Automation

UI Automation is a must for testing any application to ensure that new added features dont break the old functionality..

I developed a PHP framework on top of PHPUnit framework for Selenium UI automation. The framework will help in automation by defining test parameters in xml files, capturing screenshots on any errors, generating HTML test report and emailing them after execution and also reading strings from XLIFF resource bundles for automating internationalized applications.

Here’s a quick comparison of QTP, Selenium and Openscript I had done before I chose Selenium. I hope this will be useful to you.

Feature Open script Selenium QTP
Browser support IE and firefox IE,Firefox,Safari,Chrome IE & Firefox
OS support Windows & Unix based Windows , Mac and UNIX based Windows only
Scripting language support Java only HTML, Java, C#, Perl, PHP, Python, Ruby VBscript only
Automatable Applications EBS/Forms applications, Fusion ADF applications and generic web apps. Any web based applications which do not use activeX/Java applets Any application (Generic web based/Java applets/ActiveX/Desktop app)
Data driven testing (Parameterization) Inbuilt support using Databanks(CSV files) and provides inbuilt support for iterating the runs through the databanks. But the data in CSV files must be managed outside Open script. No built-in support. Use the scripting  language to read through parameter files Very good Built in support using Datatables(XLS files) and also supports iterating runs.
Simulation method Simulates browser actions, hence browser can be run in background Simulates browser actions, hence browser can be run in background Simulates end user actions, hence the browser must be visible and running in foreground.
Validation/checkpoint support Text matching,Object matching, Server response matching, Database query match, Table match checkpoints supported with wildcard and regex based checks. Provides ‘verify’ and ‘assertion’ checkpoint for the accessors various properties of an identified HTML element These accessors have to made use of through the scripting language to create custom checkpoints. Hence text matching,object match, table matching and database can be implemented Standard Text, Text Area, Image, Xml, Database checkpoints available by default. Apart from these, Bitmap checkpoint is also supported, which is not supported by Openscript,selenium
Types of code views Tree view and code view present Tree view is only present if HTML scripting is used. Otherwise only code view is present. Keyword view and expert view(code view) are present.
ADF support Provides Native support to recognize ADF components Does not provide ADF support Does not provide ADF support
Screenshots and HTML capture Automatically captures screenshots and HTML during recording & playback Does not capture by default. The command captureEntirePageScreenshot() must be used wherever screenshot is required. Automatically captures screenshots and HTML during recording & playback
HTML report Automatically generates HTML reports for each step group Does not generate HTML report. But can generate XML,JSON log files which can be parsed and converted to HTML reports. Automatically generates HTML reports for each step
Object library/repository Provides inbuilt object library in the form of *.properties files. Also provides a tool to merge repositories. Does not provide in built object library. Provides object repository and tools to compare and merge repositories.
Execution of the test Can  be run from within the IDE or from command line and this feature can be used for DTE integration. Only HTML scripts can be run from IDE. All other type of scripts can only be run from command line. Can  be run from within the IDE of from command line
MBC character support Supports MBC characters in Databanks and object library Support of MBC characters will depend on the scripting language used Supports MBC characters in Datatables and object repository
License Oracle owned product. Free and open source license Not free. HP Proprietary product.

Incoming search terms:

Swishmax projects & Flash website for Incident 08 using Swish

My experiments with Swishmax

I entered the world of flash interactive websites when I first started using Swish. Even at version 1.0, the ease of use of Swish quickly captured my interest in flash designs. I also had maintained a website at http://openflash.be  where I used to publish the source code for my projects made on SWiSH.. But I never really wanted to pay for maintaining the domain name when it expired. So most of the source files are lost. Some of them were uploaded even on other sites. Check them out

http://www.swishzone.com/index.php?area=resources&tab=movies&do=page&action=detailed&link_id=2605

http://www.swishzone.com/index.php?area=resources&tab=movies&do=page&action=detailed&link_id=2700

http://www.swishzone.com/index.php?area=resources&tab=movies&do=page&action=detailed&link_id=2632

And here is a quick show reel of the work I have done using Swish and Swishmax.

Incident 2008 Flash website for NITK Surathkal

Incident 08 NITK - Flash website screenshot

Initially, I never had plans of making a flash website for Incident 08 (culfest of NITK Surathkal). But then, the convenor of the fest came to me asking me to create a flash website as he felt that the HTML website wasnt flashy enough for a cultural website. Also I had created a flash based UI for the sponsor’s CD which had the previous year’s videos which was pretty cool as per him. So he wanted me to extend it for the current website. Then, I started off, and built a full flash website using SWiSH  Max 2.0 which turned out pretty good. The menu was the most catchy part of the entire website. It was a series of circular buttons arranged in the shape of a sinusoidal curve and the curve would gradually animate to align on a new curve based on the cursor position. Also it had a video transition shown between page changes which was made using After effects and ‘Particular’ plugin. I will upload the flash website here, if I can find the files. An old version of the same site is here, but I am not able to find the latest version. Unfortunately, the hosting plan got expired and I never took backups :(

Incoming search terms:

About

Hey there, My Name is Kiran Kumar (so is the name of this site) and I am a 23 yr old web developer from Mangalore, India. This blog is a place for me to share my thoughts and my contributions to the open source community. Apart from that, this website is my face on the internet where I publish links to my work and a medium for you guys to reach me anytime. You have reached the about me page on my blog and I should say that this was one of the most difficult part of writing a blog, i.e, writing about thyself. So here it goes,

I am a Chemical engineer by degree, Oracle employee by the day and a freelance developer by the night

My interest in the web technologies started in late 2005 when I became a part of the web enthusiasts club at my college; NITK Surathkal. By then I had already decided that I would pursue chemical engineering as I had no clear cut idea on what specialisation to choose. But slowly my interests in web technologies started to captivate me and I started spending most of my time working on the web. In my college, I started becoming known for the websites I designed and the posters I created. In my free time I had learnt a lot of different technologies on my own. My first love was for SWiSH , an alternative to Macromedia Flash 5 at that time. I liked to create fancy text effects and make small flash movies using Swish. Slowly, I moved on to 3dsmax, to enter into the world of visual effects. But the hardware config of my desktop prevented me from getting too close to CGI. Simple 3d scenes took a lot of time to be rendered, and when the rendering time went to the magnitude of days coupled with the frequency of power cuts in India , it became an impossible feat to get anything out of it.

Then I found my new interest in PHP after one of my friends told me about it. And since then, I have been actively involved in PHP development. To me, the simplicity of the language combined with the power of the open source community always gave way to endless possibilities. Along with PHP came all its friends. Javascript, HTML, Flash, Photoshop, I loved them all !

I worked on a couple of different softwares/technologies and here is the list of things which I can recall right now :

  1. Rating: ★★★★★★★★★☆ PHP 5
  2. Rating: ★★★★★★★★☆☆ ExtJS framework
  3. Rating: ★★★★★★★★☆☆ Flash CS3 & Actionscript 3 -
  4. Rating: ★★★★★★★½☆☆ HTML & CSS :
  5. Rating: ★★★★★★★☆☆☆ Javascript
  6. Rating: ★★★★★★★☆☆☆ Joomla 1.5 component, plugin creation
  7. Rating: ★★★★★★½☆☆☆ Selenium & QTP UI automation
  8. Rating: ★★★★★★½☆☆☆ Titanium framework for iPhone & android app development
  9. Rating: ★★★★★★½☆☆☆ Photoshop
  10. Rating: ★★★★★★☆☆☆☆ VBscript & VB app design -
  11. Rating: ★★★★★☆☆☆☆☆ Google sketchup 3d modelling & rendering
  12. Rating: ★★★★☆☆☆☆☆☆ Facebook API & Twitter API
  13. Rating: ★★★★☆☆☆☆☆☆ Poser animation
  14. Rating: ★★★★☆☆☆☆☆☆ 3dsmax
  15. Rating: ★★★★☆☆☆☆☆☆ Matlab coding & GUI
  16. Rating: ★★★☆☆☆☆☆☆☆ Autocad (2d only)
  17. Rating: ★★☆☆☆☆☆☆☆☆ HP Quality center OTA API

I worked on a small content management system of my own which , in the final year of my college this helped me get a job in Oracle and be a part of Content Management (ECM) team in Oracle. At Oracle, I am a part of Middleware suite globalization team where I work with people from Beijing, Tokyo and San Francisco on Oracle’s acquired as well as in-house ERP applications. The toughest part of the job is learning to understand the accents used by different people.[Update: I now work as a mobile developer at an e-commerce startup flipkart.com]

Until recently, I was only involved in web based projects, but the day I can across Appecelerator’s Titanium framework, I said ‘this is definitely my cup of tea’.For the last 6 months, I have been busy  developing native applications for iPhone & Android using the Titanium framework and I absolutely love it.[Update: I have started hating it now. Its very difficult to manage titanium projects when they become big]

I am passionate about my work and I always love to learn new things. I hate limiting myself to a single domain and always push myself hard to explore new interests which can keep me occupied all the time. People may call it ‘lack of focus’ , hyper-wandering-mind or a Jackass of all trades ! But its just the way I am designed. There hasnt been a day where I dont get a tingly feeling about learning or doing something new. But most of my work have been in varied domain, and are unorganized.

I think that much text should be good enough for you to give a glimpse into my life, if you like to get in touch with me send me a mail, or chat with me, or follow me on twitter or drop in a comment.

Incoming search terms: