0% found this document useful (0 votes)
923 views25 pages

NightWatch Assessment

NightWatch Assessment - Anwsers

Uploaded by

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

NightWatch Assessment

NightWatch Assessment - Anwsers

Uploaded by

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

G Bharat Menon (2128858@tcs.

com)
Status : Pass
Assessment Date : 17-05-2024 03:00:32 (GMT+05:30)
Performance Level : High

27.00 30.00 24.00


Your Total Assessment Cut-Off marks
Score Score (Pass Marks)

90.00 H
Your Performance
Percentage Category

This report helps you to achieve your


targets as per below stated objectives:
Improve your conceptual understanding
Address specific areas of improvement
personalized to you
Performance Categories
Based on the performance of the students, we have framed the following categories to place you in accordance with your performance

Performance Category Definitions

Excellent
Outstanding level of performance indicates that the candidate has done excellent work and mastered the concepts.
High
High level of performance indicates that the candidate has done above average work and mastered almost all the concepts.
Moderate
Acceptable level of performance indicates that the candidate has done average work and has mastered many of the concepts.
Low
Needs improvement in performance indicates that the candidate has done and mastered very few or none of the concepts.

Performance Criteria

PERFORMANCE CATEGORY RANGE

Excellent 91% to 100% of Max Marks

High 81% to 90% of Max Marks

Moderate 61% to 80% of Max Marks

Low Below 60% of Max Marks

Performance Category based on student marks

SECTION (GROUP) EXCELLENT HIGH MODERATE LOW

S1 (NightWatch Group) 27.30 and above 24.30 to 27.00 18.30 to 24.00 Below 18.00
SECTION (GROUP) EXCELLENT HIGH MODERATE LOW

Overall Score 27.30 and above 24.30 to 27.00 18.30 to 24.00 Below and equal to 18.00

Where do you stand?

SECTION (GROUP) SCORE PERFORMANCE CATEGORY

S1 (NightWatch Group) 27.00 / 30.00 H

Overall Score 27.00 / 30.00 H

Recommendations and Suggestions


1. Based on your overall scores:
Your overall score falls in the H category. Please avoid misconceptions and maintain time properly.
2. Based on your section-wise performance:
You seem to be strong in S1. So it is suggested that you attempt S1 section first
3. Some general suggestions to optimize your score:
The best performers plan and allocate equal time to each section.

Overall Performance Analysis


The below table shows section-wise analysis of marks scored by you, time spent by you, your percentage, your accuracy and number of correct, incorrect,
unanswered and marked for review questions.
TIME
SECTION MARKS SPENT YOUR YOUR TOTAL MAX NO OF QUESTIONS MARKED
SCORED BY YOU SECTION SECTION QUESTIONS - CORRECT INCORRECT UNANSWERED FOR
(GROUP) BY YOU (IN PERCENTAGE ACCURACY QUESTIONS TO ATTEMPT ATTEMPTED REVIEW
MINS)

S1
(NightWatch 27.00 5:13 90.00% 90.00% 30 30 30 27 3 0 0
Group)

Total 27.00 5:13 90.00% 90.00% 30 30 30 27 3 0 0

Note:The percentage (%) and accuracy below the prescribed values (60 %) are shown in red color

Below pie-chart shows section-wise percentage of marks scored

Section-wise marks

S1, 27

S1
Impact of Incorrect Responses
Below table provides the marks lost due to incorrect responses.

SECTION(GROUP) NUMBER OF INCORRECT RESPONSES MARKS LOST DUE TO INCORRECT RESPONSES TOTAL SCORE IF INCORRECT RESPONSES WERE NOT MARKED

S1(grp1) 3 0 27

Overall 3 0 27.00

In order to attempt more accurately, consider the following suggestions while attempting the questions:
1. If you are not able to solve a question correctly or have doubts in your approach towards the solution, skip it for later.
2. Quickly revise the steps for avoiding calculation or casual mistakes.
3. Avoid guesswork.

Overall Preparedness Analysis


