Questions tagged as 'test'

1
answer

Tools for Stress Testing in Angular JS?

How are you? I'm looking for testing tools that will help me to Angular JS. JMeter can not stand it. I've been researching other tools, and Gatling is the closest, but he does not have the metrics to know how long the server goes down. Do you...
asked by 29.05.2018 / 19:47
1
answer

Perform unit test in Eclipse or Visual Studio

Having the following function: public int Suma (int numero1, int numero2){ return numero1+numero2; } Be in Java or C# . Is there a way to test this function without having to invoke it in the MAIN? So if I have several fu...
asked by 07.03.2018 / 19:12
0
answers

PHPUnit test error csrf Laravel, in gitlab CI / CD docker

I am having problems when writing POST requests in the integration tests, in the local machine where I launch the tests they pass without problems, but in the docker container of gitlab fail by the token csrf, even if I put the token in the peti...
asked by 19.11.2018 / 22:14
1
answer

How to change the value of a mock at run time?

I have the following method: public void ingresarCarga() { Integer idCarga = ingresoDao.ingresar(); ResultadoIngreso resultado; do { resultado = archivoDao.procesar(); try { if(resultado.getCodigo() ==...
asked by 29.05.2018 / 18:36
0
answers

Select item within datatable with laravel dusk

To be able to complete my test I have to select an option of a select within a table with datatable ( link ) but laravel dusk does not find the element: I try to select the select option in this way in the test: $browser->with('#tabla...
asked by 17.04.2018 / 21:57
2
answers

Using @Mock in Java

When using @Mock my @Test does not work although validating through a simple debug works completely, I do not understand how to use the Mocks and what I am testing is very simple: import org.junit.Test; import org.junit.runner.RunWith; import...
asked by 19.03.2018 / 12:46
0
answers

Integration Test Exercise in JAVA

Test or Integration Test Consider the following Bank class: public class Bank{private Account[] accounts; public Bank(int numAccounts) { accounts = new Account[numAccounts]; } public int getNumberAccounts() { int...
asked by 28.12.2018 / 20:38
1
answer

junit Test in Spring boot Duplicate error how to fix it?

Best regards to the community I am doing unit tests in Spring boot in mysql if someone in the community can help me in solving this case thanks. I leave the code: @RunWith(SpringRunner.class) @DataJpaTest @AutoConfigureTestDatabase(replace=...
asked by 02.12.2018 / 01:05
0
answers

Problem when setting rps Jmeter

I have a problem and I have to do a load test where I have the rps, the problem comes when I put a "throughput shaping timer" to control the hps that does not do it correctly or a "constant throughput timer" and he continues to ignore me when do...
asked by 30.10.2018 / 16:13
1
answer

Selenium IDE and WebDriver

I have started a project of unit tests of a web. For this I have decided to use Selenium, but I have had a series of doubts and problems. Selenium IDE and the WebDriver are on the web, this second one seems to be a little abandoned, and gives...
asked by 26.10.2018 / 08:53