smeyn / gallio-testlink-adapter

Moved From Google Code
3 stars 9 forks source link

TestLink.GetTestCasesForTestPlan(testplanid) generates Exception #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. function call TestLink.GetTestCasesForTestPlan(_testplanid)
2.
3.

What is the expected output? What do you see instead?

doesn't return expected List of TestCasesFromTestPlan, generates 
InvalidCastException, presumably when calling XMLRPC dll.
Querying project, test plan, and build methods working ok.

What version of the product are you using? On what operating system?

TestLink 1.9.3 (Prague), TestLinkAPI v1.3a, WinXP x86, Visual Studio 2010 Pro, 
coding in VB

Please provide any additional information below.

Exception details:

System.InvalidCastException was unhandled
  Message=Unable to cast object of type 'System.Object[]' to type 'CookComputing.XmlRpc.XmlRpcStruct'.
  Source=TestLinkAPI
  StackTrace:
       at Meyn.TestLink.TestLink.GetTestCasesForTestPlan(Int32 testplanid)
       at TestLinkAPI.frmMain.TestPlanSelected(Object sender, EventArgs e) in C:\Documents and Settings\REDACTED\My Documents\Visual Studio 2010\Projects\TestLinkAPI-test\TestLinkAPI-test\frmMain.vb:line 137
       at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
       at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
       at System.Windows.Forms.ComboBox.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
       at System.Windows.Forms.Control.WmCommand(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       at System.Windows.Forms.Control.DefWndProc(Message& m)
       at System.Windows.Forms.Control.WmCommand(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ComboBox.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at TestLinkAPI.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
  InnerException: 

Original issue reported on code.google.com by jparu...@gmail.com on 11 Jul 2012 at 8:05

GoogleCodeExporter commented 9 years ago
please disregard, was using the binaries from \bin\Release instead of from 
\bin\Debug
recommend removing the older DLL from \bin\Release from your distro

cheers

Original comment by jparu...@gmail.com on 11 Jul 2012 at 8:22

GoogleCodeExporter commented 9 years ago
Please don't use Testlink V1.3a. This was an interim release. It has now been 
deprecated.
Use Testlink V1.3 which is the official version (my bad, V1.3a as a label makes 
it look like it's newer when in reality it is older than V1.3)

Original comment by StephanMeyn on 12 Jul 2012 at 1:30

GoogleCodeExporter commented 9 years ago
V 1.3a has now been removed from the download list

Original comment by StephanMeyn on 12 Jul 2012 at 1:32