Implementing WireMock.NET with appium for mobile automation testing #446

Closed
opened 2025-12-29 08:28:17 +01:00 by adam · 5 comments
Owner

Originally created by @mikebgrep on GitHub (Sep 9, 2022).

Originally assigned to: @StefH on GitHub.

I search over the internet, but I didn't find a good tutorial how to set up WireMock.NET to work with appium to mock API request from mobile app backend. I think first I need to set up an SSL certificate local on my machine and after this to use the ProxySettings to mock the response of the mobile app API. Any help are welcomed or if any know some article online how can I configure the library.

Originally created by @mikebgrep on GitHub (Sep 9, 2022). Originally assigned to: @StefH on GitHub. I search over the internet, but I didn't find a good tutorial how to set up WireMock.NET to work with appium to mock API request from mobile app backend. I think first I need to set up an SSL certificate local on my machine and after this to use the ProxySettings to mock the response of the mobile app API. Any help are welcomed or if any know some article online how can I configure the library.
adam added the question label 2025-12-29 08:28:17 +01:00
adam closed this issue 2025-12-29 08:28:17 +01:00
Author
Owner

@StefH commented on GitHub (Sep 12, 2022):

The purpose of WireMock.Net is to replace the real backend.

  1. Configure / create SSL (if needed)
  2. Start WireMock.Net
  3. Add mappings
  4. Configure your app to connect to the url where wiremock.net is running

General idea:

Go from this:
image

To this:
image

@StefH commented on GitHub (Sep 12, 2022): The purpose of WireMock.Net is to replace the real backend. 1. Configure / create SSL (if needed) 2. Start WireMock.Net 3. Add mappings 4. Configure your app to connect to the url where wiremock.net is running General idea: **Go from this:** ![image](https://user-images.githubusercontent.com/249938/189731604-6efdda0e-0186-407a-8e94-78a14d6830f2.png) **To this:** ![image](https://user-images.githubusercontent.com/249938/189731836-731a2f5b-c6c5-42e2-8cd7-117aaa56cfaa.png)
Author
Owner

@mikebgrep commented on GitHub (Sep 15, 2022):

Thank you for the answer. So I need

  1. first to set SSL certificate to can connect to https: https://github.com/WireMock-Net/WireMock.Net/wiki/Using-HTTPS-(SSL)
  2. I need to add mapping like so: https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock-as-a-standalone-process#option-3--coding-yourself
  3. And finally, I need to configure connection to the app: https://github.com/WireMock-Net/WireMock.Net/wiki/Using-WireMock-in-UnitTests

Please tell me if this is the right steps.
Also do installation of the SSL cert for MAC is same as Linux.

@mikebgrep commented on GitHub (Sep 15, 2022): Thank you for the answer. So I need 1. first to set SSL certificate to can connect to https: https://github.com/WireMock-Net/WireMock.Net/wiki/Using-HTTPS-(SSL) 2. I need to add mapping like so: https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock-as-a-standalone-process#option-3--coding-yourself 3. And finally, I need to configure connection to the app: https://github.com/WireMock-Net/WireMock.Net/wiki/Using-WireMock-in-UnitTests Please tell me if this is the right steps. Also do installation of the SSL cert for MAC is same as Linux.
Author
Owner

@StefH commented on GitHub (Sep 17, 2022):

I think that should be it indeed, however I don't know exactly how your setup is.

@StefH commented on GitHub (Sep 17, 2022): I think that should be it indeed, however I don't know exactly how your setup is.
Author
Owner

@StefH commented on GitHub (Sep 19, 2022):

https://github.com/WireMock-Net/WireMock.Net/issues/645

@StefH commented on GitHub (Sep 19, 2022): https://github.com/WireMock-Net/WireMock.Net/issues/645
Author
Owner

@StefH commented on GitHub (Sep 19, 2022):

I'm closing this issue for now.

If there are any Appium specific steps to take, I can create a new WIKI page, but I think that the general idea on how to use WireMock.Net is the same for all integrations.

Else, please create a new issue with a wiki-page proposal on this topic.

@StefH commented on GitHub (Sep 19, 2022): I'm closing this issue for now. If there are any Appium specific steps to take, I can create a new WIKI page, but I think that the general idea on how to use WireMock.Net is the same for all integrations. Else, please create a new issue with a wiki-page proposal on this topic.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#446