Prepare for Your First Assignment | Bondar Academy
Course: TestRigor Practice Assignments
Module: Introduction
Instructor: Artem Bondar
Lesson Summary
This lesson introduces the setup for practice assignments using a test application. Follow these steps to get started: Accessing the Test Application Navigate to petclinic.bonderacademy.com in your browser. You will need to: Reset your password: Click on the "Forgot Password" button and enter your email associated with Bonder Academy. Check your email for a reset link, create a new password, and log in to the application. Application Overview Once logged in, you can perform various operations: CRUD Operations: Create, Read, Update, and Delete entities like Owners, Veterinarians, Pet Types, and Specialties. API Interaction: Use the Networking tab to view API requests and responses. Swagger Page: Access the API documentation at petclinic-api.bonderacademy.com/petclinic/swaggerui/index.html . Authorize using the token from the application. Setting Up Test Trigger To create test cases: Create a free Test Trigger account (do not use a corporate account). Create a new test suite (e.g., PetClinicTest ) and enter the application URL and credentials. Create test cases using the login method provided by Test Trigger. Submitting Test Cases After automating your test cases: Navigate to the practice assignment module in Bonder Academy. Submit the unique URLs for each test case executed successfully. Click "Submit All Test Cases" to complete your submission. Wait for feedback on your submissions via email. For questions, reach out in the Slack channel. Good luck!
Video Transcript
All right, starting from this lesson, you will be working on practice assignments. And for the practice assignments, we will use a separate test application. So let me show you how to set this up and how to prepare for the practice assignments. Open the browser and navigate to petclinic.bonderacademy.com. So this is our test application. And when you try to open it, it will require you to log in. And the first thing that you need to do is to reset your password to get access to this account. So you need to use your email that you used in the Bonder Academy to reset the password. So click on the Forgot Password button right here and enter your email. For example, I will use getuseratbonderacademy.com and click Continue. After that, you will receive email with the instructions how to reset this account. So there will be either button or link that you need to click to make a reset. So let me check my email. And I paste the URL in the New Browser tab, like here, and then enter any new password. And repeat it again, like this, and click Reset Password. Okay, password change, then click back to PetClinic Test and log in with this new password. Like this. Did I type it wrong? Mm-hm, mm-hm, mm-hm, how about that? Yeah, now it worked. So this is the test application. Sometimes when you log in it for the first time, you may see the spinner is spinning like for 15, 20 seconds. It's just because the application is hosted on the cloud. And sometimes when nobody use the application, it takes a little time for the API to spin up and serve the traffic. Let me show you around what you can do with this application. So you have Owners, Veterinars, Pet Types, and Specialties. You can do some operations over here. For example, you can create new specialties, you can delete the specialties. For example, you can create specialty tests like this. Save it right here, then go to Veterinars, for example, and add this new specialty to this Veterinar and save it. And then the values are updated. Or on the Owners page, you have a list of the owners. These owners have different pets. You can add visits to those pets, for example, like this. There is a calendar, description, and so on. So different CRUD operations to create, delete, update, and so on. And we will practice different operations with Test Trigger on this application. So what is also nice about it that this application has the back-end API. So if I go to the Networking tab, click over here, and click, for example, on the Owners, you can see application makes the API request to the back-end server. For example, it is owner's call to the API endpoint over here, get request with a status 200. So later in the course, when we're gonna talk about working with APIs in details, this is gonna be useful. And also, application has a Swagger page, is this one. So the address is petclinic-api.bondaracademy.com slash petclinic slash swaggerui slash index.html. So this page represents all available endpoints for the API. And through the Swagger page, you can interact with the API directly. So you can either use Postman or this Swagger page. But to work with the Swagger page, you first need to authorize it. So for example, how to use it? If I try to use, for example, pet types endpoint right here, and click on Try Now and Execute, it will not work because look, we have an error 401, unauthorized. Full authorization is required to access this resource. How to authorize Swagger? So go back to PetClinic application, and then scroll down for any API request a little bit over here in this header section, and you're looking for this authorization header. This is the authorization token, which is a type of bearer. And you need to copy this entire long value, which is the access token to authorize with the API. Then go to the Swagger, click on Authorize, and paste the value of the token right here, and click Authorize, and then Close. That's it. Now you authorize the Swagger page to interact with the API. And if I go back to the same endpoint pet types and click Execute, and successfully, you see status code 200, and we have a list of pet types, cat, dog, lizard, and so on. So that's how you would work with API when we're gonna talk about APIs later in this course. The next step is to set up the Test Trigger test suite to interact with this application. So going back to the Test Trigger, and to perform the practice assignments, you will need to create your own Test Trigger account, a free Test Trigger account. This is important, guys, because if you use your corporate Test Trigger account, and will create the practice assignments in the corporate account, I will not be able to review it, because it will be not visible to the public. If you create a free Test Trigger account, and add your test cases over there, then I will be able to review those test cases publicly. So create a free Test Trigger account, and then create a new test suite. For example, we can call it PetClinicTest, something like this. Then you need to paste the URL to application, which is this one right here. And then enter username and password that you created before. So it's email from Bondar Academy and password that you have updated at the beginning of this video. So it's kituser at bondaracademy.com, and the password for this user. All right, so we don't need to generate any test cases, Ubuntu, Chrome, and create test suite. That's it, so the new test suite is created, and let's create a new test case. I create a new test case, and just for the demo to make sure that everything is set up correctly, I type first test. And as a first step, we need to log in to the account. And Test Trigger has a special command for that, or special method, that will automatically gonna handle the login operation based on the credentials that you saved on the test suite level. And this method is login. That's it, you don't need to do anything else. And then let's do some simple operation. For example, click on the Owners menu right here. And I type click on Owners, click on Owners, yeah, click on Owners. And let's run this test to make sure that it is working. All right, and test was executed successfully. So you can see Test Trigger was able to handle the logging process right here, entered username, password, and successfully opened test application, so everything works fine. Now, how would you submit test cases for the review? You go back to the Bondar Academy, and in the first module with practice aside, you can submit a test case for the review. And in the first module with practice assignments, navigate to the input fields, it will be your first practice assignment. Here we have a short description, what and how should be done. One more time, reminder that you should use free Test Trigger account, this is super important. This is the name of the test cases that you need to create in the Test Trigger and automate. The reference URL to the lesson related to input fields, if you need to refresh the knowledge related to the input fields. And here are the three test cases. Update pet type, cancel pet type, and pet type name is required validation. So these are the step of the test case. So you go to the Test Trigger and create each individual test case for every test. So you click on Add Test Case, Create a New Test Case, and it will give you a unique test case and unique URL per test case. So let's say that you automated this test case number one, and you have number two and number three. So you have automated this test number one. In Test Trigger, you executed it successfully. Then you need to click on this View Execution button in the test case. So click on View Execution, and it will open the entire test case with all the steps that are executed as independent tab in the browser. Then you take this URL, Ctrl C, going back, and paste it over here, Ctrl V, like this. And so you do this for every test case. Test case number one, test case number two, and submit test case number three. For every test case, this should be a unique URL. And after you've done all this, you click on the Submit All Test Cases, and that's it. So your submission is completed. And now you just wait for the review. Right now, it's shown as pending as a review. When I review the test cases and provide you the feedback, you will get email notification. Then you can go back to the platform right here and check the per test case review with my feedback on your implementation. So that's pretty much it. If you have any questions, let me know in the Slack channel. And other than that, good luck with your first practice assignment.