The below table represents the percentage of correct questions achieved at the analysis level.
Conceptual errors, for which you would require more reading and understanding of concepts.
Minor or careless mistakes, for which you would require a more composed and calm approach towards solving the question paper.
The topics marked in red need your immediate attention.
Time Management
Below table shows the time you spent in each section.

SECTION (GROUP) TIME SPENT BY YOU (IN MINS)

S1 (NightWatch Group) 5:13

Total time spent 5:13

Recommendations
1. It is essential for each aspirant to plan and schedule time for each section diligently. This is important to score well in each section and ultimately meet the
cut-off.
2. This will also help you in attempting all the questions in each section and hence not missing the opportunity to score more.

Response Change Pattern


Below table provides the number of times you have changed your responses while answering the test and also the nature of those response changes.

CORRECT TO INCORRECT TO INCORRECT TO CORRECT TO INCORRECT TO UNANSWERD TO UNANSWERD TO


SECTION(GROUP)
INCORRECT CORRECT INCORRECT UNANSWERED UNANSWERED CORRECT INCORRECT

S1 (NightWatch
0 0 0 0 0 27 3
Group)
CORRECT TO INCORRECT TO INCORRECT TO CORRECT TO INCORRECT TO UNANSWERD TO UNANSWERD TO
SECTION(GROUP)
INCORRECT CORRECT INCORRECT UNANSWERED UNANSWERED CORRECT INCORRECT

Overall 0 0 0 0 0 27 3

It is suggested that guesswork should be avoided for any type of response changes. It has been observed that more often than not, guesswork leads to an
incorrect response thereby inviting negative marks which in turn has an adverse effect on the overall rank.
You must use your knowledge, observation and elimination skills to arrive at the correct answer.

Interpretation and Suggestions


1. Incorrect to incorrect response change:
You may need to work more on the concept level, in order to gain confidence.
2. Incorrect to correct response change:
At the first glance you were not very sure about the solution.
You must spend at least 1 minute per question and if you are not able to reach to the solution, you must revisit the question to enhance your score.
Perform this response change only when you are confident or have spotted a mistake in the solution of your first response.
3. Correct to incorrect response change:
You are not sure of the solution and have either applied a wrong concept or made a calculation mistake.
You need to practice more questions on the same concept.
4. Correct to unanswered response change:
You are not sure of the solution
You need to practice more questions on the same concept.
Perform this response change only when you are not confident of your solution.
You must try to spend at least 1 min before leaving it unanswered.
5. Incorrect to unanswered response change:
Your judgment of avoiding negative marks is right.
You must try to spend at least 1 min before leaving it unanswered.
Overview: S1
The below table provides your marks in S1 along with the average marks scored by the others (students who cleared this assessment) and the marks scored by
the topper.

MARKS SCORED BY YOU YOUR SECTION PERCENTAGE YOUR SECTION ACCURACY TIME SPENT BY YOU (IN MINS)

27.00 / 30.00 90.00% 90.00% 5:13

Note:The percentage (%) and accuracy below the prescribed values (60%) are shown in red color
Question wise Analysis

Correct, 27

Marked for Review, 0


UnAnswered, 0
InCorrect, 3

Correct InCorrect UnAnswered Marked for Review

Performance Analysis: S1
1. The below table analyzes your performance at question level
2. It highlights conceptually strong and improvement areas within the section and areas that require reinforcement of concepts.
3. The accuracy of the response to each question and time spent are correlated and interpreted in terms of expert advice on preparedness level.

Question wise details


Please click on question to view detailed analysis
= Not Evaluated = Evaluated = Correct = Incorrect = Not Attempted
= Marked for Review = Answered = Correct Option = Your Option

Question Details

Q1. How do you run the specified testcase from the current suite/module?

Status : Answered

Options :
1. nightwatch --testcase testName
2. nightwatch --test specificTest.js --testcase testName
3. nightwatch --spec testName
4. nightwatch testName

Timespent (in sec): 14 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q2. What is the purpose of the Nightwatch.js "waitForElementVisible" command?

Status : Answered

Options :

1. To pause execution until an element becomes visible.


