Optimization Techniques: Part 1
Learn why we do optimizations in our scripts, and how to optimize page source assertion.
Why is optimization necessary?
Getting our test scripts to work is just the first step in successful test automation. Whenever a test script is executing, the application state is changing with it as well. Therefore, the other step is to make our test scripts optimized. A test script is said to be optimized if it is:
- Fast
- Readable
- Concise
In the upcoming lessons, we will discuss various techniques for optimizing our test scripts.