SDET Interview Question and Answers.
Jenkins Interview Questions and Answers. Appium Interview Questions and Answers
- alwaysRun
- dependsOnMethods
- @test:
@Test
public void methodone() {System.out.println("Methodone");// Failing test explicitlyAssert.fail();}// alwaysRun attribute will override dependsOnMethods if dependent method is failed or skipped@Test(dependsOnMethods = "methodone", alwaysRun=true)public void methodtwo() {System.out.println("Method two");}
- Description:
- Enabled:
- invocationCount
- threadPoolSize
- timeOut
AutoTest.java
public class AutoTest{@Test(threadPoolSize = 3, invocationCount = 6, timeOut = 1000)public void testMethod(){Long id = Thread.currentThread().getId();System.out.println("Test method executing on thread with id as: " + id);}}
- expectedExceptions
Learn (API-Microservice)Testing+(CoreJava+UI)-SDET with Self Paced Videos and one LIVE Doubt Session
Entire course content can be found below: COURSE CONTENTCheck below link for question and answers with code:
Check below for TestNG annotations on @After and @Before:
TestNG@after@before
Check below link on top Interview preparation:
SQL Query Cucumber-BDD Linux Commands Maven GIT
*************************************************
API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign
Java Related Interview Question Set
https://automationreinvented.blogspot.com/search/label/Java
GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT
Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
This comment has been removed by a blog administrator.
ReplyDelete