Skip to content

DianPermana/Practical-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Practical-Test / Written Assignment

1. Q1 Create a test scenario which has multiple test cases for the following features:

1. As a user, I want to create a public gist.	
2. As a user, I want to edit an existing gist.	
3. As a user, I want to delete an existing gist.	

The test cases should include as much detail as possible.

Detail Can be check here : https://gist.github.com/DianPermana/00fd30b7c5065875c2337ad6ffbc6d1e

2. Q2 Go to https://petstore.octoperf.com/actions/Catalog.action and report at least 3 bugs.

Feature : Search feature
   Given open https://petstore.octoperf.com/actions/Catalog.action
   And Input "Birds" on search menu
   When I click Search button
   Then should be displayed all birds product
   
   **Result   : Not Appear product "Birds"**
   **Expected : Appear all product "Birds"**
   
Feature : Refresh page
   Given After scenario 1
   When I refresh or click Reload this page
   Then Back to Main page
	
   **Result   : Still on the same page > Not Appear product "Birds"**
   **Expected : Back to main page or page refresh properly**
  
 Feature : Add to cart
   Given I am on "https://petstore.octoperf.com/actions/Cart.action"
   And I Click "Fish" Categories 
   And I Click "FI-SW-01" Product ID with "Anglefish"name
   When click button Add to cart "FI-SW-01" with description "Large Angelfish"
   Then Should be succesfully add to chart 
     
   **Result   : Failed add to cart**
   **Expected : succesfull add to cart**
	
 Feature : flow transaction
   Given I have one product on shopping cart
   And Input Quantity from 1 to 9999
   When I Click button Update Cart
   Then the "Description In Stock?" should be true
	
	       | Item ID  | Product ID	              | Description In Stock?	 | Quantity	| List Price     | Total Cost
    Result   : | FI-SW-02 | Toothless Tiger Shark     |	false	                 | 9999         | $18.50	 | $184.981.50
    Expected : | FI-SW-02 | Toothless Tiger Shark     |	true	                 | 9999         | $18.50	 | $184.981.50

Evidence Result testing

Minimal.3.bugs.mp4

3. Q3 Below is a public API doc listing a collection of API endpoints related to Countries. https://restcountries.com/#api-endpoints-v3-all

Script test can be check here : https://github.com/DianPermana/Practical-Test/blob/main/Rest_Countries.jmx

Results API testing :

Restcountries.on.JMeter.mp4

I use JMeter to create scenario testing, and divide it into two categories of scenario tests, namely positive cases and negative cases. Json Extractor as main sampler to extract data from response end point (https://restcountries.com/v3.1/name/{name}) and then store for all of the next process on other end point, so more easy for product team especially QA. if we want to change which country want to check. some end point issue especially for currency end point (https://restcountries.com/v3.1/currency/{currency}). The interesting thing about this testing is that I'm trying to create modular test scripts, so that by changing only 1 parameter, which is the country name, all endpoints can be run sequentially.

4. Q4 Are you familiar with Automation testing?

If yes, create an automation script using any framework of your choice for the below scenario:
1. Go to https://www.cermati.com/gabung
2. Enter all required fields (cover only positive cases) and register your account If no, canyou code in python or Javascript?

Yes, I have experience. Since the task automation is relatively simple, I opted to use JMeter as it is easier to use within a set framework. I am also accustomed to using pytest for automation, which can be viewed here: https://github.com/DianPermana/Automation-Testing-BDD

Results Automation testing :

Automation.Selenium.On.JMeter.mp4

Tech stack :

  1. java 17.0.5 2022-10-18 LTS
  2. Selenium 4
  3. Chrome driver.exe Version 112.0.5615.138 (Official Build) (64-bit)
  4. JMeter 5.5