04-06-2011 08:11 AM - edited 04-06-2011 08:13 AM
TestStand 2010 (4.5.0.310)
Visual Studio 2010 Ultimate 10.0.30319.1
.NET Framework 2.0
Hi,
I'm currently trying out testStand to see if it suits our needs. I have created a .dll with .NET 2.0. I have a very simple class with 1 constructor and 1 method returning an integer (5).
Now, in TestStand, I created a step with the .NET adapter. I specified the assembly, the class and selected Create Remote Object in the .NET invocation box. As for the the parameter Name, I have tried a dozen things but no luck. At run-time, I'm getting the error message 17500 (see attached image). See also BackPlane_seq.jpg for the very simple sequence file I created.
Thanks
Mathieu Bazinet
Solved! Go to Solution.
04-06-2011 09:47 AM
04-06-2011 12:01 PM
Actually I didn't need it. Found out right after submiting this post....
However, I created a singleton and stored its reference into a local variable. This singleton has several methods (getters and setters). I used "Use existing Object...." in the .NET invocation text box and was never able to plug the return value into another local variable. How would you proceed?
Is there a web site or a document(s) that can provide us with examples? From what I have seen so far there is not a lot of informtion but very few examples. I'm thinking something comparable to MSDN...
thanks
Mathieu
04-06-2011 12:09 PM
Another thing that I find annoying is the fact that I must either remove all assemblies in my sequence or shut down testStand when I want to rebuild my .dll in Visual Studio. I'm sure there is a better way to do this....
Error 1 Unable to copy file "obj\Debug\ClassLibrary.dll" to "bin\Debug\ClassLibrary.dll". The process cannot access the file 'bin\Debug\ClassLibrary.dll' because it is being used by another process. ClassLibrary
04-06-2011 12:35 PM
This is happening because the module is loaded in memory. Go to File » Unload All Modules to unload it.
04-06-2011 02:00 PM
thanks!
04-06-2011 03:10 PM
Hi Mathieu,
For help using the .NET Adapter, I recommend reading the TestStand Reference Manual that installs with TestStand. Specifically, the .NET Adapter section of Chapter 5 - Module Adapters.
-Jeff
04-07-2011 11:16 AM
Are you still having trouble getting "Use Existing Object" to work in the .NET adapter? If so, please let us know in more detail what you are trying to do and what exactly is not working.
-Doug