CppStars / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Getting System.NullReferenceException:Object reference not set to an instance of an object #933

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Selenium Webdriver C# Test with [Test, Parallelizable] as attributes
2. Provide the Test data from an XML
eg: 
 [DataSource("TestData/EO/M01_FindAFunction/TS01_FindAFunction.xml", "TC01_ValidateFindAFunctionWithMultipleTestConditions")]
3. Ensure this test data has multiple rows with different test data combinations
eg:
<TC01_ValidateFindAFunctionWithMultipleTestConditions>
    <snumber>10007</snumber>
    <searchcriteria>streetaddress</searchcriteria>
  <TC01_ValidateFindAFunctionWithMultipleTestConditions>

  <TC01_ValidateFindAFunctionWithMultipleTestConditions>
     <snumber>10007</snumber>
    <searchcriteria>city</searchcriteria>
  <TC01_ValidateFindAFunctionWithMultipleTestConditions>

  <TC01_ValidateFindAFunctionWithMultipleTestConditions>
     <snumber>10007</snumber>
    <searchcriteria>state</searchcriteria>
  <TC01_ValidateFindAFunctionWithMultipleTestConditions>
4. Using TestDriven.Net/Gallio Icarus execute the above Test Method

What is the expected output? What do you see instead?
Expected:
During the parallel execution few of the tests (Test with a data combination) 
is getting failed. The failure is due to the exception
"System.NullReferenceException:Object reference not set to an instance of an 
object". 

Actual: The test with different data combinations should be executed 
successfully.

What version of the product are you using? On what operating system?
Operating System: Windows 7
Browser :IE 11
Installed: GallioBundle-3.4.14.0-Setup-x86.msi
.Net framework version:4.5

Please provide any additional information below.
This exception has nothing to do with a specific test data. The failures are 
random which means that a test which failed earlier when ran again is getting 
passed and vice versa.

Original issue reported on code.google.com by pavantur...@gmail.com on 10 Dec 2014 at 12:02

Attachments: