0
Follow
0
View

Python interface automation test, how to get method variables in different classes

cuizhe0817 注册会员
2023-02-28 20:15

Define the id in an extra class like:

class Var:
    id = None
In

a.py, the id extracted each time is assigned to Var.id, and b.py can be directly used with Var.id. The above is for reference.

If it helps, please click to accept ~

About the Author

Question Info

Publish Time
2023-02-28 20:15
Update Time
2023-02-28 20:15