Forum Discussion
Vahan
14 years agoContributor
Hello,
Thank you for your responses. I meant to attach a screen shot of the error in the original post, so I will attach it here. All the code in the first script executes fine until the last statement.
SetAndCheckCommonAllergies = CheckCurrentAllergiesForItem(item,TRUE)
This is the statement corresponding to the line number (The code posted has had comments removed).
Also I used the terms script A&B for brevity. The actual names are SetAndCheckCommonAllergies and CheckCurrentAllergiesForItem. This is also the names of the function each contains.
Perhaps I should try to explain my methodology. The root of the problem could be that I may be approaching the task completely wrong. What my ultimate goal is to create a library of function that can be used to test certain aspects of objects. The function can then later be knitted together to create different test scripts and promote code reuse. My previous experience with automation software is QTP and in that package you were allowed to create a function library that could be linked to a project. Since I cant seem to find an analogous feature in TC my intent was to create lots of scripts each with one function that could be called by other scripts.
I hope this clarifies,
Vahan
Thank you for your responses. I meant to attach a screen shot of the error in the original post, so I will attach it here. All the code in the first script executes fine until the last statement.
SetAndCheckCommonAllergies = CheckCurrentAllergiesForItem(item,TRUE)
This is the statement corresponding to the line number (The code posted has had comments removed).
Also I used the terms script A&B for brevity. The actual names are SetAndCheckCommonAllergies and CheckCurrentAllergiesForItem. This is also the names of the function each contains.
Perhaps I should try to explain my methodology. The root of the problem could be that I may be approaching the task completely wrong. What my ultimate goal is to create a library of function that can be used to test certain aspects of objects. The function can then later be knitted together to create different test scripts and promote code reuse. My previous experience with automation software is QTP and in that package you were allowed to create a function library that could be linked to a project. Since I cant seem to find an analogous feature in TC my intent was to create lots of scripts each with one function that could be called by other scripts.
I hope this clarifies,
Vahan
Related Content
- 7 years ago
- 2 years ago
- 7 years ago
Recent Discussions
- 3 hours ago