For given test scenarios, how can I write automation test script?

0 votes

I want to write automation test script for given test scenario. Can anyone suggest how to write test script using Cucumber?

As an Admin User,
I would like to change the password of other user's accounts.
Feature: Update password
  Scenario: Admin user can update the user password
    Given I am in the HR system with an Admin account
    When I update password of another user
    Then I receive a message for updating password successfully
    And user's password is updated to the new password
May 22 in Selenium by Yogita
15 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hi Yogita, for this test scenario you can write following test case in cucumber:

Feature: Update password
  Scenario: Admin user can update the user password
    Given I am in the HR system with an Admin account
    When I update password of another user
    Then I receive a message for updating password successfully
    And user's password is updated to the new password
answered May 22 by Farah

Related Questions In Selenium

0 votes
0 answers

How to write a code for combo box and how can i select a country from country dropdown?

Hi, I want to select a country from ...READ MORE

Mar 14 in Selenium by ch Praveen
346 views
0 votes
1 answer

How can I write test scripts in Selenium with python?

Hey Khushi, writing test scripts in Selenium ...READ MORE

answered May 9 in Selenium by Anvi
• 8,840 points
20 views
0 votes
1 answer

Can anyone explain how to write Selenium script for Flash Testing?

Hey Wasin, to understand how Selenium scripts ...READ MORE

answered May 23 in Selenium by Neelam
24 views
0 votes
1 answer

How can I make WebDriver wait for few seconds?

Well, just try increasing the amount of ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,050 points
218 views
0 votes
1 answer

How can we take screenshots of tests in Selenium 2 using C#

We can take screenshots using below function ...READ MORE

answered Mar 23, 2018 in Selenium by nsv999
• 5,050 points
117 views
0 votes
1 answer
0 votes
1 answer

How to take Screenshots in BDD cucumber framework in selenium

Check this out QAF. This can be done by ...READ MORE

answered Apr 26, 2018 in Selenium by king_kenny
• 3,590 points
1,469 views
0 votes
1 answer

How can I search for a video on YouTube?

I will tell you step by step ...READ MORE

answered Dec 19, 2018 in Selenium by Nabrupa
89 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.