Accessing a Function which is in another Computer using Ole Object Param
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2010
01:05 AM
06-25-2010
01:05 AM
Accessing a Function which is in another Computer using Ole Object Param
Hi
I have TestComplete Installed in Computer A
.net is installed in Computer B
"Function X" is Written in Vb.Net in Computer B ( DLL name is "ClassLibrary1",Class Name is "Class1" )
I want to access the Function X from Computer A using TestComplete. I want to access "Function X" using "Ole Object Param" Property.
I Wrote "ClassLibrary1.Class1" in the Ole Object parameter
IP Address of the Computer B at the Machine Name
Then It has shown an error "Invalid Class Stirng : Can not obtain Class Id"
My colleague said that "Dll Name" and "Class Name" should be registered in the ROT (Running Object Table).
If this is the Problem Please tell me How to Register The "DLL and Class Name" in the ROT.
Please suggest me some inforamtion regarding ROT
If there is any other problem please tell me how to access the "Function X"
Regards Siddhardha
I have TestComplete Installed in Computer A
.net is installed in Computer B
"Function X" is Written in Vb.Net in Computer B ( DLL name is "ClassLibrary1",Class Name is "Class1" )
I want to access the Function X from Computer A using TestComplete. I want to access "Function X" using "Ole Object Param" Property.
I Wrote "ClassLibrary1.Class1" in the Ole Object parameter
IP Address of the Computer B at the Machine Name
Then It has shown an error "Invalid Class Stirng : Can not obtain Class Id"
My colleague said that "Dll Name" and "Class Name" should be registered in the ROT (Running Object Table).
If this is the Problem Please tell me How to Register The "DLL and Class Name" in the ROT.
Please suggest me some inforamtion regarding ROT
If there is any other problem please tell me how to access the "Function X"
Regards Siddhardha
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2010
05:31 PM
07-04-2010
05:31 PM
Hello Siddhardha,
If I get it right, you are creating a .NET Class Library in VB.NET, but not a COM class library (I guess, VB.NET cannot create COM class libraries).
You cannot create an instance of a .NET class this way. To instantiate the class, you need to:
- install .NET on computer A;
- copy the DLL to computer A;
- add the DLL to the CLR Bridge in your TestComplete project settings.
To learn more about this, please see the "Calling Functions From .NET Assemblies" help topic:
http://www.automatedqa.com/support/viewarticle.aspx?aid=3304
--
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
