- Advanced UFT 12 for Test Engineers Cookbook
- Meir Bar Tal Jonathon Lee Wright
- 233字
- 2021-08-05 17:09:10
Introduction
This chapter describes several ways by which data can be used to drive automated tests in UFT. Data-driven tests enable us to cover different paths in a test flow, by supplying a coded script with different sets of values to its parameters. These include input data for manipulating GUI objects and, where relevant, also the expected output from the application under test. In other words, a data-driven script is one whose behavior changes when fed with different sets of input data.
We can retrieve input data using the global DataTable
object. The first seven recipes explain how we can work with a DataTable to attain various goals related to the concept of data-driven tests. The next two recipes deal with Environment variables using the Environment
object. The Reading values from an INI file and Using a configuration file to manage test environments recipes show how to retrieve values from INI files and how to manage test environments with them. Finally, the Using a global dictionary for fast shared data access and Using a global dictionary for fast shared code access recipes describe advanced techniques for fast shared data and code access using a Dictionary
object.
Tip
When we work with a DataTable in UFT, we must keep in mind that an action datasheet always carries the same name as the associated action, and that its data is visible only to the action.
- Learn Blockchain Programming with JavaScript
- C#程序設(shè)計(jì)實(shí)訓(xùn)指導(dǎo)書
- Software Testing using Visual Studio 2012
- C語言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- Bulma必知必會
- Mastering PHP Design Patterns
- Interactive Applications Using Matplotlib
- Python算法從菜鳥到達(dá)人
- WildFly Cookbook
- Python 3快速入門與實(shí)戰(zhàn)
- Less Web Development Cookbook
- Unity 5 Game Optimization
- Socket.IO Cookbook
- Android項(xiàng)目實(shí)戰(zhàn):博學(xué)谷
- Tkinter GUI Application Development Blueprints