Apache JMeter Scripting Challenge 6 and 7 How to Handle Captcha/OTP in JMeter Tool

  Рет қаралды 2,092

Performance Test Engineer - English - 1

Performance Test Engineer - English - 1

Күн бұрын

Apache JMeter Scripting Challenge 6 and 7 How to Handle Captcha/OTP in JMeter Tool #jmeter #youutbe #youtuber #youtubevideo #youtubeviral #youtubevideosearchmekaiselaye #tech #technology #java #javascript #javaprogramming #viralvideo #viral #technology #computer #interviewquestionsandanswers #interview #pte #jmeter #testingtools #performance #responsetime #engineer #english #software #softwaretesting
**********************************************************************
Apache JMeter Scripting Challenge 6 and 7 How to Handle Captcha/OTP in JMeter Tool
Scenario1: Captcha
I have one Admin Application in login page Enter user name and password, automatically generate the Captcha code and User Manually enter the code click on login button that time Application successfully login. Now how to handle the Captcha this Admin Application in JMeter Tool.
Scenario2: OTP (One Time Password)
I have one Windows Server Application in login page Enter Username and Password, click on Generate OTP button Automatically OTP is Received Authorized Mobile Number, Now User Manually Enter the OTP and Click on Login button that time Windows Server Application Successfully Login. Now how to handle the OTP this Windows Server Application in JMeter Tool.
Solutions:
How to capture Captcha or OTP in JMeter?
one-time password, Security Questions or Captcha are the security features which protect the application from non-human threats. The non-human threat that means try to access the application through an automated script. Here, one thing to be noted JMeter any other performance testing tool scripts are also an automated way to simulate the real user behaviour and generate the load on the server.
Just think, if you are able to capture or handle the captcha of an application through JMeter script then is that application secured?
Definitely NO
Hence one thing is confirmed that none of the developers builds such an unsecured application. So, how a performance tester can handle this security feature?
Approach to Handle Captcha/OTP
Actually, there are three approaches to handle the security feature in performance test script.
1. Disable the security feature: You can ask the developer to disable the security feature like Captcha or OTP of the application for testing purpose only. In that case, you do not need to include the request/function which handles captcha or OTP. But such an approach bypasses the security code (logic) of the application. The reason is that this approach does not simulate the production behaviour of the application. Because in the production server, the application code generates a captcha or OTP and when the user enters the value of related security field then the application logic compares the entered value with the generated value in the backend and confirms the identity of the user. Hence by disabling the security feature, you are bypassing the security logic of the application which is not a good idea.
2. Use Static Value: This approach leads the developer to make the Captcha or OTP static while accessing the application for testing purpose. Static Captcha or OTP means the application will generate the same value every time. In this approach, Captcha or OTP field is kept enable and a pre-defined value is passed as a security check in the request to allow the virtual user to access the application. The only disadvantage of this approach is if the developer disables the OTP generation code and write a new comparison logic
3. (UserEnteredValue == PreDefinedValue)
4. then the Captcha or OTP generation logic will be again bypassed which may slightly deviate the result from the actual performance. Hence the developer needs to tweak the existing logic so that actual application performance can be measured along with the security feature.
5. Embed Captcha/OTP generation code in script: The alternate approach is to embed the security logic in the test script which generates captcha and OTP at the server end. But make sure the logic at both the end should generate the same value for the same user/request. This approach simulates the real-world scenario but bit difficult to implement. Sometimes, security code generation logic does not compatible with the performance test script. If those are simple jar files then there is a possibility to implement this approach. Security code syncing is also one of the factors which may restrict to implement this approach.
If you get success to embed the code with the script then the performance of the test script may get impacted which may impact the transaction rate (TPS) during the load test execution.
The conclusion is you can not capture the security code of the web application through automated script whether its a captcha or an OTP. Hence go for any of the above mentioned approach which suits your test scenario. The second approach is always preferable and better than the other two.
This is the way you can handle the Captcha/OTP in JMeter Tool.

Пікірлер: 3
JMeter Top most asked Interview Questions | JMeter refresher by Raghav Pal |
41:28
Automation Step by Step
Рет қаралды 60 М.
Apache JMeter Scripting Challenge 1 #jmeter #youtubevideo #performance #viralvideo #testing
30:16
Performance Test Engineer - English - 1
Рет қаралды 1,4 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 30 МЛН
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 10 МЛН
Apache JMeter Scripting Challenge 5 #jmeter #testing #performance #youtubeshorts #youtubevideo
27:39
Performance Test Engineer - English - 1
Рет қаралды 542
90th Percentile Response Time in Performance Testing
10:49
PerfMatrix
Рет қаралды 28 М.
Apache JMeter Scripting Challenge 2 #youtubevideo #jmeter #java #javascript #testing
25:23
Performance Test Engineer - English - 1
Рет қаралды 853
7 | JMeter | Test Script Recorder |
16:09
Automation Step by Step
Рет қаралды 70 М.
Apache JMeter Scripting Challenge 4 #jmeter #testing #performance #youtubevideo #videos
16:37
Performance Test Engineer - English - 1
Рет қаралды 511
Best Practices: Performance Testing Using JMeter
12:59
Littles Law
Рет қаралды 2,5 М.
To read an OTP using SMS API in JMeter
12:32
Performance Testing
Рет қаралды 4,6 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 30 МЛН