Contributions
- 1.7KViews0likes0Comments
Re: Sometimes tests fail in a random way
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!1.8KViews0likes2CommentsSometimes tests fail in a random way
Hello! I have problems with running my tests. Some tests fail in a random way. Tests, have been failed once, can be passed next time. Error examples: System.InvalidCastException : Unable to cast object of type 'System.DBNull' to type 'System.String'. at AutomatedQA.script.var.op_Implicit(var arg) 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) System.InvalidCastException : Specified cast is not valid. Can you help me? How can I solve this problem? OS: Windows 7 TestComplete/Test Execute version: 10.0.531.7 Thank you! Anastasia1.8KViews0likes7Comments