Upgrade to TC 14 problems with Connect being null (Windows 10)
We had a VS/TC test running (Visual Studio 11 and TC 12) which worked fine. I do a Connect.StopTest() to stop a test before doing the StartTest(). I surround the StopTest() with a try{} catch{} in case no test is running. We recently updated to TC14. Rebuilt everything and replaced those 3 Automated dll's with the TC14 ones.(when we first ran TC 14 it converted our project noted by "tpath" above to tc14): Occasionally, the test works, but most of the time at the lines Connect.StopTest() andConnect.RunTest(GetTestName(), "Generic", tpath); we get the following below (when we first ran TC 14 it converted our project noted by "tpath" above to tc14): Result Message: Initialization method ErepriceClassLibrary.NewReprice.Before threw exception. System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.. Result StackTrace: at Multiplan.Scripts.WorkFlow.BaseClasses.AbstractTestCase.Before() in c:\VS_Projects\ERepricerTC14\EERepriceFrameworkClassLibrary\BaseClass\AbstractTestCase.cs:line 89 When I do a quickwatch on Connect it certainly is not null (see attached picture). Originally the StopTest() was in the Before() method but I moved it to the line before I start the test as I thought that would fix it. I can't understand why it says Connect is null. Anyone have an idea? See attached picture.Solved1.2KViews0likes5CommentsHow to Exclude Some Methods using Operation Filter
Hi, I am using asp.net core with swashbuckle and I add a custom header which works on each method, now I want to exclude some methods that don't need custom header. Is this possible? I saw this thread which is 2 years agohttps://community.smartbear.com/t5/Swagger-Open-Source-Tools/Exclude-Operation-Filter-from-some-methods/td-p/172519but it didn't have any answers. is there a way to filter out some methods?Calling a TestComplete method from external application
Hello, I have a TestComplete project with a python script, wich is testing an application (Application A). My plan is it, to call a function out of the TestComplete testing script from another C# application. C# application (B) Python TestComplete script Application A push button in application A ---> pushButton() ---> *button gets pushed* Is there an elegant way to do this? Like some kind of Interprocess Communication. I know that there is a REST API, but because both applications run on the same computer this would not be nice solution. I hope you could understand my plan 😄 Greetings LeonSolved1.7KViews0likes6CommentsTestComplete: Adding headers to Message bug?
Hi, I'm trying to test my WebServices over net.tcp protocol, so I've choosen TestComplete to get it done. I do not want to create XML files manually, so I'm using simple call to service methods. Most of them need custom header with authorization details, so I've attached toOnWebServiceRequest method, and using WebServiceHelperObj.AddHeader(Name,Namespace,Value) method I'm trying to get it done. Now,the problem: After using the method mentioned above, my header does not look like it should. An example: Calling : Helper.AddHeader("UserID", "http://tempuri.org/", "jsmith"); Helper.AddHeader("Password", "http://tempuri.org/", "25jeL3n"); results in header: <s:Header> <a:Action s:mustUnderstand="1">http://tempuri.org/MethodContract/MethodName</a:Action> <a:MessageID>urn:uuid:9244f15d-ae34-422c-ad9d-cd32f616b042</a:MessageID> <a:ReplyTo> <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address> </a:ReplyTo> <UserID xmlns="http://tempuri.org/"> <UserID>jsmith</UserID> </UserID> <Password xmlns="http://tempuri.org/"> <Password>25jeL3n</Password> </Password> <a:To s:mustUnderstand="1">net.tcp://ADDRESS.svc</a:To> </s:Header> As you can see, the header elements are nested, which is not the result I would want to achieve. Second problem: the header i require to add is nested structure, as follows: <s:Header> <MyHeader> <UserName>NAME</UserName> <Password>Password</Password> </MyHeader> </s:Header> how can I achieve this using AddHelper method?2.5KViews0likes8Comments