Questions tagged as 'testes'

1
answer

How can I test an exception in my code with unittest?

I'm studying some of Python's unittest and I've packed it. In my code the user must enter a valid value, if an invalid value occurs it should fall into the exception, but how can I test this? My code looks like this: if moeda not in (2, 5, 10,...
asked by 19.12.2016 / 08:01
0
answers

Include JavaScript files that the test depends on to run in MochaJS

I'm developing a client-side JavaScript application, and I want to do some testing using MochaJS , but the test relies on multiple files JavaScript to run, which are in different folders, such as: Files needed to run the test: js/a.js...
asked by 07.10.2016 / 07:43
1
answer

Error setting test environment [closed]

When running a test, simple to check the settings, the following error appears:    Error: Execution failed for task   ': app: transformClassesWithJarMergingForDebugAndroidTest'.   com.android.build.api.transform.TransformException: java.util....
asked by 01.09.2016 / 15:45
1
answer

How to test POST requests in "Postman" in places where session authentication is required?

Postman is the application built into the Chrome browser I use to test my POST requests. link But the area I want to access is only accessible through login and password. However, since this is not a REST API or anything similar, I have...
asked by 29.05.2017 / 23:49
1
answer

R - Econometrics - Wald test and autocorrelation [closed]

Good afternoon, I would like to know how to perform the Wald Test (for heteroscedasticity) and the test proposed by Wooldridge for autocorrelation. I am using panel data (unbalanced), with Pooled OLS, Fixed Effects and Random Effects with...
asked by 02.05.2018 / 20:30
1
answer

Build Variant Android studio

Why does my build variants (first image) not have the options I want for the build? In this case I intended the "mockdebug" as shown in the second image. WhatdoIneedtodotogetalltheseoptionsinbuildvariants?build.gradleapplyplugin:'com.an...
asked by 21.08.2017 / 16:18
1
answer

How to get the result of a JUnit assertEquals test and why in a String type variable?

I'm having a JUnit test case to test a simple class. The class to be tested contains only one "sum" method that adds two numbers. To test if it is correct, I use the following method: Assert.assertEquals(2, meu_objeto.sum(1, 2)); The resu...
asked by 25.04.2016 / 18:53
1
answer

Error: RuntimeException when trying to mount test case

I'm trying to set up a simple test using espresso and the following errors appear: Code:importandroid.content.Context;importandroid.os.Bundle;importandroid.support.annotation.Nullable;importandroid.support.test.InstrumentationRegistry;import...
asked by 25.08.2016 / 19:05
1
answer

After triggering a pdf download service on jmeter, can the "badly formatted" response be a pdf? If yes, how?

I'm working on a stress test where I download a file, in a very simple GET service: / api / report / XXXXXXXX / user / 23452 / file / 9989 / download Everything happens OK, I wonder if the download response, which comes with characters of...
asked by 28.11.2018 / 21:35
1
answer

Software for comparison between php frameworks

Good evening guys. Can anyone tell me some php framework comparison software? Softwares that compare performance, response time, load time, etc.     
asked by 22.08.2018 / 00:45