Techno Study Testing Project 4
Test Case 1: Registrations Test
➢ Go to https://demo.nopcommerce.com/register?returnUrl=%2F
➢ Click on the Register link
➢ Enter First Name and Last Name
➢ Select the date of birth sections with select
➢ Enter your email
➢ Enter password and password confirm
➢ Click on the Register button
➢ Confirm that you have registered successfully.
Test Case 2: Login Test
➢ Click on the Login button
➢ Enter the Email and password you registered with
➢ Click on the LOG IN button
➢ Confirm that you have logged in successfully.
Test Case 3: Data Provider Login
➢ Click on the Login button
➢ Get valid and invalid Email and password from the Data Provider method
➢ Click on the LOG IN button
➢ Verify whether you have logged in successfully.
Test Case 4: Tab Menu Test
➢ List the names of the products in the tab menu
➢ Locate the tab menu list
➢ Verify that the elements of the list you have located include the products in the tab menu.
Test Case 5: Order Gifts Test
➢ Click on gifts from the tab menu
➢ Choose one of the physical gifts randomly
➢ On the page that opens, fill in the recipient name, sender name and message sections.
➢ Click on Ad To Cart
➢ Confirm that the product has been added to the cart
Test Case 6: Order Computer Test
➢ Go to Computers in the tab menu
➢ Click on Desktops from Drop down
➢ Select Build your own computer from the page that opens.
➢ Select a random RAM
➢ Select a random HDD
➢ Click AD TO CART
➢ Verify that the product has been successfully added to the cart
Test Case 7: Parameterized Search Test
➢ Enter “Adobe Photoshop CS4”, which you got from the xml, into Search.
➢ Click on the Search button
➢ Verify that the product title on the page that opens contains this text
• Projeyi Selenium ve TestNG kullanarak hazırlayınız
• Projenizde DependsOnMethod,Priority kullanarak testleri birbirine bağımlı hale getiriniz(gerekli olanları).
• Parameters kullanınız.
• Test Klaslarınızı XML file’dan da çalıştırılabilir hale getiriniz.
Test Case 1: Registrations Test
➢ https://demo.nopcommerce.com/register?returnUrl=%2F Sitesine gidiniz
➢ Register linkine tıklayınız
➢ First Name ve Last Name giriniz
➢ Doğum tarihi kısımlarını select ile seciniz
➢ Email giriniz
➢ Password ve password confirm giriniz
➢ Register butonuna tıklayınız
➢ Başarılı bir şekilde kaydolduğunuzu doğrulayınız.
Test Case 2: Login Test
➢ Login butonuna tıklayınız
➢ Kaydolduğunuz Email ve password giriniz
➢ LOG IN butonunna tıklayınız
➢ Başarılı bir şekilde login olduğunuzu doğrulayınız.
Test Case 3: Data Provider Login
➢ Login butonuna tıklayınız
➢ Geçerli ve geçersiz Email ve password’u Data Provider metodundan aliniz
➢ LOG IN butonunna tıklayınız
➢ başarılı bir şekilde login olup olmadığınızı doğrulayınız.
Test Case 4: Tab Menu Test
➢ Tab menudeki ürünlerin isimlerini liste atiniz
➢ Tab menu listesini locate ediniz
➢ Locate ettiginiz listenin elemanlarinin tab menudeki ürünleri içerdiğini doğrulayınız.
Test Case 5: Order Gifts Test
➢ Tab menuden gifts’e tıklayınız
➢ Physical giftlerden birini random olarak seciniz
➢ Açılan sayfada recipient name, sender name ve message bölümlerini doldurunuz
➢ Ad To Cart’a tıklayınız
➢ Urunun sepete eklendiğini doğrulayınız
Test Case 6: Order Computer Test
➢ Tab menudeki Computers üzerine gidiniz
➢ Drop down dan Desktops’a tıklayınız
➢ Açılan sayfadan Build your own computer’i seciniz
➢ Random bir RAM seciniz
➢ Random bir HDD seciniz
➢ AD TO CART’a tıklayınız
➢ Urunun başarılı bir şekilde sepete eklendiğini doğrulayınız
Test Case 7: Parametreli Search Test
➢ Search’e xml den aldiginiz “Adobe Photoshop CS4” giriniz
➢ Search butonuna tıklayınız
➢ Açılan sayfadaki urun baslığının bu text’I içerdiğini doğrulayınız