Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
1404 views

Question from Testtobreak on Twitter

Jump to solution

Is there a way in SilkTest where you can add 'use' statement for part of test then 'unuse' it for another b/c of conflicting inc files?

0 Likes
1 Solution

Accepted Solutions
Micro Focus Contributor
Micro Focus Contributor

RE: Question from Testtobreak on Twitter

Jump to solution

The straightforward answer is 'no'. If conflicting inc files is a problem, probably the best way to resolve this is to have a master inc file that lists all other possible inc files. It then gives you just the one point to include the required files by commenting or uncommenting them. Please also be aware that if inc A calls inc B and inc B calls inc C, then inc C calls inc A, depending on the contents you can end up with recursive calls that very quickly eat up CPU time and memory. A master inc file is almost always the safest setup.

0 Likes
3 Replies
ThomasF Absent Member.
Absent Member.

RE: Question from Testtobreak on Twitter

Jump to solution

I'm not 100% sure but I think what you want could be done with plan files.

0 Likes
AlexanderF Absent Member.
Absent Member.

RE: Question from Testtobreak on Twitter

Jump to solution

I'm not aware of any way to 'unuse' .inc files. Can you provide more context, maybe you can re-organize your .inc files to resolve the conflict?

0 Likes
Micro Focus Contributor
Micro Focus Contributor

RE: Question from Testtobreak on Twitter

Jump to solution

The straightforward answer is 'no'. If conflicting inc files is a problem, probably the best way to resolve this is to have a master inc file that lists all other possible inc files. It then gives you just the one point to include the required files by commenting or uncommenting them. Please also be aware that if inc A calls inc B and inc B calls inc C, then inc C calls inc A, depending on the contents you can end up with recursive calls that very quickly eat up CPU time and memory. A master inc file is almost always the safest setup.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.