Thursday, October 22, 2020

Another fun cases to automate in Wordpress

 TC1: Validate all plans in plan and pricing page

  • Go to plan and pricing page
  • Validate availability of Personal plan
  • Validate availability of Premium plan
  • Validate availability of Business plan
  • Validate availability of eCommerce plan
  • Validate availability of Configure plan

TC2: Validate login functionality
  • Go to login page
  • Read username and password from a text file
  • Enter username and password
  • Validate successful login attempt

TC3: Validate logout functionality
  • Go to profile page
  • Try to logout 
  • Validate successful logout attempt

tfw_play.robot (Robot test suite file)
  • Add resource files
  • Configure suite setup and teardown
  • Perform TC1, TC2 and TC3

tfw_initial.robot (Robot resource file)
  • Provide site URL
  • Open browser
  • Set selenium times
  • Maximize window size

tfw_header_bar.robot (Robot resource file)
  • Get all locators
  • Navigate menu links

tfw_plan_price_page.robot (Robot resource file)
  • Get all plan type locators
  • Validate presence of different types of plans in the page

tfw_login_page.robot (Robot resource file)
  • Get all locators
  • Read username and password from text files
  • Provide username and password and try to login

tfw_loggedin_page.robot (Robot resource file)
  • Get locators
  • Verify successful login attempt
  • Try to logout

tfw_loggedout_page.robot (Robot resource file)
  • Get locators
  • Verify successful logout attempt

user_name.txt (Text file to read)
  • Provide username

user_password.txt (Text file to read)
  • Provide password

Git repository link: https://github.com/wasiqul

1 comment: