#ATAGTR2019  QuizATAhon-4 Quiz#4 | Event in NA | Townscript
#ATAGTR2019  QuizATAhon-4 Quiz#4 | Event in NA | Townscript

#ATAGTR2019 QuizATAhon-4 Quiz#4

Jul 03 - 31 '19 | 02:00 PM (IST)
Online Event

Event Information

QuizATAhon Quiz#4 is now live


Result for QuizATAhon 3 is declared on #ATAGTR2019 Website.

Remember this is your entry pass to the best and most fun filled global testing conference. #ATAGTR2019

QuizzATAHon which is an integral part of #ATAGTR2019 is sponsored by CPSAT.
The number 1 certification in selenium. It is the only practical assessment certification. CPSAT is also the only certification globally available in Selenium which can be taken in any of the three language streams – Java, Python and C#. Please look at the following URL.



For Rules and other details for QuizATAhon please refer to the following URL: http://gtr.agiletestingalliance.org/quizatahon.html 

Process for Submission
1. Read the questions below
2. Note the correct answers on a piece of paper and get ready to submit the answers following the step below
3. Click on Book Now and submit your details
4. please do not forget to give your permanent email address, as our replies in the official mails sometimes don't reach your inbox.
4. Please submit the correct answers for the questions 

============= QuizATAhon 4 Questions are here =========================

Question 1 
Go to this URL https://www.bell.ca/Mobility/Smartphones_and_mobile_internet_devices, How do grab the names of products using selenium on a website when they are hidden with an overlay?


Select one best option.
a. Use some third party tool
b. Use Test Complete
c. Use this xpath : //*[@id="div_product_list_item_div_product_list_item_1"]/div[1]/div[2]
d. Use this xpath : //*[starts-with(@id,\"div_product_list_item_div_product_list_item_\")]/div[1]/div[2]/a/h3/span[1]
e. Use this xpath : //*[@id="div_product_list_item_div_product_list_item_1"]/div[1]/div[2]/a/h3/span[1]
f. It cannot be handled using xpath, use cssSelector
g. None

=================================================================

Question 2
When you run the below test

public void test() throws Exception {
   driver.get("www.facebook.com/");
   driver.findElement(By.name("firstname")).sendKeys("nick");
 Thread.sleep(5000);
 }

What do you expect from the Test.
a. Test will be executed without any issues
b. No Such Element exception
c. Invalid URL
d. Null Pointer exception
e. None
f. Remove Thread.sleep

=================================================================

Question 3
For the below task if we want to automate using selenium
Go to this URL https://ant.design/components/message/, Hit ‘Display normal message’ button and extract the prompt message text.



Select the best option that you will use to extract the prompt message displayed as an alert message.
a. Use Action class
b. Use Alert class
c. Use xpath
d. All

=================================================================

Question 4


How to select skill ‘CSS’ from Multiple selection dropdown, choose one option from the below
a. Select. selectByVisibleText(‘CSS’)
b. Select. selectByValue(‘css’)
c. By.xpath(“//*[@id="example"]/div[4]/div/div[2]/div[4]/div[1]/div[8]/div/div[2]/div[2]”)
d. By.xpath(“(“//*[@id="example"]/div[4]/div/div[2]/div[4]/div[1]/div[8]/div/div[2]/div[1]”)
e. None
f. Use Action class

=================================================================

Question 5
How to get the Actual price of all the products, if ID is auto generated


Select one option from the below.
a. Xpath : //*[@id="ProductModule-MP000000003637244"]/div/div/div/div[2]/div[1]/h3
b. Xpath : //*[starts-with(@id,"ProductModule-")]/div/div/div/div[2]/div[1]/h3
c. Xpath : //*[contains(@id,"ProductModule")]/div/div/div/div[2]/div[1]/h3
d. b and c
e. a, b and c
f. Xpath : //*[starts-with(@id,"ProductModule-MP")]/div/div/div/div[2]/div[1]/h3
g. b, c AND f

=================================================================

Question 6
How to check if any element exists or not on the page, select one best option from the below?
a. Use explicit wait ExpectedConditions
b. Use try catch block
c. Use findElement
d. Use findElements

=================================================================

Question 7
Go to this URL https://my.moneydashboard.com/, If we enter ‘abcdefgh’ in the password field then how to check that ‘At least 8 characters’ label is enabled or not ?


a. With help isSelected()
b. with help of isChecked()
c. with help of xpath and getAttribute()
d. with help of ExpectedConditions

=================================================================

Question 8
How to parse nested element value from postman response
{
    "id": "5d1b56c1b82c658e78ab11db",
    "badges": {
        "attachmentsByType": {
            "trello": {
                "board": 0,
                "card": 0
            }
        },
    },

See the above response and extract the board value from the above JSON.

We can assume that the data source is as below:
let jsonData = pm.response.json();

a. jsonData.board
b. jsonData.id. badges. attachmentsByType.trello.board
c. jsonData. badges. attachmentsByType.trello.board
d. jsonData.id. badges.board
e. board
f. jsonData.id.board

=================================================================

Question 9
. If collection in postman have environment variables then how to run collection from command line (newman) or from Jenkins windows batch command (calling newman)

a. newman run <collection_name.json> (collection contains environment variables also)
b. newman run <collection_name.json> <environment_variables.json>
c. newman run <collection_name.json> -e <environment_variables.json>
d. postman run <collection_name.json> <environment_variables.json>
e. postman run <collection_name.json> -e <environment_variables.json>
f. newman run <collection_name.json>

=================================================================

Question 10
see the below code snippet:
package test;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.testng.annotations.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class Question6_Junit_Test {
 WebDriver driver;
 @Before
 public void setUp() {
  System.setProperty("webdriver.chrome.driver","test/resources/drivers/chromedriver.exe");
  driver=new ChromeDriver();
  driver.manage().window().maximize();
 }
 @Test
 public void conversionTest() throws IOException
 {
  driver.get("http://www.nytimes.com/");
 }
 @After
 public void tearDown() {
  driver.quit();
 }
}

(please consider that .exe path is correct and there is no compilation error in the code)

if we run the above program, what will be the output?

a. the test will be executed properly.
b. Null pointer exception will be thrown as the driver object is not initialized properly
c. Null pointer exception will be thrown due to library/import problems
d. Null pointer exception will not be thrown but the test will not execute as system property value may not be set properly

=================================================================

You have to click on Book now to submit your details and the answers to the questions

=================================================================

For all upcoming ATA Events please visit the following URL




=================================================================

QuizATAhon quiz's are brought to you by the following curators



Venue

This is an online event
Agile Testing Alliance & DevOps++ Alliance cover image
Agile Testing Alliance & DevOps++ Alliance profile image
749
Events Organised
50
Followers
About
ATA is a global alliance of Technologists, QA, Agile and DevOps practitioners, professionals and experts. ATA is driving community driven shared and collaborative learnings across multiple chapters in 24 countries.
Have a question?
Send your queries to the event organizer
Agile Testing Alliance & DevOps++ Alliance profile image
CONTACT ORGANIZER
EVENT HAS ENDED
VIEW SIMILAR EVENTS
Have a question?
Send your queries to the event organizer
Agile Testing Alliance & DevOps++ Alliance profile image
CONTACT ORGANIZER
Host Virtual Events with
Townhall
Learn More TsLive Learn more