返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [testing]

Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.

Filter by
Sorted by
Tagged with
-1
votes
1answer
10 views

Codeception: What combinations of test groups are possible?

Codeception allows to assign tests to one or multiple groups (see http://codeception.com/docs/07-AdvancedUsage.html#groups). These groups may be included or excluded when a testsuite is started (see ...
0
votes
0answers
4 views

Codeception: List all tests of a group

It is possible to execute one or several groups of tests in Codeception. There are multiple ways to assign a test to a group (tag with @group annotations, add a group configuration in a yaml or add a ...
0
votes
1answer
15 views

How to check call count per request type with requests_mock?

I'm trying to use requests_mock in my tests to mock a function making multiple HTTP requests with different methods. So I do something like this: with requests_mock.mock() as mock: mock.get(...
0
votes
0answers
19 views

Difficulty asserting element text

I have difficulty asserting a message displayed on a given element. The message displayed on the device is separated into two lines. To this end, I added the "assertEquals" command. However, after ...
-1
votes
0answers
8 views

Recomendations for Test IdPs

I have set up a shibboleth service provider, and would like to be able to test it using an example IdP. Are there any that you would recommend? Are there any safety risks in using an online test IdP?...
-1
votes
0answers
31 views

Testing method that store data in two tables in Laravel

I've a method for create a new user, that create a new row in other table domains. I think that only, I can do the test, if when I return the api response, I return the user and domain data, which I ...
0
votes
0answers
8 views

How to test websockets (gateways) using unit tests

I wrote a simple server adding a todo using sockets. // todos.gateway.ts import { SubscribeMessage, WebSocketGateway, OnGatewayInit, WebSocketServer, OnGatewayConnection, ...
1
vote
0answers
15 views

Test an Action with multiple dispatches (Loading, error and success)

How could I create a test for an Action with multiple dispatches(Loading, error & success), let see one of my actions: import axios from 'axios'; import { CompaniesActionTypes } from './types'; ...
0
votes
0answers
19 views

Microsoft Bot working in emulator but not in azure web chat

I have a bot developed in Bot Framework SDK 4.0, .Net Core 2.1 . I have deployed this in local IIS and when tested with emulator locally it works well. I have configured it in Azure, set message end ...
0
votes
0answers
17 views

Koin Moduledefinition on KoinTest

I try to use on a unit test (Kointest) my ModuleDefinition object (not Koin Module) but KoinTest only let me use the Object "Module". If a try this: startKoin { modules(uiModule) } The error ...
1
vote
2answers
18 views

JMeter JSR223 PostProcessor GET COOKIE

Every link I've found about cookies in JMeter is based on cookie manager. But unfortunately, JMeter losts cookies if path is changed, and I can't change JMeter properties to use solutions about that, ...
0
votes
1answer
21 views

why is this pytest of simple boolean logic failing? [duplicate]

I don't understand why my pytest of the following function is not passing: solutions/_and.py def _and(a, b): if a: return b return False test_and.py _and_path='./solutions/' import ...
1
vote
1answer
36 views

Proper way to close dialogs in Flutter tests

Flutter's WidgetTester has a pageBack() method for popping the route stack. When I open a page as a fullscreen dialog using MaterialPageRoute's fullscreenDialog property, the pageBack() method does ...
0
votes
0answers
15 views

SpyingOn multiple sync functions with Jasmine Angular7

I have an async function with calls two additional async functions that return data from a service. Then I check the status of what each async call returned and do some basic logic. I am trying to ...
2
votes
1answer
48 views

How does one test optional features in Rust?

I have a package I want to add an optional feature to. I've added an appropriate section to my Cargo.toml: [features] foo = [] I wrote an experimental test for the basic functionality of the cfg! ...
-4
votes
0answers
37 views

How to solve this problem, i am unable to think of an algo that satisfies the input and output [on hold]

I am unable to think how are they splitting the weights. ABC is taking one of her kittens out on several hiking trips, and they need to pack their backpacks. They have a number of items (tents, ...
0
votes
0answers
9 views

Software: Quality Assurance VS Quality Science?

I want know the difference between "Quality Assurance" and "Quality Science" as it relates to software. I've researched in Google and not found anything about "Quality Science".
0
votes
1answer
39 views

CMake: prevent building test executable target in subdirectory library project

I have written a small library that uses doctest. In CMakeLists.txt I have: ... add_library(my_lib STATIC ${SRCS} $<TARGET_OBJECTS:common_files>) add_executable(tests ${SRCS} $<...
0
votes
2answers
26 views

python- Best techniques to split datase to get high performance accuracy

I have applied these 4 methods: Train and Test Sets. K-fold Cross Validation. Leave One Out Cross Validation. Repeated Random Test-Train Splits. The method "Train and Test Sets" achieve high ...
0
votes
0answers
16 views

Ticking a checkbox in $client->submitForm(…)

Is it possible to check a checkbox by its displayed value in a functional test when using $client->submitForm(...)? It is possible to check a checkbox by ordinal position such as: $buttonCrawlerNode =...
0
votes
0answers
27 views

React, jest: can't access parentNode with ref

I am learning how to test components. This is the component I'm trying to add tests to: http://github.com/sickdyd/react-dynamic-badge/tree/testing This is the main file for the tests: http://...
0
votes
1answer
41 views

Where I can find System.out.println output when running Selenium in Eclipse?

Where would I find in Eclipse 4.9.0 a view which displays System.out.println() outputs? I am running tests via Ant script from the Eclipse's Window. I can see the console output of the build but no ...
0
votes
0answers
39 views

chromedriver does not execute script, selenium test finishes with no results printed out

I have this code in a test helper class @staticmethod def setup_with_new_displayname(): """ Sets the application up for tests. 'execute_script' functions had to be called as a workaround ...
0
votes
0answers
9 views

NAO (Choregraphe) Name error occuring whenever i run my code

I have downloaded the choregraphe 2.8.5 for Nao. I got same error whenever i try to run my code. I have reinstalled the software but the problem has not resolved. This is the error I got. [ERROR]...
-1
votes
0answers
17 views

Laravel test api controller fail, method on production work fine and logs not show problem

I'm working with controller for my API, and then create a test for method update I cured a very strange thing. If I test the code in postman, it works correctly, and the PUT / PATCH method works ...
0
votes
1answer
19 views

Rails app testing with RSpec and Capybara. I get Error Capybara::ElementNotFound

_customers_table.html.erb <table> <thead> <tr> <th>Name</th> <th>Phone number</th> <th>Description</th> <th ...
-1
votes
0answers
17 views

supertest ( should ) - Array of objects passes as an Object type

I am using Mocha with supertest and should In response I have array of objects e.g. [{ id: 1, name:'Mark'}, { id: 2, name:'Lucy'}] it('Should get example names', function ( done ) { ...
0
votes
0answers
5 views

NPM Factory-Bot/Girl how to export a factory definition for use in my NodeJS specs?

JS newbie here. I am using Jasmine to test a NodeJS application which uses MongoDB and Mongoose, and I would like to replace my static test fixtures with dynamic factories. http://github.com/ratson/...
0
votes
1answer
37 views

Not able to run Tests in VS code

I am fairly new to programming( 1st year CompSci). I decided to write my java code in VSCode. I Have a test file but whenever i try to run the test i get the following errors in the Debug Console:- ...
0
votes
1answer
19 views

Test is passing, but assertion error given after

I have this weird situation which I don't understand. In my vue component I use "Repository / Service" for making API calls. It uses axios: I import it in a component: import { RepositoryFactory } ...
-4
votes
0answers
14 views

App project with interactive map for university

I wanted to get some advice on how to go about this project, the app has to be made on android studio. The part i need assistance with is that one of the features on the app is the same concept as ...
0
votes
0answers
12 views

How to parametrize rails system test based on fixture objects

In a Rails (5.2) project I want to parametrize a system test (Capybara) based on different objects from a test fixture. I have: class SomethingWithUsers < ApplicationSystemTestCase setup do @...
0
votes
0answers
5 views

Test assert_broadcast_on without specifying the message content

I am writing tests for a Rails 6 app. I have an action, post "/action", that implies messages broadcasted to a channel, user_channel1. I tried to use assert_broadcast_on in my integration tests. ...
0
votes
0answers
6 views

get or post within ActionCable tests in Rails 6?

I am using a JWT to authenticate my user. So when a user want to connect to the ActionCable server, it does something like this: Get a JWT from REST endpoint: POST /users/sign_in Establish a ws to ...
0
votes
0answers
14 views

What is the best method to calculate accuacy test for machine learning model

I want to know the correct method for calculate accuracy test This is a code for training model then calculate acuracy for testing. I used three method for calculate accuracy: 1-accuracy_score()...
0
votes
1answer
22 views

Testing react-router with Shallow rendering

I have my react-router component such as : <Switch> <Route path="/abc" render={() => <ComponentTemplateABC component={containerABC} />} /> <Route path="/def"...
0
votes
0answers
17 views

Jest mock promise a test for emiter to emit

I have the following method: loadImage = (image?) => { const src = this.src; this.imageWillLoad.emit(); this.fetchImage(src) .then(img => { // want to test this part ...
0
votes
0answers
38 views

How to test a class constructor? [duplicate]

I'm developing racetrack. I have to test that the Track meets the creation requirements (max square size, etc). How can I test the constructor, so that the principle "a failed test, a problem" is ...
0
votes
0answers
18 views

DAO testing: NoClassDefFound error androidx/test/InstrumentationRegistry

Hello everyone I am writing DAO test and I am stuck at this line: database = Room.inMemoryDatabaseBuilder( getContext(), SomeDatabase::class.java).build() I am getting this error: java....
0
votes
0answers
14 views

CodeceptJS closing browser window after finish

I´m new to CodeceptJS with Puppeteer. I want to let my window browser open after the finish. Feature('Login'); Scenario('test', (I) => { I.amOnPage('http://google.es') });
0
votes
0answers
7 views

How to display test report by Suite - Jenkins Junit Plugin

I am actually working on monorepo project with almost 20 differents projects. My actual feature is to display test result by project name (Suite) instead of by package. I thought about several ...
0
votes
0answers
28 views

How to test JSON returned by controller using expected DTO?

I use spring-test 5.0.7 and run into the next issue: DTOs: @Data @AllArgsConstructor @NoArgsConstructor public static class SomeDTO { private String uid; private Object child; } @Data @...
0
votes
1answer
28 views

Unit tests design & mocking

Say I have the following class and i want to test it. class SearchRecommended: def __init__(self, request2template): self._r2t = request2template def handle(self, request: Request): ...
2
votes
2answers
39 views

Azure Functions unit-testing errors (TimerTrigger. HttpFunction)

I am currently following this guide (http://docs.microsoft.com/en-us/azure/azure-functions/functions-test-a-function) for adding testing to my Azure Functions application. Currently I have built out ...
0
votes
0answers
42 views

Run cmd command using python (Stop/Start a service)

So, i would like to know if someone knows how to stop/start service using python, IIS (W3SVC - service name). I tried to do it several times unfortunnatly nothing worked (tried it with subprocess, ...
0
votes
1answer
12 views

Uphill battles with unit/rest testing with spring boot and kotlin

Im not entirely sure if this is right place for this kind of question, but im gonna try and take atleast few minutes off this hell they call testing with spring boot. Im looking for any resource ( ...
0
votes
0answers
20 views

Laravel testing with mutliple databases in memory

I like setup my testing suite in laravel app with two (2) database connections. Also for questions with Gitlab, I need a configuration that allows me to indicate to gitlab, that when doing the tests ...
0
votes
0answers
16 views

airflow test mode xcom pull/push not working

I try to test 2 tasks through the airflow cli test command` The first task run, auto pushes last console out to xcom and i see the value some value in the airflow GUI as expected When i run the ...
0
votes
0answers
12 views

Testing client resolvers in Apollo Client

I have the following tiny fullstack Apollo project with the following schema: const { gql } = require('apollo-server'); const typeDefs = gql` type Query { books: [Book] } type Book { ...
-1
votes
0answers
17 views

automatic assert on all row and columns of a table

I would like to use a unit test tool in python to do test on database content. My problem is on the assert part of the test. I would like to write something like assertEquals(tableA,expectedResults....

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