Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Badboy Automated Test tool 6 Variable Setter

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

In the previous section, we learned to manually add values to the Variable list. Badboy provides the Variable setter tool, which uses 3 ways to fill the list data.

We then use lashou's script to complete the learning.

1. Drag Variable Setters from Tools Tab into the script

2. After dragging, the configuration window of variable settings will pop up, as follows:

3. Select the variable Searchcontent to act on

4. Choose how to fill variables:

.1 Fixed value mode: values separated by commas

.2 Regular expression method

.3 Reading CSV files

In this section, we will use the first method, fixed value.

5. In the Fixed values text box, type mtv1,mtv2,ktv1,ktv2

6. Click OK

7. Run the script again, Play All

8. The first time you run the result, instead of mtv1, it will be ×× or MTV. This is because Variable has a configuration with a current value. The second response will point to mtv2. To avoid this trouble, you need to specify the current value of Searchcontent variable before running the script. Select mtv1 and click Current.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report