Katalon:什么时候重置GlobalVariable? [英] Katalon: When is a GlobalVariable reset?
问题描述
使用Katalon并在测试用例或测试套件之前,之后或之后更改GlobalVariable的值时,更改何时准确地重置为配置文件中的定义值?
When using Katalon and changing the values of a GlobalVariable during, before or after a test case or test suite, when exactly does the changes reset to the defined value in the profile?
推荐答案
在删除测试套件(或运行单个测试用例时,删除测试用例)时,将GlobalVariables的值重置为默认值.
The value of the GlobalVariables is reset to default on the teardown of the test suite (or the teardown of a test case when a single test case is run).
例如,如果在全局变量中设置了GlobalVariable.x=1
,并且在测试用例中有GlobalVariable.x=2
行,则在测试用例结束后,x会重置为1.
For example, if you have GlobalVariable.x=1
set in the Global Variables and you have GlobalVariable.x=2
line in your test case, after the test case ends, x is reset to 1.
这篇关于Katalon:什么时候重置GlobalVariable?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!