java - TestNG - Skipping a test case for a user -


i'm using testng , using iterator data excel.

i have many usernames mentioned in excel , each user has different permissions.

for example, user1 has access screen1, screen2 , screen3 of tab. user2 has access screen 1,2 not 3 of tab

so have created class work both users, problem here screen 3 not available user2, webdriver fails test shows on report, don't want.

is there way skip screen3 test case user2?

thanks

good morning, suggest use groups discrimination in test annotation. example cans see thread: is possible put condition testng run test if member of 2 groups?

thanks attention.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -