We have realized two functions that we have included in the “Functions to Test” section. Let’s run it and see the result.
Here is our Github login screen.
Now let’s see if these functions work as we want by adding assertion. In the scenarios tested in the function tests, the responses to the requests made to the server should be examined in detail and it should be checked whether the expected answers have actually been received. Let’s add Response Assertion to both the home page and login page as follows. It can be added by right-clicking (Add> Assertions> Response Assertion) this menu.
Let’s check if it says “Github” in the Home Response Assertion section and if it says “How people build software” in the Login Response Assertion section.
When we run JMeter, our result is as follows.
The homepage found the text “Github” and gave us the green color. Since “How people build software” cannot be found on the login page, we see that the relevant step is colored red.
We wrote our Github functional test on JMeter, now let’s see how we will run the functional test on Loadium.
How do we run functional tests on Loadium?
If you are not familiar with JMeter test in Loadium, I recommend you to read the get started with loadium section.
After clicking the New Test button, a screen like the one below will come up. If we choose Sandbox Test here, we will test Loadium without falling from our right of 15 tests 🙂
You can access the information about this screen at https://loadium.io/test/new/jmeter