If you scope variables appropriately and reduce the use of instance variables, you can reduce this kind of object retention.
如果您适当地限制了变量的范围并且减少实例变量的使用,则可以减少此类对象保留。
A scope activity can contain more scope activities within it, so activities within a scope can also access variables of all enclosing scopes.
范围活动可以在其内部包含多个范围,因此范围中的活动也可以访问所有封闭范围的变量。
By just changing the scope of these variables, you can reference them in other tests that use the same login information.
通过更改这些变量的值,您可以在使用相同登录信息的其他测试中引用它们。
应用推荐