A solid pedagogical exercise that effectively translates fundamental testing principles into a functional automated suite using industry-standard tools. It provides a clear, structured blueprint for students to master the essential mechanics of RESTful API validation.
Approfondir
Prérequis
- Pas de données disponibles.
Prochaines étapes
- Pas de données disponibles.
Approfondir
Waste Collection Scheduling System Testing with Java & RestAssuredIndexé :
No description provided by the creator.
Hello everyone this is Jay um today I'm here to my CA topic for CSC 378 subjectuling system using rest ratio uh the task overview is to set up a mock API for the given system and use the get postput and delete request for retrieving the data creating the data and updating and removing the data uh For for this task I have used Java 17 and distrib for sending the API request and JUnit for test cases and JSON server for the mock API and M for managing the dependencies of rest and JUnit. Whenever we send a SH schedule with the get we will we will get the data from the JSON file.
Whenever we do the get uh we will get 200 status code. It means that data is successfully fetched from the server and whenever we do the post request we will get 2.1 created. Basically the post request is to create a new entry in the database.
Put whenever we we do a put request we will get 200 status code. It will to update a specific data and whenever we do the delete it will delete the entry and we will whenever it's success it give the status code as 200.
This is my JSON file uh uh which consist of attributes like ID, schedule ID, area name, pick up date and W type and schedule status.
For running this JSON file, we use JSON server file name.
Here you can see it running at local host 20,000 with port number 30,000.
Okay. Um before R is a annotation which is in J to run before the or before all the test cases runs. Here we use the base which I shown in the VS code.
This is a method that you to get the responses of all data using the get method. Let's run it.
See it given the data of which are parent in the VS code.
This is a test case where we used for creating a new entry in a table with ID 5. If you see here, we don't have the ID number as four five.
Let's create the record with ID number five.
See if you see here it is success.
See data is also successfully added to it.
These are the variations like is it matching with the ID equal to five like that.
This is the put method test case which is used for updating the data. Here I am updating the record number five from pending status to completed status.
See see it's completed.
This is how we update the data in last step.
And let's go for reading the data.
We are going to the data delete the data of record five here.
See it's deleted.
Uh this is all about my s topic for the CS8 subject. Thank you for giving this opportunity.
Vidéos Similaires
Ubuntu Touch Q&A 190
UBports
241 views•2026-05-17
Learning k8s ep. 3 - The end of the VM
devcentral
102 views•2026-05-15
Iterators and Generators: Real Use Cases
jsmentor-uk
188 views•2026-05-17
TCS NQT Coding Questions Solution (One Shot) | TCS NQT Preparation 2027 | TCS Actual PYQ 2026
knacademy20
2K views•2026-05-17
The 4 Bit AI Training Trick
explaquiz
414 views•2026-05-19
Image to 3D World Workflow 👀
badxstudio
843 views•2026-05-16
Why Learn Algorithms in the AI Era
bitsandproofs
245 views•2026-05-17
NFA - Transition Diagram and Transition Table
nesoacademy
198 views•2026-05-19











