{"id":4370,"date":"2021-03-01T15:14:38","date_gmt":"2021-03-01T09:44:38","guid":{"rendered":"http:\/\/artoftesting.com\/?p=4370"},"modified":"2023-04-29T21:02:04","modified_gmt":"2023-04-29T15:32:04","slug":"api-testing-testsigma","status":"publish","type":"post","link":"https:\/\/artoftesting.com\/api-testing-testsigma","title":{"rendered":"API Testing with TestSigma"},"content":{"rendered":"\n<p>When you are creating a Web Service, you need to ensure that your REST APIs work well for all your Test Cases. RESTful APIs use HTTP requests such as GET, PUT, POST, DELETE, etc. to send and receive data. If there is any error, the server won\u2019t be able to fetch the data for you and you will be served with an error code. Thus, performing API Testing should be on your priority list if you are creating a web service using REST APIs.&nbsp;<\/p>\n\n\n\n<p>In this article, we are going to demonstrate how you can use the TestSigma tool to perform testing of RESTful APIs or <a href=\"http:\/\/artoftesting.com\/what-is-a-web-service\">Web Services<\/a>. TestSigma tool provides a seamless experience to developers allowing them to create Test Steps in natural language. It allows you to test Response components such as Status Codes, Header, and Body of various kinds of requests such as GET, PUT, POST, DELETE, MODIFY, etc.<\/p>\n\n\n\n<p>Without any further ado, let\u2019s dive deep into performing API Testing with TestSigma Tool. In this article, we will be using <a href=\"https:\/\/jsonplaceholder.typicode.com\/\">JSONPlaceholder<\/a> which is an online service providing fake data for your RESTful API Testing.<br><br><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-flat ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Content<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\/#Preconditions\" title=\"Preconditions\">Preconditions<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\/#Create_a_Project\" title=\"Create a Project\">Create a Project<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\/#Creating_a_Test_Case\" title=\"Creating a Test Case\">Creating a Test Case<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\/#Executing_the_Test_Case\" title=\"Executing the Test Case\">Executing the Test Case<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\/#Analysing_the_Results\" title=\"Analysing the Results\">Analysing the Results<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Preconditions\"><\/span><strong>Preconditions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In order to use TestSigma tool for your API Testing, you need to have an account with TestSigma. You can <a href=\"https:\/\/testsigma.com\/signup\" target=\"_blank\" rel=\"noreferrer noopener\">sign up here<\/a> to create a Free Trial Account.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/LWTiPdPil8-AegvBf48Y7ODpUZ9PZQkW6JY79QqBWogmnUBLklgHedOI8nUD9ogrxnFh61J2Ak5cummVjL8ujLzp3rOSX_C9LFBD726y-rVqqi2Hl70PRQZqsWN82h1bt4eWke2I\" alt=\"Testsigma signup\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Some Important Resources<\/strong><\/li>\n<\/ul>\n\n\n\n<p>In order to get started with the API Testing, we will be using some fake data using a free online service called <a href=\"https:\/\/jsonplaceholder.typicode.com\/\">JSONPlaceholder<\/a>. This is very useful for inspection. In the table below, we have specified some URLs for requests and the total number of json objects that would be returned as part of the response for each URL.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\">\/posts<\/a><\/td><td>100 Items<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/users\">\/users<\/a><\/td><td>10 Items<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/photos\">\/photos<\/a><\/td><td>5000 Items<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/comments\">\/comments<\/a><\/td><td>500 Items<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/todos\">\/todos<\/a><\/td><td>200 Items<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/albums\">\/albums<\/a><\/td><td>100 Items<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Some Important Routes<\/strong><\/li>\n<\/ul>\n\n\n\n<p>We will be using routes similar to the ones mentioned in the below table throughout this example to perform API Testing.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\">https:\/\/jsonplaceholder.typicode.com\/posts<\/a>&nbsp;&nbsp;&nbsp;&nbsp;<\/td><td>It will return a response which will contain 100 posts.<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/posts?userId=1\">https:\/\/jsonplaceholder.typicode.com\/posts?userId=1<\/a>&nbsp;&nbsp;&nbsp;&nbsp;<\/td><td>It will return a response which will contain all the posts for the user with ID = 1.<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\/1\">https:\/\/jsonplaceholder.typicode.com\/posts\/1<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/td><td>It will return a response which will contain the post with ID = 1.<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\/1\/comments\">https:\/\/jsonplaceholder.typicode.com\/posts\/1\/comments<\/a>&nbsp; &nbsp;&nbsp;<\/td><td>It will return a response which will contain comments of the post with ID = 1.<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/comments\">https:\/\/jsonplaceholder.typicode.com\/comments<\/a>&nbsp;&nbsp;&nbsp;&nbsp;<\/td><td>It will return a response which will contain all the comments (500 in total).<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/comments?postId=1\">https:\/\/jsonplaceholder.typicode.com\/comments?postId=1<\/a><\/td><td>It will return a response which will contain all the comments for Post with ID = 1.<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/users\">https:\/\/jsonplaceholder.typicode.com\/users<\/a>&nbsp;&nbsp;<\/td><td>It will return a response which will contain all the 10 user\u2019s details.<\/td><\/tr><tr><td><a href=\"https:\/\/jsonplaceholder.typicode.com\/users\/1\">https:\/\/jsonplaceholder.typicode.com\/users\/1<\/a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/td><td>It will return a response which will contain the details of the user with ID = 1.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Create_a_Project\"><\/span><strong>Create a Project<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To start with, let\u2019s create a project for API Testing.<\/p>\n\n\n\n<p>On the top left corner of your dashboard, click on the + icon and then click on the project button.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/QLfobnpCXssFVyx4gMMj3xeQOpUHRH-AuWfdgkTq7yIgVD_EMRnUqsivrEzSH8iHKS3XKrytPsUiBBxOxwBUzbJcnAz5vVXr6xORkLLfbsOd3uzNEYmFY6DvwkumB5pXo_wjpW2J\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<p>After that, choose a name for your project and for the project type, select \u201cRESTful Web Service\u201d. Click on the create button to create the project.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/3WIJXEmOmeoD_aIgHU0jDn0R-AfLJHsDBm4xzPv-aFDw3CUI0HF4r_sRgddjt9E3s1lrIg_DL33qmyTUeVQvtG7EQxLxcYDoI9RdwvmxeNBZ6OLKGb9yLNieyx8bkOSvC3FFRTiZ\" alt=\"Testsigma create a project\"\/><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Creating_a_Test_Case\"><\/span><strong>Creating a Test Case<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After you have created your project, we can now move on to the next step which is creating a Test Case.<\/p>\n\n\n\n<p>To create a Test Case, in the left context menu, under Test Development, select the Test Cases option. And then, click on the \u201c+ Test Case\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/-M3-r37NA1kxEXJ2WkF5VbGJZgXDye-owf9IXz0JOZAOJ2QCczMRAuEB2B20IBhaV2RkHYIOQs-muJLTexNyr5V1bH_-wRmUcVeLMuZ6Jw22_NK7vI4UtmxzKKeOa7znR69vjN-N\" alt=\"Testsigma creating a project\"\/><\/figure>\n\n\n\n<div style=\"height:8px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>It will now ask you to enter the Test Name. After entering the test name, click on the <strong>Create <\/strong>button.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/Hh4KXGwdNqM6BQbW7PdUs_GAl5TukOu9FejA79r2CUY9zDt1_xAUYkvZkGaW9rfwvsHNE7OKCs6-EJ59Kh5nTfaOs9Q-Mg_rcEX5dqWT6hzkw-PkM_vEt4-A4SvbifJuoJKd1aAc\" alt=\"Testsigma test case\"\/><\/figure>\n\n\n\n<p>In this article, we will demonstrate 3 different cases with different HTTP Verbs (GET, PUT, POST, DELETE) using which you can perform your API Testing.<br><br><\/p>\n\n\n\n<p style=\"font-size:25px\">1. <strong>Testing the Expected Response Status Code for a GET Request.<\/strong><\/p>\n\n\n\n<p>After you have created the Test Case, it will take you to the Test Details page shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/X5v_TXCKVTFwB7TYmSxfmlEPWVAXd6qlSN4T1cGFt4ne741cfY-iT9ohCJmZ7aeB5vmm2I-6mfY6UEmZJAGwI8tOlryGgp_ST1gnPabX2ASslxi_07usFL-Jylo0jm62xVdhR7g3\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<p>Here, we will test the expected status code for the response of a simple GET request. The entries required for this test are &#8211;&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>URL &#8211; <a href=\"https:\/\/jsonplaceholder.typicode.com\/users\">https:\/\/jsonplaceholder.typicode.com\/users<\/a><\/li>\n\n\n\n<li>HTTP Method &#8211; GET<\/li>\n\n\n\n<li>Test &#8211; Status Code<\/li>\n\n\n\n<li>Expected Status Code &#8211; 200<\/li>\n<\/ul>\n\n\n\n<p>We will now fill the same details in the Test Case Details.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the title of your test step.<\/li>\n\n\n\n<li>Select the HTTP Method (GET) from the dropdown menu.<\/li>\n\n\n\n<li>Enter the URL.<\/li>\n\n\n\n<li>Inside the verify response tab, check the status code option and enter the expected status code.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/YSPwN-D_oh-iQlS0U5ljWLrajRi1-2CLNL1m264LVzZaJjx-BjUlf1amTK-sQinK2jzF3BHFlWIj4sjl_s5W7dU_y7LNtAC6WBQmcgcy5d0ds5KCHAwcAw6fljkzLH655HWce66b\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<p>After entering all the details, click on the Create button below. Your Test Step will be created and on the same page, you can create other test steps as well.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/Ti-22MGwhW8Quwn_psDWp_mKiAL9tnoYZoK1Lz0mxKyXWj5vZRHdXfBEma2i8bPp-Dv7OvP_SwFlQ0GR-S06C-dRLaK1xFfwqcViZJibAEwC_U0F4V3pyteb8AM2R6tur5GHbcvt\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/rKmiULTyFXUU0UiaQXdCDa4TorWl5plTs8D3pm8P8bKX7xMWJg1PxRRZUvTjz9SKNVlqRbT2CNXZ9MVxL6_WoymZZ-H_OoTxRQCN8PX-_WogKMzzX4z4hf_Q1Uo7ccU4DZQYykex\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<p style=\"font-size:25px\">We will follow the same steps to create all our Test Steps.<br><br><br>2. <strong>Testing the Expected Response Body for a GET request<\/strong><\/p>\n\n\n\n<p>Here, we will be testing the expected body content of a response for a simple GET request.<\/p>\n\n\n\n<p>Parameters &#8211;&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>URL &#8211; <a href=\"https:\/\/jsonplaceholder.typicode.com\/users\/1\">https:\/\/jsonplaceholder.typicode.com\/users\/1<\/a><\/li>\n\n\n\n<li>HTTP Method &#8211; GET<\/li>\n\n\n\n<li>Test &#8211; Body Test<\/li>\n\n\n\n<li>Expected Body Content &#8211; {&#8220;id&#8221;: 1,&#8221;name&#8221;: &#8220;Leanne Graham&#8221;,&#8221;username&#8221;: &#8220;Bret&#8221;,&#8221;email&#8221;: &#8220;Sincere@april.biz&#8221;}<\/li>\n\n\n\n<li>Body Comparison Type &#8211; Lenient<\/li>\n\n\n\n<li>Expected Header Content &#8211; {&#8220;content-type&#8221;:&#8221;application\/json; charset=utf-8&#8243;}<\/li>\n<\/ul>\n\n\n\n<p>After entering all the details, your test step should look like &#8211;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/LGDm8R5oEYBe-s1AhX26-V0R4O82yQQ-mBE-h34wTXAm_v0rkym3N7CS1HZreEFaVVZh8h80aUW2TSgk54bNzRIIM3lvO-ei_edvitzX7Y92_OAD1dftyttkAPVWtDiJU0GPK0Qz\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p style=\"font-size:25px\">3. <strong>Updating a post using PUT request and test the Expected Status Code, Header, and Body<\/strong><\/p>\n\n\n\n<p>Here, we will update a post using the PUT request and test the Expected Status Code, Header and Body Content.<\/p>\n\n\n\n<p>Parameters &#8211;&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL:<\/strong><a href=\"https:\/\/jsonplaceholder.typicode.com\/posts\"> https:\/\/jsonplaceholder.typicode.com\/posts<\/a><\/li>\n\n\n\n<li><strong>HTTP Method:<\/strong> PUT<\/li>\n\n\n\n<li><strong>Payload:<\/strong> {&#8220;title&#8221;:&#8221;foo&#8221;,&#8221;body&#8221;:&#8221;bar&#8221;,&#8221;userId&#8221;:1}<\/li>\n\n\n\n<li><strong>Test: <\/strong>All(Status Code, Header Test, and<strong> <\/strong>Body Test)<\/li>\n\n\n\n<li><strong>Expected Status Code:<\/strong> 200(updated), 201(created) or 204(no content)<\/li>\n\n\n\n<li><strong>Expected Header:<\/strong> {&#8220;content-type&#8221;:&#8221;application\/json; charset=utf-8&#8243;}<\/li>\n\n\n\n<li><strong>Comparison Type:<\/strong> Lenient<\/li>\n\n\n\n<li><strong>Expected Body:<\/strong> {&#8220;id&#8221;:101,&#8221;title&#8221;:&#8221;foo&#8221;,&#8221;body&#8221;:&#8221;bar&#8221;,&#8221;userId&#8221;:1}<\/li>\n\n\n\n<li><strong>Comparison Type:<\/strong> Lenient<\/li>\n<\/ul>\n\n\n\n<p>After entering all the details, your test step should look like &#8211;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/h0IudjNvFcwnpWTka9blroExpOqtgX83C5AJVvt6Qoms4hLqtcLipMwJil9C1O1hULcLSGxnRstgJZAcGoLwr-rUnWrGl9pmXrBJXiQ1U8n80l-X1Ks_ZL80wU4OMDfOR8TvZagz\" alt=\"Testsigma\"\/><\/figure>\n\n\n\n<p>After creating the 3 test steps, we are now ready to execute the Test Case.<\/p>\n\n\n\n<div style=\"height:14px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Executing_the_Test_Case\"><\/span><strong>Executing the Test Case<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To run the Test Case, click on the \u201cRun Test Case\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/OfVmk70wZentP0nHg5zCrmv2K2HJHr14ooXwo9tJK3A_AJxox_MsBideLYDVBgxlELtIFBt4NpgPCh4WYzE9hhLo3Fn39hHwyzj1XXji3zdrXr2IeEZvt-VZVCBMea0Bx6GT6ZKe\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<p>You will now be asked to enter the name and test lab type. We recommend you to use the default inputs for both the fields. The default test lab type is <strong>TestSigma Lab <\/strong>and the name is a combination of \u201cDry Run\u201d and the current date and time. Click on the <strong>Create and Run<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/vRd7hCquMV4TWUfWT3WgVhKN9SvRAJ19u7DtH67-buMzgAM3mlGWlazHra2jsauuOxGizT_gtB7yjz4kCT2SsMOqkatQJDAkbAa_Ih6KQ82yaxloLOdUMGQHgTxwPiEXIOpSMXvB\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<div style=\"height:14px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Analysing_the_Results\"><\/span><strong>Analysing the Results<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can now get a detailed report of your Test Case execution on your screen. You can check the number of test cases passed, failed and not executed along with the Test results.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/t4ZE44dEGzieprIRn_b93-PmY5eYPfNfVfvs-y2YkyNtrOxUJ364q6wb8WL-leEEL6s4BnvJ21cp9xf9dXzV8sSJrVWU7hEDKtKqOZfIanbMGXAQvzxPuxLO6K5AeJICRRwvYRCn\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/jRWmde5cZ5FblHcNh5aJ1vN4AoFBNFi3Z8QMw2iPXFoVudWCHUQQHd0_gX20xtBaSA10Mlt7zWCrcI9B9ZqRAsLq9Pa6QjjC4TTofTh_zWRB4TQINpnJSB3v6vNB_QKqQglMYiXe\" alt=\"Testsigma \"\/><\/figure>\n\n\n\n<p>No doubt, API Testing, and other Web Services Testing is one of the most important components in the Testing Phase of any project. Without proper API Testing, the webpages may fail to serve or serve with an improper error code. TestSigma tool provides a plethora of features to allow you to perform enhanced API Testing using all the major HTTP methods and other key components such as Header, Body Contents, and Status codes. With the ability to create Test Steps in natural language, TestSigma Tool makes it really easy for developers to create high-quality Test Cases and allows the developers to determine the point of failures easily with a detailed description of Test Case execution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are creating a Web Service, you need to ensure that your REST APIs work well for all your Test Cases. RESTful APIs use HTTP requests such as GET, PUT, POST, DELETE, etc. to send and receive data. If there is any error, the server won&rsquo;t be able to fetch the data for you &#8230; <a title=\"API Testing with TestSigma\" class=\"read-more\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\" aria-label=\"Read more about API Testing with TestSigma\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":4372,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-4370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-testsigma"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API Testing with TestSigma - ArtOfTesting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/artoftesting.com\/api-testing-testsigma\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API Testing with TestSigma - ArtOfTesting\" \/>\n<meta property=\"og:description\" content=\"When you are creating a Web Service, you need to ensure that your REST APIs work well for all your Test Cases. RESTful APIs use HTTP requests such as GET, PUT, POST, DELETE, etc. to send and receive data. If there is any error, the server won&rsquo;t be able to fetch the data for you ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/artoftesting.com\/api-testing-testsigma\" \/>\n<meta property=\"og:site_name\" content=\"ArtOfTesting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/artoftesting\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-01T09:44:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-29T15:32:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"728\" \/>\n\t<meta property=\"og:image:height\" content=\"416\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kuldeep Rana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@theartoftesting\" \/>\n<meta name=\"twitter:site\" content=\"@theartoftesting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kuldeep Rana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#article\",\"isPartOf\":{\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma\"},\"author\":{\"name\":\"Kuldeep Rana\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5\"},\"headline\":\"API Testing with TestSigma\",\"datePublished\":\"2021-03-01T09:44:38+00:00\",\"dateModified\":\"2023-04-29T15:32:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma\"},\"wordCount\":1244,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/artoftesting.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage\"},\"thumbnailUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg\",\"articleSection\":[\"Testsigma\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/artoftesting.com\/api-testing-testsigma#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma\",\"url\":\"https:\/\/artoftesting.com\/api-testing-testsigma\",\"name\":\"API Testing with TestSigma - ArtOfTesting\",\"isPartOf\":{\"@id\":\"https:\/\/artoftesting.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage\"},\"thumbnailUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg\",\"datePublished\":\"2021-03-01T09:44:38+00:00\",\"dateModified\":\"2023-04-29T15:32:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/artoftesting.com\/api-testing-testsigma\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage\",\"url\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg\",\"contentUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg\",\"width\":728,\"height\":416,\"caption\":\"API testing testsigma\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/artoftesting.com\/api-testing-testsigma#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/artoftesting.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testsigma\",\"item\":\"https:\/\/artoftesting.com\/category\/testsigma\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API Testing with TestSigma\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/artoftesting.com\/#website\",\"url\":\"https:\/\/artoftesting.com\/\",\"name\":\"ArtOfTesting\",\"description\":\"A Beginners Guide to Testing\",\"publisher\":{\"@id\":\"https:\/\/artoftesting.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/artoftesting.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/artoftesting.com\/#organization\",\"name\":\"ArtOfTesting\",\"url\":\"https:\/\/artoftesting.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png\",\"contentUrl\":\"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png\",\"width\":400,\"height\":60,\"caption\":\"ArtOfTesting\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/artoftesting\",\"https:\/\/x.com\/theartoftesting\",\"https:\/\/www.linkedin.com\/groups\/4797819\/\",\"https:\/\/in.pinterest.com\/artoftesting\/\",\"https:\/\/www.youtube.com\/channel\/UCQ9PUVenvvyrUdDQ9yKn31Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5\",\"name\":\"Kuldeep Rana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g\",\"caption\":\"Kuldeep Rana\"},\"description\":\"Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API Testing with TestSigma - ArtOfTesting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/artoftesting.com\/api-testing-testsigma","og_locale":"en_US","og_type":"article","og_title":"API Testing with TestSigma - ArtOfTesting","og_description":"When you are creating a Web Service, you need to ensure that your REST APIs work well for all your Test Cases. RESTful APIs use HTTP requests such as GET, PUT, POST, DELETE, etc. to send and receive data. If there is any error, the server won&rsquo;t be able to fetch the data for you ... Read more","og_url":"https:\/\/artoftesting.com\/api-testing-testsigma","og_site_name":"ArtOfTesting","article_publisher":"https:\/\/facebook.com\/artoftesting","article_published_time":"2021-03-01T09:44:38+00:00","article_modified_time":"2023-04-29T15:32:04+00:00","og_image":[{"width":728,"height":416,"url":"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg","type":"image\/jpeg"}],"author":"Kuldeep Rana","twitter_card":"summary_large_image","twitter_creator":"@theartoftesting","twitter_site":"@theartoftesting","twitter_misc":{"Written by":"Kuldeep Rana","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/artoftesting.com\/api-testing-testsigma#article","isPartOf":{"@id":"https:\/\/artoftesting.com\/api-testing-testsigma"},"author":{"name":"Kuldeep Rana","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5"},"headline":"API Testing with TestSigma","datePublished":"2021-03-01T09:44:38+00:00","dateModified":"2023-04-29T15:32:04+00:00","mainEntityOfPage":{"@id":"https:\/\/artoftesting.com\/api-testing-testsigma"},"wordCount":1244,"commentCount":0,"publisher":{"@id":"https:\/\/artoftesting.com\/#organization"},"image":{"@id":"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage"},"thumbnailUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg","articleSection":["Testsigma"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/artoftesting.com\/api-testing-testsigma#respond"]}]},{"@type":"WebPage","@id":"https:\/\/artoftesting.com\/api-testing-testsigma","url":"https:\/\/artoftesting.com\/api-testing-testsigma","name":"API Testing with TestSigma - ArtOfTesting","isPartOf":{"@id":"https:\/\/artoftesting.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage"},"image":{"@id":"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage"},"thumbnailUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg","datePublished":"2021-03-01T09:44:38+00:00","dateModified":"2023-04-29T15:32:04+00:00","breadcrumb":{"@id":"https:\/\/artoftesting.com\/api-testing-testsigma#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/artoftesting.com\/api-testing-testsigma"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/api-testing-testsigma#primaryimage","url":"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg","contentUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2021\/03\/api-testing-with-testsigma.jpg","width":728,"height":416,"caption":"API testing testsigma"},{"@type":"BreadcrumbList","@id":"https:\/\/artoftesting.com\/api-testing-testsigma#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/artoftesting.com\/"},{"@type":"ListItem","position":2,"name":"Testsigma","item":"https:\/\/artoftesting.com\/category\/testsigma"},{"@type":"ListItem","position":3,"name":"API Testing with TestSigma"}]},{"@type":"WebSite","@id":"https:\/\/artoftesting.com\/#website","url":"https:\/\/artoftesting.com\/","name":"ArtOfTesting","description":"A Beginners Guide to Testing","publisher":{"@id":"https:\/\/artoftesting.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/artoftesting.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/artoftesting.com\/#organization","name":"ArtOfTesting","url":"https:\/\/artoftesting.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/","url":"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png","contentUrl":"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png","width":400,"height":60,"caption":"ArtOfTesting"},"image":{"@id":"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/artoftesting","https:\/\/x.com\/theartoftesting","https:\/\/www.linkedin.com\/groups\/4797819\/","https:\/\/in.pinterest.com\/artoftesting\/","https:\/\/www.youtube.com\/channel\/UCQ9PUVenvvyrUdDQ9yKn31Q"]},{"@type":"Person","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5","name":"Kuldeep Rana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g","caption":"Kuldeep Rana"},"description":"Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals."}]}},"_links":{"self":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/4370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/comments?post=4370"}],"version-history":[{"count":5,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/4370\/revisions"}],"predecessor-version":[{"id":6995,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/4370\/revisions\/6995"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/media\/4372"}],"wp:attachment":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/media?parent=4370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/categories?post=4370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/tags?post=4370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}