Katalon:GlobalVariable 何时重置? [英] Katalon: When is a GlobalVariable reset?

查看:14
本文介绍了Katalon:GlobalVariable 何时重置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在测试用例或测试套件期间、之前或之后使用 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 行,则在测试之后case 结束,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