Jbgsn: There is a robot, and I don't know how to use it for testing in Pb. Which of the following experts gave me some advice. Kukoc answer: It's easy to start Pb, start robot, click the GUI icon to start recording, and then run the pb program. After the recording is completed, a GUI script is automatically generated to play back these GUI scripts, to test the function. Also learn to use datapoolsJbgsn: Thanks for your guidance. :) For another question, I want to use datapools to run the test and use different data. I have defined it, but I don't know how to call it in a GUI script. Kukoc answer: Datapools is a dataset, a bit like how to use a cursor in SQL. Let me give you an example. I wrote in The pb9 series "software engineering and Pb: 'Open datapool personnel Dp_personnel = sqadatapoolopen ("Personnel", sqa_dp_sequential) 'Insert 10 records cyclically For I = 1 to 10 'Move the cursor to the next row of the Data Pool Call sqadatapoolfetch (dp_personnel) 'Obtain the value of column 1st of row I-department Call sqadatapoolvalue (dp_personnel, 1, DEP) 'Get the value of Column 2nd of row I -- name Call sqadatapoolvalue (dp_personnel, 2, uname) 'Obtain the value of column 3rd of row I-Gender Call sqadatapoolvalue (dp_personnel, 3, sex) Pushbutton click, "text = add (n)" 'click Add button Inputkeys "{tab }" Inputkeys Dep 'Enter the Department Inputkeys "{tab }" Inputkeys uname' input name Inputkeys "{tab }" Inputkeys sex 'enter gender 'The above variable replaces the actual input value, for example: 'Inputkeys "{tab} Development Department {tab} Zhang San {tab} male" Next I Call sqadatapoolclose (dp_personnel) 'to disable datapool |