2. To check if an element is visible and proceed.
3. To wait for a specific amount of time.
4. To perform asynchronous operations.

Timespent (in sec): 10 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q3. How can you handle data-driven testing with Nightwatch?

Status : Answered

Options :

1. Use inline data tables within test scripts


2. Leverage external CSV or JSON files for test data
3. Utilize the built-in dataModule feature
4. Combine any of the above methods as needed

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q4. Which property in the Nightwatch configuration is used to define custom commands?

Status : Answered

Options :
1. custom_commands
2. customCommands
3. custom
4. commands

Timespent (in sec): 8 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q5. Which command is used to run all the tests in the Nightwatch.js project?

Status : Answered

Options :
1. nightwatch all
2. nightwatch --all
3. nightwatch
4. nightwatch --run-all

Timespent (in sec): 4 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q6. Which fo the following is not a parameter in .cssProperty in the assertion?

Status : Answered

Options :

1. cssProperty
2. expected
3. version
4. msg

Timespent (in sec): 20 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q7. What does the execute command do in Nightwatch?

Status : Answered

Options :
1. Executes a javascript function within the browser context
2. Runs a shell command on the local machine
3. Initiates the test execution process
4. Loads a new web page in the browser

Timespent (in sec): 11 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q8. How do you run a specific test file in Nightwatch.js?

Status : Answered

Options :
1. nightwatch --test specificTest.js
2. nightwatch -tst specificTest.js
3. nightwatch specificTest.js
4. nightwatch --spec specificTest.js

Timespent (in sec): 11 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q9. How do you set the test environment (e.g., 'default' or 'firefox') in the Nightwatch configuration?

Status : Answered

Options :
1. testEnv: 'default'
2. env: 'default'
3. testEnv: { default: {} }
4. test_settings: { default: {} }

Timespent (in sec): 8 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q10. What is the purpose of the output_folder property in the Nightwatch configuration file?

Status : Answered

Options :

1. Sets the default output folder for test screenshots.


2. Specifies the location of test output reports.
3. Defines the destination for log files.
4. Determines the location of the Nightwatch binary.

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q11. What are the essesntial components of a Nightwatch test script?

Status : Answered

Options :
1. Data setup,user actions,assertions and teardown
2. Page objects,step definitions and data providers
3. Mocks,stubs and spies for unit testing
4. Fixtures,scenarios and steps for BDD-style testing

Timespent (in sec): 18 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q12. In Nightwatch.js, which function is used to open a URL in the browser?

Status : Answered

Options :

1. navigateTo()
2. goTo()
3. openUrl()
4. url()

Timespent (in sec): 8 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q13. Which command is used to simulate keyboard input in Nightwatch?

Status : Answered

Options :
1. sendKeys
2. type
3. pressKey
4. input

Timespent (in sec): 3 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q14. Which of the following is not used to assert the title of the current page?

Status : Answered

Options :
1. assert.titleContains
2. assert.titleEquals
3. assert.titleMatches
4. assert.titleSearch

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q15. Which is not a correct Nightwatch configuarion file?

Status : Answered

Options :

1. nightwatch.json
2. nightwatch.conf.js
3. nightwatch.conf.cjs
4. nightwatch.conf.json

Timespent (in sec): 10 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 0 Unanswered to Incorrect: 1

Q16. Which command is used to take screenshots during Nightwatch test execution?

Status : Answered

Options :
1. captureScreenshot
2. takeScreenshot
3. screenshot
4. saveScreenshot

Timespent (in sec): 4 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q17. What is the purpose of the Nightwatch.js assert.containsText command?

Status : Answered

Options :

1. Checks if an element contains specific text.


2. Asserts that the page contains a particular text string.
3. Verifies if the text input field is not empty.
4. Asserts the presence of a text node within an element.

Timespent (in sec): 13 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q18. Assume you want to test a login form. Which Nightwatch command would you use to submit the form?

Status : Answered

Options :

1. submitForm('form.login')
2. click("submit-button")
3. fillForm('login-form',{username:'user',password:'pass'})
4. waitForElementPresent('#login-form'))

