In our application we are using "I am not a Robot Captcha".when we enable proxy and we access the application, the captcha is not displayed. Because of this, we are not able to proceed with our scripting in Jmeter. Is there a way to make captcha visible while using Proxy?
Most probably your issue is with HTTPS, did you add the jmeter generated certificate to accepted Authorities ?
Anyway, if it's recaptcha system you should not be able to automate it as it is made to block robots, and JMeter is a robot here.
So disable it anyway for your test.
Related
I am trying to create a simple test script of verifying validation message of the sign up page but because of captcha my script is running into the errors. How to bypass it? I am using Cypress version 10, the latest one.
I tried to disable the chrome websecurity to false but still it is not being disabled.
If it was possible to bypass the captcha with a client-side script, it would become useless.
When you're working on an integration test and are mocking all API interactions, you can mock that one too. If it's an e2e test you need to either disable it or be able to pass a valid answer.
There's a couple options available
The simplest might be to use the captcha test keys.
info:
https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do
For reCAPTCHA v3, create a separate key for testing environments. Scores may not be accurate as reCAPTCHA v3 relies on seeing real traffic.
For reCAPTCHA v2, use the following test keys. You will always get No CAPTCHA and all verification requests will pass.
Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
Note that that will need to be implemented on the server still and would only be possible to run on a testing server and not production.
You can also setup the test server to make sure that the CAPTCHA does not render or that the server bypasses the validation either altogether when it is in test mode, or when provided with a shared secret. The later strategy could be used in production environment though it would make the system vulnerable to bypass if the key was somehow exposed.
Literally, I do not know what module is to get values from http, https.
I'm trying to bring tracking numbers from kind of BANC, UPS, FedEx...
My purpose is this reference specific values from other site and bring back to Netsuite.
1 What modules do I use for that?
2 If there is a login session, is it possible to access using suitescript?
your answer will be great help to me.
Accessing that information is usually done via API with credentials rather than a login session. For that you normally use N/https.
I understand that Watir and Selenium have issues with NTLM auth when trying to login to web pages for testing. My research indicated that there are two normal work around. 1. add the credentials into the URL 2. use an auto auth plugin/extension. I currently don't have the option of using an extension in my environment, though I'm working on that. So, I'm left with passing credentials.
The problem I have is as follows.
Chrome:
In Chrome I pass the credentials manually (as in I type it into the browser directly) as http://password:user#example.com/ and it opens the page, but does not populate the popup. If I try to manually pass it as http://example.com?username=usr&password=password, it populates the auth pop up but does not proceed.
If I try to automate with ruby using the following code all I get is unknown user name and password. I have confrimed that the usr and pwd are correct.
browser.goto("http://example.com?login=usr&password=password")
browser.goto("http://password:usr#example.com/")
IE
IE behaves a bit differently.
In IE I pass the credentials manually as http://password:user#example.com/ and it returns an error that it can't find the page. If I try to manually pass it as http://example.com?username=usr&password=password, it logs in correctly.
If I try to automate with ruby using the following code the first example throws an page can't be found error. The second example opens the page, but does not populate the popup. I have confirmed that the usr and pwd are correct.
browser.goto("http://example.com?login=usr&password=password")
browser.goto("http://password:usr#example.com/")
What am I doing wrong?
My environment is Windows 7 Pro, IE 11 and Chrome 60.
Found an article that indicates MS removed auth in URL. So it makes sense that pwd:usr# doesn't work. Article ID: 834489
Ok, I have found the answer. After discussing it with my company's senior architect, there is no way to access an NTLM Windows authentication form by design. It's literally designed so that it can't be automated that way as a security measure.
The one workaround that he did suggest as a way to deal with the authentication issue is to use something like C# (our standard) and open the browser with the assumption that the user is already logged in. This will completely bypass the authorization pop up rendering the issue null. I'm unclear exactly how to do this, but I hope this provides a useful direction for others.
I have a NPAPI Plugin (Windows/Win32) that downloads a zip file from the server.
It does not work if the client in behind a proxy.
How would I get the proxy credentials from the user through my NPAPI Plugin?
I used HttpQueryInfo to detect presence of proxy by querying its status. If "407" is returned i use InternetErrorDlg to get credentials from the user but Chrome(29.0.1547.66 m) crashes on encountering the line. FF(19.0.2) works good.
Are there any more ways to do this ? Prompt the user to enter proxy credentials?
Any help in this regard will greatly be appreciated.
With Lots of Thanks,
LazyCoder7.
If you use the browser APIs to download then the proxy should Just Work(tm). The way you're doing it you can probably use NPN_GetValueForURL to get proxy information on newer browsers; barring that you need to remember that you aren't allowed to block the main thread, which is probably what you're doing that causes it to crash. Get the credentials using HTML or something and then pass them in; it is possible to use windows dialogs to do it as long as you use another thread and are careful, but it's much easier to handle it in javascript/html.
I have a webpage that which need to access some user data on his windows PC.
Ex.Read Outlook Email , due to security restrictions browsers wont allow this.
What is the best way to achieve this ?
Write an ActiveX control ? [what about FF,Chrome]
I need this work with Firefox,IE,Chrome.
Thanks.
You can't do this - it would be a huge security/privacy issue if a browser could access information on the user's machine. The only way to get Outlook emails would be to tell the user to export their emails from Outlook and have them upload the exported emails to your website.
You will need to write a tool like Google Calendar Sync that your users would download and install.
They would have to input their website credentials or a token that you generate for them and your app would do whatever needs to be done on the local PC. You may also have a trust issue as well. Will your users trust running your app to read their emails? Depends on the situation I guess, but a totally browser based solution probably won't work if it needs to be cross-browser compliant.