Podcast
Questions and Answers
Which attribute is used to log the execution details in the console?
Which attribute is used to log the execution details in the console?
- Parallel
- thread-count
- verbose (correct)
- name
Which value can be used for the 'Parallel' attribute to run scripts parallel?
Which value can be used for the 'Parallel' attribute to run scripts parallel?
- classes
- tests
- methods
- suites (correct)
What is the default value of the 'Parallel' attribute?
What is the default value of the 'Parallel' attribute?
- classes
- methods
- suites
- tests (correct)
What is the purpose of the 'name' attribute in TestNG?
What is the purpose of the 'name' attribute in TestNG?
What is the purpose of the 'thread-count' attribute in TestNG?
What is the purpose of the 'thread-count' attribute in TestNG?
What is the purpose of the 'verbose' attribute in TestNG?
What is the purpose of the 'verbose' attribute in TestNG?
What is the value of the 'verbose' attribute to get more detailed and clearer log details in the console?
What is the value of the 'verbose' attribute to get more detailed and clearer log details in the console?
What should be done to execute multiple tests in parallel using TestNG?
What should be done to execute multiple tests in parallel using TestNG?
What is the recommended way to execute the testng.xml file?
What is the recommended way to execute the testng.xml file?
What does TestNG provide an option for?
What does TestNG provide an option for?
Which method is used to log in to Flipkart?
Which method is used to log in to Flipkart?
What is the CSS selector used to find the login form input for the user email in Flipkart?
What is the CSS selector used to find the login form input for the user email in Flipkart?
Which method is used to search for a product in SnapDeal?
Which method is used to search for a product in SnapDeal?
What is the CSS selector used to find the first item in the search results in SnapDeal?
What is the CSS selector used to find the first item in the search results in SnapDeal?
Which method is used to remove an item from the cart in SnapDeal?
Which method is used to remove an item from the cart in SnapDeal?
Which method is used to accept an alert in SnapDeal?
Which method is used to accept an alert in SnapDeal?
Which method is used to log out from Flipkart?
Which method is used to log out from Flipkart?
Which method is used to maximize the browser window in SnapDeal?
Which method is used to maximize the browser window in SnapDeal?
Which method is used to set the implicit wait time in SnapDeal?
Which method is used to set the implicit wait time in SnapDeal?
Which method is used to navigate to a URL in SnapDeal?
Which method is used to navigate to a URL in SnapDeal?
Which of the following is a benefit of running test methods, test classes, and test cases in parallel using TestNG?
Which of the following is a benefit of running test methods, test classes, and test cases in parallel using TestNG?
What is the purpose of the TestNG.xml file in TestNG?
What is the purpose of the TestNG.xml file in TestNG?
Which step is required to run multiple classes (suites) using TestNG?
Which step is required to run multiple classes (suites) using TestNG?
What is the purpose of the @BeforeClass annotation in TestNG?
What is the purpose of the @BeforeClass annotation in TestNG?
What is the purpose of the @Test annotation in TestNG?
What is the purpose of the @Test annotation in TestNG?
Which WebDriver is used in the code provided in the text?
Which WebDriver is used in the code provided in the text?
What is the purpose of the driver.manage().window().maximize() method in the code?
What is the purpose of the driver.manage().window().maximize() method in the code?
What is the purpose of the driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS) method in the code?
What is the purpose of the driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS) method in the code?
What is the purpose of the driver.navigate().to("https://www.flipkart.com") method in the code?
What is the purpose of the driver.navigate().to("https://www.flipkart.com") method in the code?
What is the purpose of the @AfterClass annotation in TestNG?
What is the purpose of the @AfterClass annotation in TestNG?