auroralane7754

auroralane7754

Is There Any Way to Use VPN for API Testing in Dev Environments?

Hey developers :waving_hand:

I’m currently experimenting with various mobile VPN apps to simulate different network conditions for API testing.

Has anyone here used a VPN for API endpoint testing or staging environment access? I’m curious if it can help simulate remote location behavior or add a layer of encryption for dev debugging.

Would love to hear if you’ve tried this, especially in Node.js, Python, or Go-based environments.

Thanks in advance! :rocket:

Most Liked

Eiji

Eiji

Below are some points based on my Elixir experience:

  1. First of all I never heard about testing in dev environment. There was always a separate test environment that often has a completely different project configuration and test helpers that are available only for testing purposes.

  2. I never heard about simulating remote location. First of all the code responsible for sending requests and read responses is in some package/library and it should have it’s own tests, so therefore you should not be responsible at all for testing it.

  3. It’s rather not advised to rely on network connection. We have various of tools to avoid that. One example would be a request & response caching to the local drive, so tests needs to fetch specific page only once and after than every next call would be based on cached response. Alternatively you can use mocks and tell your code that you expect specific response, so you can focus on testing your app features and not the network.

Tests are often part of CI, so you are trying to slow down not only local development, but also verifying each commit in pull request. There are lots of possible network problems that you can’t predict and you really should not care about it at all.

Again usually you as a developer are testing not your network provider, but your application logic. It’s obvious that your application expects a working and stable connection to internet as otherwise it would not be able to serve pages. That’s why there is no reason and it’s why people are not testing it in every project.

However maybe you are in some very specific case. Without more context all we can do is to give a generic answers as we don’t know your use case. If it’s only about testing your API then usually nobody expects from you to write such tests and you usually should focus on testing your app features instead.

Where Next?

Popular Android topics Top

Exadra37
I am in the process of research for my next technical blog about bypassing certificate pinning with Frida, thus I need to find some open ...
New
Nevio
Hi, I made an android app and created a signature with keytool. I then bundled the signature in the apk. So, I was wondering if, wanting...
New
cajasigwe
Hi, Please I need help to get DHIS2 Capture working in Android Tablet Phone desk ( KT5-3C) Android Version: 10. Build: KT5-3C_LTE05M0_K...
New
tunelabguy
I have an expensive app ($160) in the Play Store that I would like to update. I would like to do a beta test of the update with potentia...
New
freerefills
I have an android app whereby notifications will fire and immediately leave the tray. This doesn’t always happen, it’s unpredictable they...
New
vsiPr
I am trying to develop an app which will make your smartphone act as a “keyboard”. I need it to send different symbols to another devices...
New
JesperBlom
Hi Hope it is a simple question :slight_smile: I am planning to use a new PC for making my enterprise app. Everything works perfect, b...
New
nihar-gingercube
We have developed a audio/video calling functionality using opentok sdk, now we want to integrate speech recognizer for transcribing voic...
New
Ujjwala
I’m developing an Android application in which I need to add functionality to automatically read a CSV file from a file manager, parse it...
New
skysnap
Helo, I’m using doubleviewpager in my project: Is there something similar that works with android x?
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
AstonJ
Or looking forward to? :nerd_face:
485 12325 257
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
PragmaticBookshelf
Get the comprehensive, insider information you need for Rails 8 with the new edition of this award-winning classic. Sam Ruby @rubys ...
New