Skip to content

Commit e6c9fe7

Browse files
authored
feat : added two new pages , added missing canonical tag , broken links fixed (#4)
1 parent 867a47d commit e6c9fe7

5 files changed

Lines changed: 181 additions & 3 deletions

File tree

src/pages/tutorials/getting-started/automate-web-applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ order: 1.1
66
page_id: "Get Started with Automating Web Applications"
77
search_keyword: "Get started, Automate Web Applications, Testsigma Tutorials"
88
warning: false
9-
canonical: "page url"
9+
canonical: "https://testsigma.com/tutorials/getting-started/automate-web-applications"
1010
page_title: "Get Started with Automating Web Applications"
1111
social_share_summary: "Twitter summary message"
1212
social_share_desc: "Sharing page description"
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: "Contract Testing with Testsigma"
3+
metadesc: "This document describes the step-by-step details on how to execute contract testing with Testsigma, a no-code test automation tool."
4+
noindex: false
5+
order: 3.2
6+
page_id: "How to do Contract Testing with Testsigma"
7+
search_keyword: ""
8+
warning: false
9+
contextual_links:
10+
- type: section
11+
- name: "Contents"
12+
- type: link
13+
name: "Pre-requisite:"
14+
url: "#pre-requisite"
15+
- type: link
16+
name: "Steps"
17+
url: "#steps"
18+
---
19+
20+
---
21+
22+
Contract testing is done to ensure that two endpoints (eg. two microservices) are compatible and are able to communicate with each other. This is different from integration testing as here both the endpoints can be tested in isolation. Contract testing is done by issuing a contract to both endpoints and ensuring that they honor it.
23+
24+
25+
In this document, we will discuss how Testsigma does it.
26+
27+
---
28+
> ## [Pre-requisite:](#pre-requisite)
29+
> In order to automate a test case for contract testing, you will need:
30+
> * A REST API that is supposed to communicate with another endpoint
31+
> * A JSON Schema to validate the response from the REST API in point
32+
33+
---
34+
35+
To add the test case in Testsigma, you should know:
36+
37+
1. [How to add a test case in Testsigma.](https://testsigma.com/docs/test-cases/manage/add-edit-delete/)
38+
39+
2. [How to add a REST API test step to a test case in Testsigma](https://testsigma.com/docs/test-cases/step-types/rest-api/)
40+
41+
3. [How to automate REST APIs with Testsigma](https://testsigma.com/tutorials/getting-started/automate-rest-apis/)
42+
43+
4. [How to execute tests on Testsigma](https://testsigma.com/docs/runs/adhoc-runs/)
44+
45+
46+
---
47+
48+
## [Steps](#steps)
49+
50+
* Create a test case in Testsigma.
51+
52+
* In the test case created in step 1, add a REST API test step.
53+
54+
* In the REST API test step > Request Details, add the REST API endpoint that you want to test. For the purpose of this document, we will test a GET API, as also shown in the screenshot below:
55+
56+
![Request Details while adding a Get API to execute contract testing via Testsigma](https://docs.testsigma.com/images/tutorials/rest-api-testing/json-schema-validation/get-api-request-details-contract-testing-testsigma.png)
57+
58+
* Under the Test step added in step 2, go to the “Verify Response” tab and add the “Expected Status Code” for the REST API’s response. For our example, we have added the Expected Status Code as 200, which is a code for “completed”, meaning the test was a success.
59+
60+
![expected status code under verify response tab to execute contract testing via Testsigma](https://docs.testsigma.com/images/tutorials/rest-api-testing/json-schema-validation/expected-status-code-under-verify-response-contract-testing-testsigma.png)
61+
62+
* On the same “Verify Response“ tab, select “Body Compare Type” as “JSON schema”, and under “Expected Content” add the JSON Schema to validate the REST API response. This JSON Schema will be the contract for testing your REST API. The added JSON Schema for our example is as seen in the screenshot below:
63+
64+
![Expected body content under Verify Response Tab to execute contract testing with Testsigma](https://docs.testsigma.com/images/tutorials/rest-api-testing/json-schema-validation/expected-body-content-under-verify-response-contract-testing-testsigma.png)
65+
66+
* When you execute the test case, the response from the added REST API will be validated against the added schema. If the response matches the JSON schema, the test case will be reported as “Passed”, else it would be reported as “Failed”.
67+
68+
* If the test case fails, the failed criteria would be reported to you. For our example test case - when the required key “firstName” was not found in the response, the test case failed with the error “required key [firstName] not found”. As also shown in the screenshot below:
69+
70+
![Error message, as reported in Testsigma, when a contract testing test case failed](https://docs.testsigma.com/images/tutorials/rest-api-testing/json-schema-validation/error-message-when-a-contract-testing-test-case-failed.png)

src/pages/tutorials/test-cases/mobile-apps/build-tests-using-local-android-devices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ That’s it!
167167

168168
* Try all options in Test Recorder. [Try it out!](https://testsigma.com/docs/test-cases/create-steps-recorder/ios-apps/overview/)
169169

170-
* Create Test Plans and Schedules using local devices. Head over to [this link!](https://testsigma.com/docs/test-management/plans/overview/)
170+
* Create Test Plans and Schedules using local devices. Head over to [this link!](https://testsigma.com/docs/test-management/test-plans/overview/)
171171

172172
* Try out more advanced capabilities. Check out our detailed [documentation](https://testsigma.com/docs/).
173173

src/pages/tutorials/test-cases/mobile-apps/build-tests-using-recorder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ _This is a basic walk-through. For queries, reach us via the in-app chat or ping
233233

234234
* Try all options in Test Recorder. [Try it out!](https://testsigma.com/docs/test-cases/create-steps-recorder/ios-apps/overview/)
235235

236-
* Create Test Plans and Schedules using local devices. Head over to [this link!](https://testsigma.com/docs/test-management/plans/overview/)
236+
* Create Test Plans and Schedules using local devices. Head over to [this link!](https://testsigma.com/docs/test-management/test-plans/overview/)
237237

238238
* Try out more advanced capabilities. Check out our detailed [documentation.](https://testsigma.com/docs/)
239239

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
---
2+
title: "How to do cross-platform end-to-end testing with Testsigma"
3+
metadesc: "This document describes the step-by-step details of how to create a test plan for cross-platform end-to-end testing with Testsigma"
4+
noindex: false
5+
order: 4.2
6+
page_id: "Cross-Platform End-to-End Testing with Testsigma"
7+
search_keyword: "Test Plans, Local devices, Testsigma Tutorials"
8+
warning: false
9+
contextual_links:
10+
- type: section
11+
- name: "Contents"
12+
- type: link
13+
name: "Pre-requisites"
14+
url: "#pre-requisites"
15+
- type: link
16+
name: "Steps"
17+
url: "#steps"
18+
---
19+
20+
---
21+
22+
There will be scenarios when you would want to execute certain test cases on one platform and once those test cases are executed, certain other dependent test cases on a different platform.
23+
24+
For example, for a flight booking application, you might book the flight on the desktop web and then could want to modify the bookings on your android application, and then you might want to cancel the bookings on your iPad application.
25+
26+
The flow would look something like the below:
27+
28+
* Book the flight on the desktop web
29+
30+
* Modify the booking done in step 1 on the android application
31+
32+
* Cancel the booking done in step 1 and modified in step 2, on the iPad application.
33+
34+
35+
Today, when applications are made to provide the same experience on multiple different platforms - such a scenario is valid and common. With Testsigma, you can test such cross-platform end-to-end testing scenarios easily.
36+
37+
Let’s see how cross-platform end-to-end test automation can be done with Testsigma:
38+
39+
40+
---
41+
> ## [Pre-requisites](#pre-requisites)
42+
> The test suites containing test cases for the above scenarios should be already there. That is, Test cases to:
43+
> * Book the flight on the desktop web
44+
> * Modify an existing booking on an android application
45+
> * Cancel a booking on an iPad application
46+
47+
48+
For the above, you should know how to:
49+
50+
1. [Automate a test case in Testsigma](https://testsigma.com/docs/test-cases/manage/add-edit-delete/)
51+
2. [Create a Test Suite in Testsigma](https://testsigma.com/docs/test-management/test-suites/overview/)
52+
3. [Create a Test Plan in Testsigma](https://testsigma.com/docs/test-management/test-plans/overview/)
53+
54+
55+
---
56+
57+
## [Steps](#steps)
58+
59+
1. Add a Test Plan.
60+
61+
2. Enter the Test Name. For example, below is how we have added the Test Name for our example Test case:
62+
63+
![Step 1 to create a test plan](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/create-test-plan-step-1.png)
64+
65+
3. Click on the Next Button on the ‘Create Test Plan’ Tab, the tab ‘Test Machines & Suites Selection’ Opens Up:
66+
67+
![Step 2 to add test machines and suites for test plan execution](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/test-machines-and-suites-selection-step-2.png)
68+
69+
4. On Tab 2, select the type as ‘Distributed Testing’ and select the Project containing the test suite, select the test suite, and select the test machine you want to execute it on. For our purpose, we chose “Simple Demo(Web)” as project, “Book Flight” as the test suite, and Latest Google Chrome on Windows 11 as the test machine. Below is a screenshot with the mentioned selections, for your reference:
70+
71+
![add first test suite for e2e testing execution](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/add-first-test-suite-e2e-testing.png)
72+
73+
5. Click on the ‘Add’ button to add this selection to test plan execution. Below is what you will see after clicking on the add button.
74+
75+
![UI after adding first test suite for E2E testing on multiple platforms](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/after-adding-first-test-suite-e2e-testing.png)
76+
77+
6. Now click on the big green ‘Add’ Button. Now you are ready to add another test execution combination (test suite + test machine) to the test plan. Below is a screenshot of how the screen appears:
78+
79+
![Add second test execution to the E2E testing test case](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/add-second-test-execution-combination-e2e-testing.png)
80+
81+
7. Here, choose the test suite for modifying booking for android ‘Modify Booking’, and choose the prerequisite as the test execution setting that was added in step 5. The test execution chosen in step 5, would appear as a drop-down for pre-requisites. Below is a screenshot of how the selection looks for our example E2E testing scenario:
82+
83+
![The second test execution settings as selected for the E2E testing scenario](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/second-test-execution-selected.png)
84+
85+
8. Click on the ‘Add’ Button to add this configuration to the test plan execution.
86+
87+
9. Similarly, add another test execution combination (test suite + test machine) to the test plan - ‘Cancel Booking’ Test Suite for iOS. Below is how selection looks for the example E2E test scenario:
88+
89+
90+
![The third test execution settings as selected for the E2E testing scenario](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/third-test-execution-selected.png)
91+
92+
10. Now, click on the ‘Add’ Button to add this configuration to the test plan execution. Below is how all the added test executions look:
93+
94+
![All test executions added for E2E testing scenario](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/final-test-executions-for-E2E-testing-scenario.png)
95+
96+
11. Click on the ‘Next’ Button. On the third tab ‘Test Plan Settings’, you can add the edit the settings to suit your needs and click on the ‘Create’ Button at the bottom as also shown in the screenshot below:
97+
98+
![The test plan settings tab for E2E testing scenario](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/test-plan-settings-E2E-testing-scenario.png)
99+
100+
12. Once the test plan is created, you will be taken to the test plan page, as shown below:
101+
102+
![Created Test Plan page for E2E testing scenario](https://docs.testsigma.com/images/tutorials/test-plans/cross-platform-end-to-end-testing/created-test-plan-page-E2E-testing-scenario.png)
103+
104+
13. On the Test Plan Page, you can click on the ‘Run Now’ button to see the test plan in execution. You can click on the ‘View Reports’ button to go to report. The button is highlighted below:
105+
106+
![Gif to demonstrate test execution of a multi-platform E2E testing scenarios](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/runs/test-plan-executions/e2e-testing-scenario-gif.gif)
107+
108+
Alternatively, below is a gif demonstrating the above steps for configuring a cross-platform end-to-end test scenario with Testsigma:

0 commit comments

Comments
 (0)