NightWatch Assessment
NightWatch Assessment
com)
Status : Pass
Assessment Date : 17-05-2024 03:00:32 (GMT+05:30)
Performance Level : High
90.00 H
Your Performance
Percentage Category
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
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
S1
(NightWatch 27.00 5:13 90.00% 90.00% 30 30 30 27 3 0 0
Group)
Note:The percentage (%) and accuracy below the prescribed values (60 %) are shown in red color
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.
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.
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.
MARKS SCORED BY YOU YOUR SECTION PERCENTAGE YOUR SECTION ACCURACY TIME SPENT BY YOU (IN MINS)
Note:The percentage (%) and accuracy below the prescribed values (60%) are shown in red color
Question wise Analysis
Correct, 27
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 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
Status : Answered
Options :
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 :
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
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
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 :
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
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 :
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
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 :
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 :
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 :
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
0 0 0 0 0 27 3