Como fazer login no aplicativo da web usando o JMeter?

2

Como fazer login no aplicativo da Web usando o JMeter e quais são os parâmetros que precisamos fornecer para o login, o logout e o botão de login?

    
por Bala 12.06.2015 / 08:44

2 respostas

0

O cenário habitual é o seguinte:

  1. Registre o fluxo de login / logout usando o Gravador de script de teste HTTP (S) do JMeter
  2. Cenário de parametrização para testes com vários usuários para fornecer credenciais diferentes para cada usuário virtual, ou seja, configuração do Conjunto de dados CSV
  3. Adicione o Gerenciador de cookies HTTP para ativar o suporte a cookies
  4. Detectar todos os parâmetros dinâmicos que são codificados durante a gravação e substituí-los por variáveis. Consulte o guia Teste de login do ASP.NET com o JMeter , por exemplo, sobre como implementá-lo.
por 14.06.2015 / 10:55
0

Como faço login em um aplicativo da web usando o JMeter?

Isso está documentado no Manual do Usuário .

As instruções abaixo são para login, o logout será semelhante.

Efetuando login em um site da web

It's not the case here, but some web-sites require you to login before permitting you to perform certain actions. In a web-browser, the login will be shown as a form for the user name and password, and a button to submit the form. The button generates a POST request, passing the values of the form items as parameters.

To do this in JMeter, add an HTTP Request, and set the method to POST. You'll need to know the names of the fields used by the form, and the target page. These can be found out by inspecting the code of the login page. [If this is difficult to do, you can use the JMeter Proxy Recorder to record the login sequence.] Set the path to the target of the submit button. Click the Add button twice and enter the username and password details. Sometimes the login form contains additional hidden fields. These will need to be added as well.

Fonte 5.6 Conectando-se a um website

    
por 12.06.2015 / 09:11

Tags