Timespent (in sec): 17 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q19. Which property in the Nightwatch configuration file is used to specify the location of test files?

Status : Answered

Options :
1. testFiles
2. testPath
3. src_folders
4. tests

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q20. Which of the following plugin introduced in version 3 for component testing?

Status : Answered

Options :

1. nightwatch-cucumber
2. nightwatch-html-reporter
3. vite-plugin-nightwatch
4. None of the above

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q21. What is the purpose of the Nightwatch.js "setValue" command?

Status : Answered

Options :
1. To set a value for an input field.
2. To set a value for a variable in the test script.
3. To set a value for a configuration property.
4. To set a value for a constant.

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q22. How do you assert that an element is visible on the page?

Status : Answered

Options :
1. assert.visible('elementId')
2. assert.elementPresent('elementId')
3. checkElementVisible('elementId')
4. Both (A) and (B) are correct

Timespent (in sec): 6 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q23. How can you simulate mouse hover actions in Nightwatch?

Status : Answered

Options :

1. Using the moveToElement command


2. Triggering the mousover event on a specific element
3. Using the moveMouse command with specified coordinates
4. Manually clicking on the element

Timespent (in sec): 12 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q24. How can you create an assertion to confirm a successful login in an application with a login form, where the redirected
URL is a dashboard and the page shows the text 'Welcome,user!' within an element with a class attribute 'success message'?

Status : Answered

Options :
1. assert.textContains('body','Welcome,user!')
2. assert.visible('.success-message')
3. assert.urlContains('/dashboard')
4. All of the above

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q25. What is the command to Nightwatch.js tests using a specific configuration file?

Status : Answered

Options :

1. Use nightwatch --config path/to/config.js


2. Set the --config option when running tests.
3. Define the configuration file path in the Nightwatch configuration.
4. There is no option to specify a configuration file.

Timespent (in sec): 24 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q26. Which Nightwatch.js command is specifically designed for working with XPath selectors?

Status : Answered

Options :

1. xpath()
2. useXpath()
3. elementByXPath()
4. locateByXPath()

Timespent (in sec): 7 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q27. Which command is used to execute a specific test group in Nightwatch?

Status : Answered

Options :

1. "--run-group"
2. "--group"
3. "--execute-group"
4. "--test-group"

Timespent (in sec): 15 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 0 Unanswered to Incorrect: 1

Q28. What are some best practices for writing effective Nightwatch test scripts?

Status : Answered

Options :

1. Use page objects to modularize element interactions.


2. Write small,focused tests with clear assertions
3. Avoid using implicit waits altogether
4. Include detailed commands for each step

Timespent (in sec): 5 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0
Q29. How does Nightwatch handle synchronization between user actions and application state changes?

Status : Answered

Options :
1. It automatically waits for elements to become visible
2. You need to use explicit wait commands like waitForElementVisible()
3. It waits for asynchronous operations to complete before proceeding
4. It relies on implicit waits with a default timeout

Timespent (in sec): 14 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 1 Unanswered to Incorrect: 0

Q30. What is the purpose of the Nightwatch.js "before" and "after" hooks?

Status : Answered

Options :

1. They define setup and teardown actions for the entire test suite.
2. They are used for asynchronous testing.
3. They define preconditions and post-conditions for each test case.
4. They handle browser window management.

Timespent (in sec): 22 Correct to Incorrect: 0 Incorrect to Correct: 0 Incorrect to Incorrect: 0 Correct to unanswered: 0 Incorrect to unanswered: 0
Unanswered to Correct: 0 Unanswered to Incorrect: 1

Your Response Change Pattern: S1


The below table provides the number of times you have changed your responses to the S1 questions and also the nature of those response changes.
CORRECT TO INCORRECT TO INCORRECT TO CORRECT TO INCORRECT TO UNANSWERD TO UNANSWERD TO
INCORRECT CORRECT INCORRECT UNANSWERED UNANSWERED CORRECT INCORRECT

0 0 0 0 0 27 3

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