Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I have created a test plan for a user for a web application. Test plan is running as expected but on registration screen, user has to enter capcha. I m not able to handle it from Jmeter.

share|improve this question
    
Please frame the question with concrete details. What have you tried? What is failing ? –  chuan Jul 10 at 9:08
    
I have created a test plan for a user for a web application. Test plan is running as expected but on registration screen, user has to enter capcha. I m not able to handle it from Jmeter. After goggling I found a solution on stack over flow. –  Committed to quality Jul 10 at 9:32
    
I found this on stack overflow: 1. Create a Beanshell Sampler In it, the following code displays the captcha and waits for user input filenameOrURL = new URL("${captchaimage}"); image = Toolkit.getDefaultToolkit().getImage(filenameOrURL); Icon icon = new javax.swing.ImageIcon(image); JOptionPane pane = new JOptionPane("Enter Captcha", 0, 0, null); String captcha = pane.showInputDialog(null, "Captcha", "Captcha", 0, icon, null, null); –  Committed to quality Jul 10 at 9:33

1 Answer 1

Solution is here :

http://stackoverflow.com/questions/6964358/jmeter-testcases-which-can-handle-captcha

Or you can disable captcha from code before test.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.