Category "testing"

Application controls are getting identified differently by CodedUi Test Builder

I am not able to Identify correct control of an application by Coded Ui Test Builder Seee this Image

What's the best way to test props you pass to child components?

I'm testing a component using Vue test utils and Jest and I'm wondering what's the best way to test you are passing the correct values to a child components in

IndexError: invalid index to scalar variable while testing

This is the code used in testing. I have been getting the error shown bellow. Can someone please tell me how to solve it? This is a custom trained model. I have

Failed to load module 'project name'

I added unit test target to my existing project, but while @testable import Product_Module_Name getting error "Failed to load module 'Product_Module_Name'". I

How can I test google.maps.Geocoder?

Hi! I'm attempting to write a "simple" test to check for a react class component state change. Specifically, I'm testing if the lat(latitude) and lng(longitu

How to deal with abstract Given steps in BDD?

At the base of our application is a big configuration set, which defines abstract groups of devices and they are omnipresent as part of the Gherkin scenarios. N

how to test button that call submit form using jest and react testing library

so I am trying to test that the onSubmit function is getting triggered if the button is clicked - the way im doing this is through testing the internals of the

How to execute scala tests programmatically

I'm looking for a way to execute scala tests (implemented in munit, but it could be also ScalaTest) programmatically. I want to perform more or less what sbt te

maven jacoco plugin reports always show 0% of coverage

JaCoCo reports always shows 0% of coverage but Intellij integrated report is ok. I already see others StackOverflow questions but none helped. Below is my jacoc

How to test stenciljs nested components

I have a stenciljs component embedded inside another stenciljs component <parent-component> <child-component attrz="x"> </child-component>

Mocking internal function call in Kotlin

I am a complete beginner in terms of Kotlin and I am finding some issues while trying to test out a Ktor based application. I have a file in my endpoints packag

Why are tests failing in Ruby on Rails?

I am studying the book "Agile Web Development with Rails 4". In it, at one moment associated with testing, it gives two errors Error: ProductsControllerTest#tes

Sending messages to durable queue using Rabbit perf test tool

How can I send messages to a durable queue using the Rabbit Perf Test tool? I am getting this following error: Caused by: com.rabbitmq.client.ShutdownSignalExc

How to test CSS properties defined inside a class with react testing library

I am trying to test CSS properties that i have defined inside a class in css, wing the react testing library. However I am unable to do so. Adding the simplifie

Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverter

exeute xcrun xccov view --archive --file #{file_path} #{xcresult_path} > result.txt console log: 2020-09-17 15:33:01.346 xccov[80302:9272810] Requested but

getting error as TypeError: __init__() got an unexpected keyword argument 'cache_valid_range' . It is not present in ChromeDriverManager Python

I am trying cache_valid_range for my ChromeDriverManager constructor, below is a code snippet enter image description here But I have checked the latest ChromeD

How to mock VueAxios in jest

I want to test my Api functions which are on separate file outside vue component. Inside this methods i call api by Vue.axios, and i can't find the way to mock

Pytest: How to know which fixture is used in a test

Maybe I'm not "getting" the philosophy of py.test... I'm trying to re-write a bunch of tests for aws lambda code that receives events (webhooks with json payloa

How to see stacktrace / cause of an error in Jest?

I'm trying to debug a nodeJS app. I have some code which causes an error, a variable is undefined. When I run the code normally, the error is very clear and eas

Why is my Java function in my Karate feature returning a String instead of an array?

I am new to software testing and working in a Karate environment. Currently I am working on a story where I have to test that the maximum number of database ent