Forum Discussion
Thank you for repply!
I'll try to describe a problem in more detail.
There are about 150 test cases in our project. I write them to test a .NET WinForms application. Tests perform operations with DevExpress controls, I don't work with database there. Test cases are also written in .NET (C#).
If I run tests on my computer (Windows 7) using Visual Studio, this problem doesn't appear, and all tests are successfully passed. But when I run these tests on remote computer using NUnit, some tests fail randomly.
Examples of errors:
1. System.InvalidCastException : Unable to cast object of type 'System.DBNull' to type 'System.String'. at AutomatedQA.script.var.op_Implicit(var arg) at iikoTest.Office.Controls.OfficeContextMenu.Select(String itemtext) in c:\OfficeAutotest\Tests\OfficeTests\iikoTest.Framework.Office.Controls\src\OfficeContextMenu.cs:line 125 2. System.MissingMethodException : Method 'System.DBNull.Click' not found. at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at AutomatedQA.script.var.VarDelegate.CallNoPop(var[] args) at AutomatedQA.script.var.VarDelegate.CallStatic(var[] args) at iikoTest.Office.Controls.OfficeButton.<Click>b__0() in c:\OfficeAutotest\Tests\OfficeTests\iikoTest.Framework.Office.Controls\src\OfficeButton.cs:line 32 3. System.InvalidCastException : Specified cast is not valid. at iikoTest.Office.Controls.OfficeRadioGroup.FindItemByText(String itemtext) in c:\OfficeAutotest\Tests\OfficeTests\iikoTest.Framework.Office.Controls\src\OfficeRadioGroup.cs:line 65
I can send you report made by ReportGenerator.exe.
Thank you!
Sorry, I don't really have any experience in that area. Might want to contact smartbear support if no one else on here is able to help.
- tristaanogre8 years agoEsteemed Contributor
I want to check understanding...
You're running your tests using the AutomatedQA integration into visual studio, building your tests into objects and such within Visual Studio and running them in VisualStudio, not as projects or scripts within TestComplete, is that correct?