#106: support builtin functions

This commit is contained in:
httprunner
2018-02-28 23:56:10 +08:00
parent 24c5826cce
commit 074cc76cad
4 changed files with 31 additions and 1 deletions

View File

@@ -703,6 +703,11 @@ class TestcaseParser(object):
if item_type == "function":
if item_name in self.functions:
return self.functions[item_name]
try:
return eval(item_name)
except NameError:
pass
elif item_type == "variable":
if item_name in self.variables:
return self.variables[item_name]