Scripting techniques for test automation

What are the scripting techniques available for test automation?

1. Linear scripting
- Here a simple record and playback is being used by a test engineer so as to automate a test flow/ test case of a system.
- There can be some redundant functions etc which are not required.

2. Structured scripting
- It is used to control structures in the scripts.
- They enable the testers to control the flow of the test script/ test case.
- They are typically ‘if-else’, ‘switch’, ‘for’, ‘while’ conditions/ statements which help in implementing the decision making in a script, to help perform some tasks iteratively and it has the capacity to call other common functions that need some common functionality

3. Shared scripting
- Here the scripts represent an application behavior which is shared amongst other scripts.
- The application which is under the test common functionality is scripted as shared scripts and these scripts are then called by other scripts.
- The scripts become modular in terms of common functionality.
- Due to the functionality of these scripts they cross the AUT boundary and can be used in other software applications as well.

4. Data driven scripting
- The data is separated from the scripts and is stored into the external repository as disk in form of files.
- This script contains only the programmed code.
- It is needed when the data needs to be varied over the test run.
- If the data undergoes any change the script need not be modified.
- The expected data is stored in the data files that have test data.

5. Keyword driven testing
- It is the control to check and execute operations in maintained with external data files.
- The external data file will test data and the operations/sequence of the test is planned in and extra library which needs to interpret this data in addition to the conventional script.
- It is an extension of data driven testing.
Data-driven automation
DDT is testing the same set of functionalities with different set of data. In DDT, the scripts are programmed in structured manner...............
How to automate activities of test case design
Yes. We can automate the test-case design to some extent using some specialized automation tools. But for most of the projects................
Limitations of automating testing
Designing a perfect automation script need some solid understanding of software development principles which automation testers lack most of the time.................
Post your comment