Rational Robot FAQ
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
What Kinds of Problems Does a Datapool Solve?
1.Problem: During recording, you create a personnel file for a new employee, using
the employee’s unique social security number. Each time the script is played
back, there is an attempt to create the same personnel file and supply the same
social security number. The application rejects the duplicate requests.
Solution: Use a datapool to send different employee data, including unique social
security numbers, to the server each time the script is played back.
2. Problem: You delete a record during recording. During playback, each instance
and iteration of the script attempts to delete the same record, and Record Not
Found errors result.
Solution: Use a datapool to reference a different record in the deletion request
each time the script is played back.
3. Problem: The client application reads a database record while you record a script
for a performance test. During playback, that same record is read hundreds of
times. Because the client application is well designed, it puts the record in cache
memory, making its retrieval deceptively fast in subsequent fetches. The
response times that the performance test yields will be inaccurate.
Solution: Use a datapool to request a different record each time the script is
played back.
How to creating a Datapool with Robot?
1. Plan the Datapool
- What datapool columns do you need?
- What data type should you assign to each column?
- Do you need to create data types?
2. Generate the code
- Manually add datapool commands to the script
- Match up script variable names with datapool columns
3. Create and Populate the Datapool
- In TestManager, define datapool columns (including assign a data type to each datapool column).
- Generate the data.
- Verify generated data is correct (open back up to view)
- Test with script
Datapool data type.
A datapool data type is a source of data for one datapool column
There are two standard kinds of datapool data types:
Standard data types - These are included with rational robot, and consist of
types such as first name, last name, city, state (see rational robot appendix c for full
list of all data types).
User-defined data types - These are data types that the user creates. You must
create a data type if none of the standard data types contains the kind of values you
need for your script.
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|