Skip to content

Commit d9838de

Browse files
committed
readme updated and updated the testng xml restful ecommerce
1 parent 9cf9fdc commit d9838de

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This project is the outcome of my self-learning about the API Testing Automation
1515
- [Lombok](https://projectlombok.org/) has been used to generate Getter and Setters automatically for post body requests.
1616
- FAKE Rest APIs on [Reqres.in](https://reqres.in/) has been used for testing.
1717
- End to End scenarios have been added for the [restful booker APIs](https://restful-booker.herokuapp.com/apidoc/index.html).
18+
- Happy and Sad Path Scenarios have been added for the [restful-ecommerce APIs](https://github.com/mfaisalkhatri/restful-ecommerce)
1819

1920
## :hammer_and_wrench: Talking more about the Scenarios Covered in this project:
2021
You will get the answers to the following questions and its respective working code example with [Playwright Java](https://playwright.dev/java/docs/api-testing#writing-api-test) framework in this repository:
@@ -32,10 +33,14 @@ You will get the answers to the following questions and its respective working c
3233
- How to use `Lombok` for writing the builder pattern code?
3334
- How to use Builder Pattern for test data generation using [Data Faker](https://github.com/datafaker-net/datafaker)?
3435
- How to write end-to-end api tests?
36+
- How to write Happy Path scenarios for the APIs?
37+
- How to write Sad Path scenarios for the APIs?
3538

3639
## :writing_hand: Blog Links
3740
- [What is API Testing?](https://mfaisalkhatri.github.io/2020/08/08/apitesting/)
3841
- [How to perform End to End API Testing using Playwright with Java and TestNG](https://medium.com/@iamfaisalkhatri/how-to-perform-end-to-end-api-testing-using-playwright-with-java-and-testng-26b318927115)
42+
- [Playwright Java API Testing | How to test POST requests?](https://medium.com/@iamfaisalkhatri/playwright-java-api-testing-how-to-test-post-requests-4c9102d3ab03)
43+
- [Playwright Java API Testing | How to test GET requests?](https://medium.com/@iamfaisalkhatri/playwright-java-api-testing-how-to-test-get-requests-c036b984cc6d)
3944

4045
## :question: Need Assistance?
4146

test-suite/testng-restfulecommerce.xml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<include name="testShouldNotFetchOrder_WhenNoOrderExistsForOrderId"/>
1212
<include name="testShouldNotFetchOrder_WhenNoOrderExistsForUserId"/>
1313
<include name="testShouldNotFetchOrder_WhenNoOrderExistsForProductId"/>
14+
<include name="testShouldNotUpdateOrder_WhenTokenIsMissing"/>
15+
<include name="testShouldNotUpdateOrder_WhenOrderIdIsNotFound"/>
16+
<include name="testShouldNotUpdateOrder_WhenOrderDetailsAreNotProvided"/>
17+
<include name="testShouldNotUpdateOrderWithInvalidToken"/>
1418
</methods>
1519
</class>
1620
</classes>

0 commit comments

Comments
 (0)