Forum Discussion

DevaV's avatar
DevaV
Contributor
14 years ago

Reading string tables of DLL

Hi,



Could you please tell us how to read string tables in dll files from test complete.



We have a String table in dll that contains Values and captions. Now from test-complete is there any way to read that string table after loading that dll using CLR bridge.



String table of a dll

Value              Caption

001                  Test1

002                  Test2



Kindly do suggest us better way to implement this in scripts.

5 Replies

  • Hi,



    Please let us know is it possible to call functions in .cs files using test-complete.
  • Hi Deva,



    Please let us know is it possible to call functions in .cs files using test-complete.
    Assuming that the .cs file has been compiled into a .dll assembly, you can use TestComplete's dotNET object for this purpose. Check out Calling Functions From .NET Assemblies for details.





    Could you please tell us how to read string tables in dll files from test complete.
    This depends on how exactly the string table is implemented in the assembly — as a resource, Dictionary or something else. Could you please post your assembly here? This will help us answer you more specifically.
  • Thanks we tried the same earlier.. We were about to ask is it possible to use .cs file without compiling as dll.
  • Hi Deva,



    No, you need to compile your .cs file to .dll or .exe first, in order to be able to call its functions from TestComplete.



    Alternatively, you can implement script functions with the same functionality in your TestComplete project.