NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
Absent Member.
Absent Member.
1619 views

Dependency between 2 Junit tests

Jump to solution

Is there a way in silk central to configure dependency between 2 Junit tests? 

for example i've 2 test cases: junittestcase1 and junittestcase2. my requirement is something like this - junittestcase2 should execute only if junittestcase1 is passed. if junittestcase1 is failed, then junittestcase2 should shouldn't run or should be skipped.

Please let me know if there is any possibility or suggest any possible workarounds.

Bit urgent guys 🙂 thanks in advance.

Regards,

Vikas

0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hi Vikas,

you can do this on an Execution Plan basis only - hence EP1(junittestcase1) and EP2(junittestcase2). Then you can create a dependency between EP1 and EP2 on the "Dependencies" tab with a condition - e.g. only if EP1 is passed EP2 is triggered.

Regards,

Florian

Product Owner - Silk

View solution in original post

0 Likes
1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hi Vikas,

you can do this on an Execution Plan basis only - hence EP1(junittestcase1) and EP2(junittestcase2). Then you can create a dependency between EP1 and EP2 on the "Dependencies" tab with a condition - e.g. only if EP1 is passed EP2 is triggered.

Regards,

Florian

Product Owner - Silk

View solution in original post

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.