Skip to main content

All Questions

0 votes
0 answers
66 views

Problem displaying parameters in the Azure Deovps test report

Problem Description: I am encountering an issue while running automated Selenium tests in Azure DevOps. The tests are running with various parameters, and they display correctly in Visual Studio. ...
Patryk's user avatar
  • 1
-1 votes
2 answers
443 views

How can I pass the JSON values as parameters in the method?

I'm working on Nunit's data-driven method and I'm stuck with this issue. I want to pass values from the JSON file as the parameters in the test method. 'I've done this much so far but it's giving me ...
Khizar Sohail's user avatar
0 votes
0 answers
99 views

Timeout in C# UT Visual Studio does not work

I have problem with Timeout attribute (MSDN doc) for tests in C# in Visual Studio 2019. For some reasons sometimes it does not end test if declared timeout is reached - for example: test is set to ...
Grzanek's user avatar
  • 21
0 votes
1 answer
1k views

Unable to Pass Selenium tests within Azure Pipeline

I am trying to build out UI test cases in our CI/CD build pipeline within Azure Devops and I can't seem to workaround a basic use case where we route to one of our internal web pages landing screen, ...
Robin's user avatar
  • 13
0 votes
2 answers
1k views

AssemblyInitialize and AssemblyCleanup not triggering

In MSTEST, I want to send out a mail once all the test run has been completed. Currently I have included my code to send mail in the [TestCleanup] method in MSTEST. The problem is, the mail is sending ...
Kamal's user avatar
  • 21
1 vote
1 answer
2k views

NUnit Framework AssertionException with no clear reason why

Per my code below. I'm testing UI to ensure correct permissions for a application are applied to certain user accounts. When I run the below, the test passes at "Assert.Pass(); //marks as a pass ...
Damo's user avatar
  • 2,080
0 votes
2 answers
395 views

MSTest Login to web app and assert web app is loaded before beginning tests

I am currently using MSTest in visual studio 2019 and am having an issue with selenium finding an element on the dashboard after login. After some debugging I found that the login method that I have ...
Kody Berry's user avatar
2 votes
2 answers
119 views

How can i define a different order of my unit tests?

I have these 3 tests: using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System; using System.Threading; namespace FirstTestCase { class _04_02_Media { class ...
DjNewma's user avatar
  • 65
1 vote
1 answer
78 views

OneTimeSetup doesnt seem to be finishing before other tests are ran

I am currently trying to find an element on the webpage, but am getting an exception that it doesn't exist. I think this is happening, because the webpage doesn't get a change to load all the way ...
Kody Berry's user avatar
-5 votes
1 answer
226 views

Remove and Add comma in String at Dynamic way

I have address separated by comma like address1,address2,city,country I need to remove comma if the any of value is empty or null at run time.
Geeta Parshotam's user avatar
0 votes
1 answer
131 views

Explicit wait doesn't pause the flow

I am new to Testing and have been learning from a Udemy course. I tried to use explicit wait in a test where I am opening two differenct Urls.before clicking on the second Url, I want to have a wait ...
Waseem Abbas's user avatar
0 votes
1 answer
357 views

How can I run some test cases with chrome and come with Firefox using C# mstest?

There are total 10 test cases. I need to run some testcases with chrome lets say 1-3 and 6-8 test cases with chrome and 4-5 and 9-10 test cases with firefox. The code in helper file is static public ...
Mehwish's user avatar
  • 55
0 votes
1 answer
1k views

How to pass Test data to NUnit hooks like [TearDown]

I have a testing framework that has been converted to heavily utilize NUnit [Parallelizable]. I used to store contextual test data in the base class of the [TestFixture] which NUnit orchestrates the ...
Reed's user avatar
  • 1,642
0 votes
1 answer
879 views

VS/Selenium - Object reference not set to an instance of an object with null driver

I'm trying to get a list of iFrames on a page, but for some reason, I keep getting two errors. Namely, I get null driver and "Object reference not set to an instance of an object" when I do ...
Hegemon1984's user avatar
1 vote
0 answers
327 views

Drag and Drop function is not working in selenium Edge Browser

Following is HTML for source element: <div title="" class="dragItem row " id="DocSelected-1" draggable="true" type="11" data-content="Salary ...
Balaji Mohan's user avatar

15 30 50 per page
1
2 3 4 5
10