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 8 Incrementing Variables

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

Share

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

Badboy provides Incrementing Variables tools to change the values of parameters in a variety of ways to facilitate changes in input parameters with multiple requirements when the script is running.

Mode of operation

Description

Default value

A combination of values list and random integer methods. If a variable has a value list, then it will use the value list, otherwise it will use the random integer method

Random integer

An integer is randomly generated based on the thread id and the current time variable, replacing any numeric characters at the end of the other original parameter values. For example, "treefrog1" may become "treefrog65267"

Values list

Use the next value in the values list. This value list can come from a configured Variable Setter, an ODBC data source, or can be set manually by the user.

Positive integer

Automatically adds 1 at the end of the current value. For example, if the current value is "treefrog1", then incrementing it will make it "treefrog2".

In this course, we continue the case study of course 7.

A way to increase the value of variables by random integers for all variables

The steps are as follows:

1. Open the script for lesson 7

two。 Drag the Increment tool to the first place of the script to make sure it runs first

3. After dragging in, configure it in the pop-up properties panel

4. Select growth for all variables and take random integers in a 2-digit way

5. Click Ok

6. Run the Script step to observe the changes in Variable Tab

All three variables are assigned 2-digit random integers

Second, perform self-increasing integer 1 operation for specific variables.

1. Double-click the self-growing tool in the Script step

two。 In the pop-up properties panel, select C1 and positive integers, and click Ok

3. Rerun the Load Excel step and observe that 1-4 (course 7 content) is reread in the variable values list in the Variable tag.

4. Run the Script step to observe the changes in Variable Tab

At C2q2, the value in the original C1 list should also be 2, but because the growth tool is in front of the C1 variable, C1q3

The end of this class!

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