0% found this document useful (0 votes)
135 views4 pages

Night Watch MCQs

Wings 1 notes

Uploaded by

LATHIKA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views4 pages

Night Watch MCQs

Wings 1 notes

Uploaded by

LATHIKA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Night watch MCQs

Sure, here are the questions with options and the correct answers:

1. What is Nightwatch?

A) A novel by Stephen King

B) A tool for automated testing of web applications

C) A popular nightclub in New York City

D) A type of nocturnal bird species

**Correct Answer: B) A tool for automated testing of web applications**

2. Which programming language is commonly used with Nightwatch?

A) Python

B) JavaScript

C) Java

D) Ruby

**Correct Answer: B) JavaScript**

3. What is the primary purpose of Nightwatch in software development?

A) Creating user interfaces

B) Automating web browser interactions


C) Debugging server-side code

D) Generating API documentation

**Correct Answer: B) Automating web browser interactions**

4. Which of the following statements about Nightwatch is true?

A) It only supports Chrome browser.

B) It cannot be integrated with continuous integration tools.

C) It allows for writing tests using a BDD-style syntax.

D) It is primarily used for load testing web applications.

**Correct Answer: C) It allows for writing tests using a BDD-style syntax.**

5. Which command is used to execute Nightwatch tests?

A) run tests

B) start testing

C) execute tests

D) nightwatch

**Correct Answer: B) start testing**

6. What does the 'assert' keyword in Nightwatch represent?


A) A test assertion that checks if a condition is true

B) A function for importing external modules

C) A keyword for defining test suites

D) A method for generating random test data

**Correct Answer: A) A test assertion that checks if a condition is true**

7. Which of the following is NOT a built-in assertion method in Nightwatch?

A) assert.equal()

B) assert.contains()

C) assert.visible()

D) assert.empty()

**Correct Answer: D) assert.empty()**

8. What does the 'waitForElementVisible' command in Nightwatch do?

A) Pauses the test execution until a specific element becomes visible

B) Scrolls the page to a specified element

C) Verifies if an element is present in the DOM

D) Inserts a new element into the webpage

**Correct Answer: A) Pauses the test execution until a specific element becomes visible**
9. Which configuration file is used to set up test environments and other settings in Nightwatch?

A) nightwatch.js

B) config.json

C) setup.cfg

D) test.conf

**Correct Answer: A) nightwatch.js**

10. What is a 'page object' in the context of Nightwatch testing?

A) An HTML page that is being tested

B) A JavaScript object representing a webpage and its elements

C) A file containing CSS selectors for elements on a webpage

D) A module for storing test data

**Correct Answer: B) A JavaScript object representing a webpage and its elements**

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy