Click here to Skip to main content
15,867,594 members
Everything / DevOps / Testing

Testing

testing

Great Reads

by Mark Pelf
We are giving an overview of 7 free Regex tools to test and develop Regex expressions
by Stuart Wheelwright
Using ServiceMon to obtain performance statistics for web services
by Aram Tchekrekjian
More about pattern matching types with a usage example for each type
by linush
Explains how to mock test an EF Model-First project using ADO.NET Entity Data Model template

Latest Articles

by Dev Leader
How to leverage WebApplicationFactory in ASP.NET Core for testing
by Suhagkumar Vamja
In this article, we learn about Playwright, how it works, and why it is a good choice for web automation with Java.
by Suhagkumar Vamja
In this article, we will learn how to set up Cypress and run the web automation tests (in series and parallel) on the LambdaTest cloud grid.
by Suhagkumar Vamja
In this article, we see what visual regression testing is and how it shapes the automation testing world with the help of automated visual regression testing tools.

All Articles

Sort by Updated

Testing 

15 Feb 2024 by Dev Leader
How to leverage WebApplicationFactory in ASP.NET Core for testing
22 Nov 2023 by Suhagkumar Vamja
In this article, we learn about Playwright, how it works, and why it is a good choice for web automation with Java.
20 Nov 2023 by Suhagkumar Vamja
In this article, we will learn how to set up Cypress and run the web automation tests (in series and parallel) on the LambdaTest cloud grid.
9 Nov 2023 by Suhagkumar Vamja
In this article, we see what visual regression testing is and how it shapes the automation testing world with the help of automated visual regression testing tools.
2 Oct 2023 by GabrielFromMississipi
I'm developing a .NET Core app and I need to make some tests for Repository. Nevertheless, I had some problem for Net Core Test explorer configuration. When I settle down the test project path, it couldn't be seen it in Test explorer tree. I did...
28 Sep 2023 by Graeme_Grant
Why are you putting a project within another project? Each project should be it's own branch set. NetCoreApi.sln ├── NetCoreApi.csproj │ ├── project folders and files goes here ├── NetCoreApi.Tests.csproj │ ├── project folders...
11 Sep 2023 by Aram Tchekrekjian
More about pattern matching types with a usage example for each type
26 May 2023 by richwfowler
Opinions requested, please. I lave a large C# application that primarily has many custom data entry pages. It also produces on-screen graphics. I want to produce a test application to controlthe target application via the UI. I can make minor...
26 May 2023 by Graeme_Grant
There is no information given on how the application was built. This is where thee Mvvm design pattern excels. It allows for Unit testing - ref: MVVM - Writing a Testable Presentation Layer with MVVM | Microsoft Learn[^] For UI testing, look at...
8 Apr 2023 by OriginalGriff
Repost: Deleted. Please do not repost your question; use the Improve question widget to add information or reformat it, but posting it repeatedly just duplicates work, wastes time, and annoys people. I'll delete this one.
21 Feb 2023 by OriginalGriff
Reviewing and testing software is complex and time consuming: this site isn't set up to help you in that way, and everyone here is a volunteer - so you would be taking time that they could be spending earning money to keep a roof over their...
21 Feb 2023 by Richard MacCutchan
This site provides assistance in diagnosing and fixing problems with code that you are working with. But we cannot do a full review and analysis as described above. You probably need to employ a professional to do what you want.
1 Feb 2023 by Rudra Ganesh Subbarayulu
I upgraded gatling version from 3.7.6 to 3.9.0 I updated the version in the build.gradle.kts file plugins { id(“scala”) id(“io.gatling.gradle”) version “3.9.0” } gatling { logHttp = io.gatling.gradle.LogHttp.FAILURES logLevel = “WARN” }...
16 Nov 2022 by aharris1012
Does anyone have experience testing with Jest/Enzyme? I need to write a test that renders the first value on selection and other parameter fields are hidden. This is an example of what my code looks like:
12 Oct 2022 by Member 15796272
For this: @when('he enters search term "{text}"') def step_he_enters_searchterm(context,text): context.driver.find_element_by_id("cludoquery").send_keys(text) You need to write this: And he enters search term "rate" And if you get undefined...
12 Oct 2022 by Gerald McAuley
I writing a simple BDD script using Cucumber(Behave), python and selenium. The first two steps of my feature and script work but I having trouble getting a parameter from my Behave feature to my Python script. I keep getting this error when I runt the behave feature: You can implement step...
1 Aug 2022 by Lake Victoria
I am trying to improve my internal team’s dog-fooding process. It’s a bit cumbersome between Confluence docs and Jira. Anyone else facing this? Does anyone have any suggestions on processes or tools? What I have tried: I've searched for...
2 Jul 2022 by murlikrishna
Which of the following is a valid collection of equivalence classes for the followingproblem: Aninteger field shall contain values from and including 1 to and including 15a. Less than 1, 1 through 15, more than 15b. Negative numbers, 1 through 15, above 15c. Less than 1, 1 through 14,...
15 Jun 2022 by Emon Ahmed
Task: Add 15 minutes and 20 minutes patterns to a given time. [08:00:00] Increment the time by 20 minutes, plus add every quarter hour to it. What I have tried: let x = new Date('2100-01-05T08:00:00') let y = new...
15 Jun 2022 by ludosoep
Both the 15 and 20 minute intervals are dividable by five minutes. Declare a variable outside of the for loop and keep adding five minutes every iteration, test if the minutes are dividable by 15 or 20 and, if true, push them to expected time. ...
14 Jun 2022 by Mark Pelf
We are giving an overview of 7 free Regex tools to test and develop Regex expressions
6 Jun 2022 by Ivan Osipov
We'll discuss why Kotlin is a great tool for domain specific language building
21 Mar 2022 by Peter Huber SG
WpfTestbench helps you to write sophisticated test windows for your WPF controls with few lines of code
15 Mar 2022 by Nikola Breznjak
An introduction to Test Driven Development in Ionic
1 Feb 2022 by Mircea Neacsu
An easy to use unit test framework
26 Jan 2022 by Member 14637786
Hello, so I have a question regarding running integration test project in Azure DevOps build pipeline. My solution has common EF Core Code-First approach with migrations and when I run the tests, it executes Migrate() method from EF Core which...
26 Jan 2022 by Sir CodesALot
I realize this extraordinarily late to the game, but I came across this blog post that demonstrates using a task in a pipeline yaml file to start the service on a Windows hosted agent:...
4 Nov 2021 by User 15325224
I've been trying to use TestProject OpenSDK for Python to generate HTML test reports for my automated tests (with pytest), but I'm getting the following error: No module named 'src.testproject'. I've followed the directions laid out on the...
30 Aug 2021 by Nithin Kolipaka
Hi Guys , I'm facing this issue : TypeError: Cannot read property 'initialPreferences' of undefined > 1 | import { Appearance } from 'react-native-appearance'; | ^ 2 | 3 | export const modedColor = (lightModeColor, darkModeColor) => { ...
31 Jul 2021 by Jason Sultana
Using builder pattern to help unit testing a service with more than just a couple of dependencies
8 May 2021 by ocean potter
I'm trying to write to a 8086 (assembly language) code for a simple calculator but i can't seem to start. I was just introduced to programming two days ago What I have tried: i haven't tried anything yet. I was introduced to programming just...
27 Mar 2021 by Mariusz Siedlecki
I have a Mock in Test that has JSON and it's big. How to load it from a file. Whether Mock should be in the resource directory or should it be in the test directory. @ExtendWith(MockitoExtension.class) class HubServiceTest { @InjectMocks...
24 Mar 2021 by kianoush torkzadeh
Hi, I am trying to unit test a method that converts a razor (cshtml) view to a string and returns it. I tried to mock the HttpContext but was not very successful. here is the method: public static string RenderViewToString(string...
24 Mar 2021 by Richard Deeming
You won't be able to test that method, since it's using HttpContext.Current. You should change the method so that you pass in an HttpContextBase instance - or preferably a RequestContext instance - as a parameter. public static string...
4 Mar 2021 by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
9 Feb 2021 by Luc Pattyn
Hi, welcome to the programming world. You're an optimist, and that is OK. However you will need a lot of knowledge: language, methodology, application domain, ... I doubt assembly (any CPU) nowadays is a good choice for your first coding steps;...
9 Feb 2021 by Patrice T
Quote: I was just introduced to programming two days ago Learning programming with assembler is probably the hardest way to do so. And programming a calculator is not a task for second day programming. My guess is that you are learning...
11 Jan 2021 by den2k88
Hello, I have a Cortex M3 based SOC and I need to test the response to a RAM ECC error. To do that I would need to simulate the interrupt in some way, problem is it is an internal interrupt, so no pins to drive manually, and apparently there is...
24 Dec 2020 by Shah Parth P
Can we have a testimonials like name has a different color and it is hyper-linked to their social profile? the quotes sign ("") can have different color for each review. What I have tried: I have tried few plugins that are available for...
24 Dec 2020 by OriginalGriff
Try Wordpress tech support - they are the ones who can best help you with this kind of stuff: Contact – Support — WordPress.com[^]
20 Dec 2020 by Peter Huber SG
Using a RAM disk instead of an SSD drive prevents an early death of the SSD and the tests run even faster.
20 Dec 2020 by Chey28
Error after running the test case Expected: StringContaining "[3] find needle in the haystack [2] water the plants [1] the thing i need to do " Received: "[3] find needle in the haystack· [2] water the plants· [1] the thing i...
19 Dec 2020 by Member 15025435
i am able to understand your problem, and i have a solution for this too... can u explain me more what are u doing??
18 Dec 2020 by Member 15025271
I have the exact same problem and for the exact same question. The issue is due to the newline character. I am writing my code in C. When the javascript code receives the string it is appending the "dot" along with the newline. Why? I don't...
18 Dec 2020 by OriginalGriff
Look at your error report: the each line of the "Received" data has an extra character at the right hand end which isn't present in the "Expected" data. This is probably why it fails. So go back to the code you are testing in the debugger and...
1 Oct 2020 by KarstenK
Testing is an art of its own, but the best way it to test the real release functions and NOT change them, but for testing it is often needed to write a bit more explicit. When testing functions it makes sense to test all possible input, so...
1 Oct 2020 by Member 14589606
Hello, if a program was not written in a way with proper functions with the given input, what would be the way to write an unit test or integration test, that is the output that is to be compared at the end in a unit test is not contained in a...
1 Oct 2020 by CPallini
The proper way is to treat it as a black box, providing appropriate inputs and checking if expected outputs are produced.
22 Sep 2020 by Member 12799321
I have performed integration Testing on my feature but the problem is when I get the data normally from database it works as expected but when I create mock objects for testing purpose that method GetDetailedSAPInfoById returns null you can see...
30 May 2020 by Todor Iliev
So I've been trying for a few days now and it seems like I just can't really can't understand or find a solution to this whole process. I'm using Selenium so i can simulate a User Input on my 'Website'. Whenever i try to execute my testmethods it...
13 May 2020 by Richard Deeming
You're trying to call a method which accepts two strings, but you're trying to pass in a Dictionary. Computers don't just "guess" what you meant to do; they do exactly what you tell them to do. If you tell it to call a method...
13 May 2020 by Member 14779968
I have my sendRequest method where I am passing my contentType, token and query params. I have used a Dictionary for my query params but I am getting an error. It shows AddQueryParameter takes string name, string value so I am...
13 May 2020 by Richard Deeming
Look at what your setBaseURL method is doing: Create a new RestClient instance; Set its BaseUrl property; Throw that instance away, and return true; When the method returns, the changes you made to the local variable are not persisted...
13 May 2020 by Member 14779968
I want to set my BaseUrl as a string but client.BaseUrl returns a URI, because I have my generic GET and POST methods that use it but I am running into this issue private static bool setBaseURL(string baseURL) { if...
12 May 2020 by Richard Deeming
The IRestRequest doesn't contain any methods for executing a request. You will need an IRestClient instance for that. private static IRestResponse executeAPI(IRestClient client, string httpMethod, IRestRequest request, string basePath) { ...
12 May 2020 by Member 14779968
I have created a generic method executeAPI which will take my httpMethod, my request and basepath. But I have having some issue on how to set this up. But problem is the request from IRestRequest does not contain any method like request.get() ???...
31 Mar 2020 by Member 14779968
I have the following Json and I have converted to classes Json : { "schedule": { "afterStartMinutesBase": 0, "beforeStartMinutesBase": 0, "scheduleType": 2, "id": "00000000-0000-0000-0000-000000000000", "currentSchedule": {...
30 Mar 2020 by Member 14779968
In my API testing I am using Jcontainer to Convert response to Json. Ex: [Test] public void GetUsersList() { var response = us.UserList(); JContainer jsonresponse = rh.ConvertResponseToJson(response); } I am trying to the following...
30 Mar 2020 by Bohdan Stupak
Assuming that the question is in the name getting value of the property is as simple as this var sut = ConvertResponseToJson(req); if (sut is JArray) { var firstElementId = ((JArray)sut)[0]["id"]; } else { var elementId =...
23 Mar 2020 by Mahesh Pratap Singh
You need to study singleton pattern : Singleton pattern [^] Understand this and modify it to return two objects as per your requirement. For your code defaultModel and modelForUpdate should be static. You also need to include a private...
23 Mar 2020 by Member 14779968
Hello I am doing functional API testing. This error occurred when I am trying to serialize my json payload. When I try to run my test I get the following error "The active test run was aborted. Reason: Test host process crashed : Process is...
16 Jan 2020 by Tomáš Růt
This article describes how to create a test project that allows you to both write and fully debug in TypeScript source files.
5 Dec 2019 by RickZeeland
Maybe this will help: Using selenium, how to select a the text in a paragraph which is nested in a div element? - Stack Overflow[^] Or take a look at an alternative for Selenium like Zaptest: automation-testing-tools-for-a-medium-team-5-10-testers[^]
5 Dec 2019 by Member 10037347
I want to select a whole paragraph and then the selected text of this paragraph appears in a text area. I tried many solution but it selects from middle to the end or middle to the start of the paragraph. What I have tried: I have this paragraph: A paragraph is a self-contained unit of a...
23 Nov 2019 by Coldcreek
I am new in testing field and want to go deeper into it.I Have very simple question." If suppose you have an eCommerce website say "www.abc.com" ,how will you find bugs in that website?"What are the simple ways to find bugs in that website?What are the most handy software testing...
22 Nov 2019 by RickZeeland
Maybe one of these: automation-testing-tools-for-a-medium-team-5-10-testers[^] Zaptest looks very promising I think. You might also be interested in: best-software-tools-for-test-management[^]
21 Nov 2019 by User 11956321
Looking for a windows application testing tool, which could generate test reports to validate the application. 1. If the testing tool could save the testing steps and outcome reports in any database or in a queryable structure. 2. The test tool must be able to generate word/pdf reports which...
21 Oct 2019 by hexgear
Chalba is an open source hackable load testing tool. Chalab is inspired from jmeter, gatling, grinder like tool.
9 Oct 2019 by Zebedee Mason
Visual C++ tests are created from Gherkin DSL feature files using a Python 2.7 script
8 Sep 2019 by Sidd Gautama
Declarative, Configurable and Super Easy API testing lib using YAML/JSON steps
31 Aug 2019 by Afzaal Ahmad Zeeshan
Quote: how can i write functional/UI Test cases That is what Selenium is there for, it is not only a bot maker framework. You can write the scripts to test the UI for your application. If you want to unit test the application, then you might want to check other frameworks for Python testing....
31 Aug 2019 by shivam gohel
So the thing is I have created an instagram bot using Python & Selenium. So I am crawling instagram and it does sh*t done. Now the question is how can i write functional/UI Test cases so that i can be sure that the functionality is intact? I cannot just create random users everytime bcs its...
26 May 2019 by shivam gohel
So here is just an statement. I don't know if its practically possible. The question is related to Android Espresso. For the people who are masters in Espresso, you know we don't have any method to access contentDescription via espreso. Right? So is there any way I can get that Element lets...
26 May 2019 by Richard MacCutchan
Getting the content description of an element in espresso test[^]. Google found this very quickly.
1 May 2019 by Javier Carrion
How to create and test a Serverless Function app using Microsoft Azure
13 Apr 2019 by Florian Rappl
How to run End-To-End tests in an Azure Pipeline using Nightwatch.js framework with TypeScript
8 Apr 2019 by Muhammad Usama Khan
What is the concept of DevOps? How does DevOps affect our daily life work. What are the different DevOps tools?
3 Apr 2019 by GregoryPres
Our team uses Typemock's Isolator as a mocking framework and it has the ability to test private methods. Simple Api for verifying private method calls: Isolate.Verify.NonPublic.WasCalled(, "PrivateMethodname"); Also, you can fake private instances and change their behavior which will help you...
2 Apr 2019 by jerry.nothstine
You can access the private methods with reflection: MethodInfo myPrivateMethod = typeof(MyClassBeingTested).GetMethod( "PrivateMethodName", "BindingFlags.NonPublic | BindingFlags.Instance); myPrivateMethod.Invoke( instanceOfMyClassBeingTested, new object[] { parameter1,...
2 Apr 2019 by IlanGreen
I just started a new job as a junior .Net developer and my first task is to cover a solution that has 80% success with unit-tests, in order to assure every piece of code is working correctly. I was able to make it to 37% after covering all public methods by simply calling them from my tests, but...
2 Apr 2019 by F-ES Sitecore
The bad news is that your task is probably impossible. Unit testing isn't something you can retro-fit to an application, it has to be written with unit testing in mind. Trying to retro-fit unit testing to an app not designed for it will often lead to major refactoring of the code. To cover...
1 Apr 2019 by BillWoodruff
1. please explain what this means: "a solution that has 80% success" 2. in general you do not unit test private methods; after all, by definition they are only used from the public API 3. of course, the architecture of an app can be so screwed up that you can't isolate certain classes; as you...
17 Feb 2019 by deepaksharma0390
Hi, I am trying to test the LDAP authentication in an application. For authentication we are getting the InitialDirContext by passing the hashtable arguments. Is there a way I can mock this call. What I have tried: I tried mocking the InitialDirContext as below. ...
24 Jan 2019 by Apriorit Inc, MikeSotnichek
Smart security contract in Cardano and Zilliqa
1 Jan 2019 by NalaBI
Hi, I am new in testing. I have test cases already in TFS and I want to automate those Test Cases using Visual Studio 2017 version 15.9.3.The Associate Test Case is greyed out I cannot select. May you please assist in advising the workaround in finding the solution? Thanks in advance. What I...
23 Nov 2018 by Richard MacCutchan
See Using Microsoft.VisualStudio.TestTools.CppUnitTestFramework - Visual Studio | Microsoft Docs[^].
23 Nov 2018 by Member 13784265
so here I've been trying to do this small manual testing task . i have created a class of teacher and it has a function that creates a student record and rewrites it in its specific position in the file (using linked list). i have a separate header file that has all functions in it and .cpp file...
19 Oct 2018 by Sean Rand
Getting the most from your test runner
25 Sep 2018 by Member 13996859
Here its my code: a = driver.Findelement(By.XPath("Element1"))); b = driver.Findelement(By.XPath("Element2"))); Thread.Sleep(3000); action.ClickAndHold(a).MoveToElement(b).Release().Perform(); This Drag and Drop Action performed well. But when other drag and drop action try to runs, The first...
19 Sep 2018 by Member 13161717
What I do is And he enters a search term "" And in the .py @when('he enters a search term "(.*)"') def step_he_enters_searchterm(context,text): context.driver.find_element_by_id("cludoquery").send_keys(text) This uses regex to find the variable, and it assigns that variable...