Skip to content

Latest commit

 

History

History
144 lines (126 loc) · 4.51 KB

README.md

File metadata and controls

144 lines (126 loc) · 4.51 KB

Selenium Java Foundation Course

Objectives

Repo này chứa những bài tập và phần cấu hình sẵn cơ bản để bắt đầu làm việc với Selenium.

What you should already know

  • Working with IDEs - IntelliJ
  • Java programing fundamentals
  • Testing fundamentals(test case, test plan, test suite ...)

Setting up the development environment

  • Java

    • Cài đặt Java JDK
    • Thiết lập biến môi trường JAVA_HOME
    • Cho Windows 7
    • Cho Windows 10
    • Cho Linux
    • Cho MAC OS
      From OS X 10.5, Apple introduced a command line tool (/usr/libexec/java_home) which dynamically finds the top Java version specified in Java Preferences for the current user.
      
      Open ~/.bash_profile in any text editor and add:
      
      {% highlight bash %}
      export JAVA_HOME=$(/usr/libexec/java_home)
      {% endhighlight %}
      
      
      Save and close the file.
      
      Open a Terminal and run the source command to apply the changes:
      
      {% highlight bash %}
      source ~/.bash_profile
      {% endhighlight %}
      
      
      Now we can check the value of the JAVA_HOME variable:
      
      {% highlight bash %}
      echo $JAVA_HOME
      {% endhighlight %}
      
      The result should be the path to the JDK installation:
      {% highlight bash %}
      /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
      {% endhighlight %}
      
  • Download apache-maven-3.6.3.

    • Sau đó giải nén file zip.
    • Thêm đường dẫn your-dir/apache-maven-3.6.3/bin vào biến PATH

Test case:


  1. Login successful with valid credentials

  1. Check to a box

  1. Select option

  1. Hyperlink - link text
  • Open browser
  • Navigate to https://the-internet.herokuapp.com/status_codes
  • Click on "200"
  • Then "200 status code" page appear
  • Click on "go here"
  • Click on "301"
  • Then "301 status code" page appear
  • Click on "go here"
  • Click on "404"
  • Then "404 status code" page appear
  • Click on "go here"
  • Click on "500"
  • Then "500 status code" page appear
  • Click on "go here"

  1. Validate largest due person from a table

  1. Nested frames

  1. JavaScript Alerts

  1. Hover elements

  1. Right click - Context menu

  1. Page object model

  1. Verify user able create a new todo list