Reputation: 1
i need help with test script for automation testing of a GUI application and i chose javascript to design script but test scripts examples are completely different from javascript as much i know.
Upvotes: 0
Views: 966
Reputation: 13930
Use Squish's record feature to record tests based on your GUI interaction.
In my experience, this is the most robust and flexible way to write test suites. As soon as you start refactoring or writing custom functions, your Squish code becomes tightly coupled with the application under test (AUT). This makes it hard to maintain the tests through changes to the AUT.
It is useful to work to have a flexible objects.map, so that as the AUT evolves, your tests retain meaning. It's also useful to write AUT-specific analysis and reporting code.
Upvotes: 1
Reputation: 230
First of all.. It would be better to use another language then javascript. I prefered python because you can easily add third party modules and use oop.
If you are starting to write test automation scripts for a large software it would be better to create an architecture. In my last project I included abstraction layer classes which manage / control the gui of the aut (application under test).
The benefit of these structure is a quick respond of modification (new buttons etc). Furthermore other test developers needn't to know how to interact with buttons, checkboxes etc because they have to use your methods from the abstraction layer.
The best way to learn how a squish test script works, is to record a simple example (login). There you can see which functions to use. If the script works fine replace your text inputs with entries from a local tsv file and add a loop to create a bundle of test executions.
Upvotes: 0