Forum Discussion
Thank you again for helping.
I uploaded win forms code.
Thanks
Can you also please send the C:\Testes\Minicurso\ControleTransportadora.pjs?
Thanks
-Lino
- Valença6 years agoOccasional Contributor
Its a empty project to store log, do you need it ?
- LinoTadros6 years agoCommunity Hero
No thanks, if it is empty. I wanted to make sure that there is nothing there affecting the outcome.
I will get back to you in few hours, I am teaching the TestComplete class till 1:00 pm EST today
Cheers
Lino
- LinoTadros6 years agoCommunity Hero
Hi
It is not going to work, sorry
First of all, I have Visual Studio 2019 and also 2017 and none of these 2 will run the project at all because of the line that says Connect.TC["Visiable"] = true; that code will only run by maximum in Visual Studio 2013.
Error: Cannot implicitly convert type 'bool' to 'AutomatedQA.script.var.VarDelegate'
I was curious why, so I reversed engineer the assembly AutomatedQA.TestComplete.CSConnectedApp.dll
Within few minutes, I figured out why ConnectedApps have been obsolete and no longer supported for the last 6 years. It is just a pure mess how they were marshelling the types.
As I said earlier, I do not recommend the use of ConnectedApps and I am sorry if that answer is useless again to you.
My recommendation is for you to use the TestComplete TypeLibrary for 64 bit and use the Integration Object to execute the tests
// Obtains ITestCompleteCOMManager
// TestComplete.ITestCompleteCOMManager TestCompleteManager = (TestComplete.ITestCompleteCOMManager)TestCompleteObject;
// // Obtains Integration object
// TestComplete.ItcIntegration IntegrationObject = TestCompleteManager.Integration;// // We have a reference to the integration object.
// // Now we can use its methods and properties to automate TestComplete.// // Loads the project suite
// IntegrationObject.OpenProjectSuite("C:\\TCTests\\Valenca.pjs");and go from there...
Cheers
-Lino
Related Content
- 2 years ago
Recent Discussions
- 17 hours ago