Calling C# dll from testcomplete
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2017
02:38 AM
12-05-2017
02:38 AM
Calling C# dll from testcomplete
Hi,
#1. Function in C# is: public static bool check(string _pathFile)
#2. And in TestComplete:
var pathFile = "D\\testFile.html";
var res = dotNET["dllName"]["TestHandler"]["check"](pathFile);
But the parameter won't work. Appreciate your early help.
Solved! Go to Solution.
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2017
02:52 AM
12-05-2017
02:52 AM
Please read this article
From your example I can see that you miss at least either a namespace or class names. Unfortunately, I don't have a .NET app here to make a better example.
Gennadiy Alpaev
Software Testing Automation Tips - my new book
TestComplete Cookbook is published!
About Community Experts
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2017
03:08 AM
12-05-2017
03:08 AM
Thanks you so much,
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2017
09:35 AM
12-05-2017
09:35 AM
@lucky_star wrote:
var pathFile = "D\\testFile.html";
It should probably be "D:\\testFile.html" with a colon ( : ) after the drive name.
Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2017
07:05 PM
12-05-2017
07:05 PM
Thanks for your reminder:)
