LogoLogo
  • 🏹Lời nói đầu
  • 1. Introduction
  • 💡1.1. Các hoạt động trong 1 vòng kiểm thử
  • 💡1.2. Các cách tiếp cận khi viết automation test
  • 🔮1.3. Con đường phát triển của một kỹ sư kiểm thử phần mềm
  • ✅1.4. Quy trình của một dự án kiểm thử tự động
  • 🤖1.5. Các Framework trong kiểm thử tự động
  • 💎1.6. Selenium Java Basic mindmap
  • 📜1.7. Test cases
  • 2. Setup new maven project
    • ☕2.1. Install Java JDK
    • ☕2.2. Setup Maven
    • ☕2.3 Add Maven Dependencies
    • ☕2.4. Java practices
      • ⌨️2.4. Java Coding Practice
      • 📔Java Stream
        • 🍀Java 8 Stream - Xử lý Array, List nhanh gọn
          • 🛵1. find person that has mass >100
            • 🚜2. total mass of characters
            • 🚍3. total height of characters
            • 🚲4. get list name of person
            • 🛴5. find max mass person
            • 🚒6. find smallest person
            • 🚂7. sort by name
            • 🏎️8. sort by mass
      • 📁Logging
        • 🍏Log4j 2
  • 3. browsers
    • 🚚3.1. What is WebDriver?
    • 3.2. Chrome Browser
      • 🕸️Open Chrome Browser
        • Capture Performance metrics in chrome with selenium 4.0
        • Open Chrome Browser in Mobile mode
        • How to set specified chrome version to start
        • Interception Network tab
        • Open Chrome Browser - Headless mode
      • Fake GeoLocation
    • 3.3. Open Firefox Browser
      • Open Firefox Browser - Headless mode
    • 3.4. Open Edge Browser (Chromium)
    • 3.5. Open Safari browser
  • 🌞4. Inspect locators
  • 4.1. Understand HTML structure
  • 4.2. Locator Table
  • 4.3. Standard Naming Convention for UI Elements to Use with Selenium Locators
  • 4.4. FindElement
  • 4.5. Locating elements with XPath axis
  • 🍏5. Test Cases
    • 5.1. Form Authentication
    • 5.2. Drop Down
    • 5.3. Checkboxes
    • 5.4. Hyperlink
    • 5.5. Web Table
    • 5.6. JavaScript Alert
    • 5.7. Nest Frames
    • 5.8. Context menu
    • 5.9. Hover
    • 5.10. Broken Link
    • 5.11. Click Element via JS
    • 5.12. Wait for loading
    • 5.13. Pass params though XPath string
    • 5.14. Date picker
    • 5.15. Capture Screenshot
  • 6. TestNG
    • Annotations
    • testng.xml
      • parameter
      • Filter by group
      • Listener
      • Parallel
  • Capture screenshot when test failed
  • 🍐7. Page Object Model
    • What is?
    • Approach 1: Using String for exposing elements
    • Approach 2: Using By for exposing elements
    • Approach 3: Using PageFactory for exposing elements
    • Todo MVC sample page
      • page
      • supports
      • testcases
  • 8. Circle CI - Github Actions
    • Integrate Circle CI
  • 🥞9. Owner methods
    • Selenium owner methods
  • Interview
    • How I interview tester
      • 35 Challenging Interview Questions for Testers
    • Git căn bản
    • VSCODE
Powered by GitBook

Copyright @testingvn.com

On this page

Was this helpful?

1.7. Test cases

Previous1.6. Selenium Java Basic mindmapNext2.1. Install Java JDK

Last updated 1 year ago

Was this helpful?

TC01: Form Authentication :

  1. Open browser

  2. Navigate to

  3. Fill in username with tomsmith

  4. Fill in the password with SuperSecretPassword!

    1. Click on Login button

    2. And the home page is appear

TC02: Checkboxes :

  1. Open browser

  2. Navigate to

  3. Check on checkbox1

  4. Verify checkbox1 is checked

  5. Check on checkbox2

  6. Verify checkbox2 is checked

TC03: DropDown :

  1. Open browser

  2. Navigate to

  3. Select "option 1"

  4. Validate "option 1" is selected

  1. Open browser

  2. Click on "200"

  3. Then "200 status code" page appear

  4. Click on "go here"

  5. Click on "301"

  6. Then "301 status code" page appear

  7. Click on "go here"

  8. Click on "404"

  9. Then "404 status code" page appear

  10. Click on "go here"

  11. Click on "500"

  12. Then "500 status code" page appear

  13. Click on "go here"

  1. Open browser

  2. Focus on table 1

  3. The person who has largest due is "Doe Jacson"

  1. Open browser

  2. Verify Text present:

          LEFT

          RIGHT

          MIDDLE

          BOTTOM

TC07: JavaScript Alert

  1. Open browser

  2. When click on "Click For JS Alert" button

  3. Then the Popup is displayed.

TC08: Hover elements

  1. Open browser

  2. When user hover on user 1 avatar

  3. Then the "name: user1" label is present.

TC09: Right click - Context menu

  1. Open browser

  2. Right click on square box

  3. The context menu is displayed

TC10: Page Object Model - Body Mass Index Page

  1. Open browser

  2. Select metric unit tab

  3. Fill calculator with age, gender, weight, height

  4. Validate result is correct

TC11: Page Object Model- Todo MVC : Verify user able create a new todo

  1. Open browser

  2. Enter a new todo name

  3. Verify a todo added

TC12: Page Object Model- Todo MVC : Verify user able mark complete a todo

  1. Open browser

  2. Mark completed a exist todo

  3. Verify a todo is marked completed

TC13: Page Object Model- Todo MVC : Verify user able delete a todo

  1. Open browser

  2. Delete a exsit todo

  3. Verify a todo deleted

TC14: Page Object Model- Todo MVC : Verify user able update a todo name

  1. Open browser

  2. Update a existed todo name

  3. Verify a todo updated name successfully

TC04: Hyper link :

Navigate to

TC05: Web Table:

Navigate to

TC06: Frame :

Navigate to

Navigate to

Navigate to

Navigate to

Navigate to

Navigate to

Navigate to

Navigate to

Navigate to

Login successful with valid credentials
https://the-internet.herokuapp.com/login
Check to a box
https://the-internet.herokuapp.com/checkboxes
Select option
https://the-internet.herokuapp.com/dropdown
Hyperlink - link text
https://the-internet.herokuapp.com/status_codes
Validate largest due person from a table
https://the-internet.herokuapp.com/tables
Nested frames
https://the-internet.herokuapp.com/nested_frames
https://the-internet.herokuapp.com/javascript_alerts
https://the-internet.herokuapp.com/hovers
https://the-internet.herokuapp.com/context_menu
https://www.calculator.net/bmi-calculator.html
https://todomvc.com/examples/vanillajs/
https://todomvc.com/examples/vanillajs/
https://todomvc.com/examples/vanillajs/
https://todomvc.com/examples/vanillajs/
📜
Page cover image