-
Notifications
You must be signed in to change notification settings - Fork 673
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
Implement proxy settings for TestCafe #1206
Comments
Let determine API for this feature. New options:
--proxy-url
--proxy-ignore
testcafe chrome tests/ --proxy-url x.x.x.x --proxy-ignore "a.com,b.com" Programming Interface: const proxyUrl = 'x.x.x.x'
const ignoreHosts = ['a.com', 'b.com'];
runner
.proxy(proxyUrl, ignoreHosts) /cc @DevExpress/testcafe-docs @inikulin @VasilyStrelyaev |
What's proxy ignore options are for? |
maybe |
So, as I understand, we've decided don't add proxy-ignore option for now. CLI: New option:
--proxy-url
testcafe chrome tests/ --proxy-url x.x.x.x Programming Interface: const proxyUrl = 'x.x.x.x'
runner
.proxy(proxyUrl) Is it ok? |
@AlexanderMoskovkin, we can specify proxy port in the url, if it necessary. I mean, change 'x.x.x.x' to 'x.x.x.x:yyyy' in these snippets (in the docs in the future). |
any update ? |
@tiagorosendo We are working on it. More likely it will be released in |
Ok thanks ! |
Why did you guys decide on not adding proxy-ignore option? Is there any plan to add this in future and if not can I help contribute? |
@anescobar1991 We've decided to start with minimal feature set and add advanced features afterwards if there will be a demand for them. If you are interested in this feature, open new issue, please. PRs are welcome as well. |
any update on this? |
It's already available (since the |
It seems that the proxy option sets the proxy even for requests to localhost, I think it would make sense to ignore the proxy for requests to localhost or 127.0.0.1. What do you think? |
I tried below your solutions to implement Proxy setting but did not get any proper solution: 1)I tried with command (testcafe chrome tests/ --proxy-url x.x.x.x --proxy-ignore "a.com,b.com") but it does not work for me . Can you please provide the exact syntax. 2)test runner -It's saying proxy is not a function Also i gone thorugh http://devexpress.github.io/testcafe/documentation/using-testcafe/common-concepts/browsers/user-profiles.html and tried with new user profile but it also does work for me . It would be great if you can reply ASAP. |
Hi @MishraApa, You can find the correct TestCafe API in our documentation. |
I have tried above solution provided in documentation to host proxy but none of the solution is working for me .Could please suggest how to do proxy setting testcafe ? Thanks |
Could you please describe your issue in details? What url you'd like to open in your tests, what the proxy do you use, what happens when you run your tests? |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
…ress#1431) * Proxy settings have been implemented (closes DevExpress#1206) * some remarks * requested changes * hostname -> host * externalProxyUrl -> externalProxyHost
Are you requesting a feature or reporting a bug?
feature
What is the current behavior?
In corporate networks, where browser have specified proxy settings for access to WEB, TestCafe cannot establish connection to the remote resources, cause all requests are sent directly to the remote host, bypassing corporate proxy.
What is the expected behavior?
TestCafe should provide capability to setup proxy options, like
http proxy url
,http proxy port
etcThe text was updated successfully, but these errors were encountered: