Forum Discussion
murugans1011
10 years agoRegular Contributor
Hello,
Project has temporary and persistent variable. temporary variable holds value at runtime. where as persistent has value even after test run. so in ur case use temporary variable to acheive the task.
To acces project variable from script u can use
project.variables.varName=0
To add variables through scripts
[VBS]
Set Variables = Project.Variables
if Not Variables.VariableExists("Var1") then
Project.Variables.AddVariable "var1", "Integer" 'datatype
End if
To remove variable
project.variables.removevariable "variablename"
See for more info
Project has temporary and persistent variable. temporary variable holds value at runtime. where as persistent has value even after test run. so in ur case use temporary variable to acheive the task.
To acces project variable from script u can use
project.variables.varName=0
To add variables through scripts
[VBS]
Set Variables = Project.Variables
if Not Variables.VariableExists("Var1") then
Project.Variables.AddVariable "var1", "Integer" 'datatype
End if
To remove variable
project.variables.removevariable "variablename"
See for more info
Related Content
Recent Discussions
- 8 hours agoSubhraDas
- 2 days agotramuntana