Skip to content

How to use boolean expressions in MatchXpath #14394

Closed Answered by nrmancuso
polyanskih asked this question in Q&A
Discussion options

You must be logged in to vote

@polyanskih this should do it:

➜  src cat ExampleTests.java 
public class ExampleTests {

    private static final String BASE = "base";
    private static final String RETRY = "retry";

    @Test(
            description = "This is test with retry annotation and group",
            groups = {BASE, RETRY}
    )
    @Retry
    public void testWithRetryAnnotationAndGroup() {

    }

    @Test(
            description = "This is test with retry annotation but without retry group",
            groups = {BASE}
    )
    @Retry
    public void testWithoutRetryGroup() {

    }

    @Test(
            description = "This is test with retry group but without retry annotation",
            groups =…

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@polyanskih
Comment options

@polyanskih
Comment options

Answer selected by polyanskih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants