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 23, 2019 in Selenium by Yogita
1,173 views

1 answer to this question.

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

Hope this helps!

Check out this Automation Testing course and write write automation test script easily.

answered May 23, 2019 by Farah

Related Questions In Selenium

0 votes
1 answer
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, 2019 in Selenium by Anvi
• 14,150 points
900 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, 2019 in Selenium by Neelam
1,498 views
0 votes
1 answer
0 votes
1 answer

What are the software requirements to run a Cucumber web test?

Hi Govind, to run a Cucumber Web ...READ MORE

answered Aug 26, 2019 in Selenium by Abha
• 28,140 points
5,293 views
0 votes
2 answers

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

Hey, try using following code command to ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,140 points
1,434 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 20, 2018 in Selenium by Nabrupa
6,335 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP