background image
<< To test PeopleTools applications | PeopleTools Commands >>
<< To test PeopleTools applications | PeopleTools Commands >>

PeopleTool Test Scripts

Testing a Component's Data
17-3
Testing a Component's Data
You can use the Object Data verification point to test the data in PeopleTools
data-aware components.
You can use the Object Data Test Definition to define user data tests. (For
information, see Appendix A, Working with Data Tests.)
Ensuring Correct Playback of PeopleTool Test Scripts
When Robot creates test scripts that contain PeopleSoft traffic (Tuxedo or Jolt),
TestManager automatically correlates any PeopleSoft certificate information
required for proper client authentication during playback. The correlations take the
form of string variables, declared with the prefix
psft_cert
, and various
operations on them. The following code shows a typical example of certificate
correlation in a PeopleSoft/Jolt test script:
1
sock_send
2
jolt_request(0, jolt_sessionid_1, jolt_handlerid_1, 3,
3
jolt_dataxfer(jolt_sessionid_1, JOLT_CALL_RQST,
4
jolt_setatt_name("GetCertificate") +
5
jolt_setatt_version(1) +
6
jolt_setatt_flags(4) +
7
jolt_setatt_data(
8
jolt_setpar_carray(1,
9 "`000000480102030400000000000002bcffffffff0000001f0004`SCTX"
10 "`0a`JavaClient`02`PS`02`PS`00000000000000150008`SCertReq`0"
11
"2`PS`02`PS`00`"))));
12
13
sock_nrecv ["suzy027h"] jolt_response_header();
14
sock_nrecv ["suzy027b"] jolt_response_body();
15
{ string psft_cert_1; }
16
psft_cert_1 = "`" + substr(mixed2hexstring(jolt_getpar_carray(1)),
72, 32) +
17
"`";
18
set Think_avg = 230;
19
20
sock_send
21
jolt_request(0, jolt_sessionid_1, jolt_handlerid_1, 4,
22
jolt_dataxfer(jolt_sessionid_1, JOLT_GETDEF_RQST,
22
jolt_setatt_repname("SVC`2f`StmGetTimeOut")));
23
24
sock_nrecv ["suzy028h"] jolt_response_header();
25
sock_nrecv ["suzy028b"] jolt_response_body();
26
set Think_avg = 240;
27
28
sock_send
29
jolt_request(0, jolt_sessionid_1, jolt_handlerid_1, 5,
30
jolt_dataxfer(jolt_sessionid_1, JOLT_CALL_RQST,
31
jolt_setatt_name("StmGetTimeOut") +
32
jolt_setatt_version(1) +
NOTE: To test the data in the entire panel, point to the panel when selecting the
object to test.