Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to update captured api response and send to UI? #67

Open
vaibhavbarmkar opened this issue Feb 13, 2020 · 4 comments
Open

Comments

@vaibhavbarmkar
Copy link

Does this service have any feature which allows us to update API response and send an update response to UI instead of the actual response?

@chmanie
Copy link
Member

chmanie commented Mar 29, 2020

I'm not sure whether this is a good idea. Tests really should not influence the workings of a site. What's your use-case?

@YukeySnowHarry
Copy link

Hi, chmanie. There are occasional AD popup requests on our website, which are out of our control. We need to intercept API to modify the popup assignment response, so as to ensure that the AD popup will not affect the test process.

@YukeySnowHarry
Copy link

We are very anxious for you to continue with the project

@chmanie
Copy link
Member

chmanie commented Mar 31, 2021

I think I'm not getting what you are trying to do. Do you want to intercept a request to the server and alter the response of the server before it gets to the frontend code? I don't think this would be inside the scope of this project. Feel free though to look at the interceptor.js to see how you could override fetch or xhr requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants