How to use the software testing tool rational teamtest in Pb

Source: Internet
Author: User
How to use the software testing tool rational teamtest in Pb
Author: Unknown updated on:  
 
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 datapools

Jbgsn:
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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.