Ask a Question

Upgrade to TC 14 problems with Connect being null (Windows 10)

SOLVED
bistritapcv
Contributor

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() and Connect.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.

 

 

5 REPLIES 5
Marsha_R
Community Hero

I would ask Support about that directly.  Here's the link:

https://support.smartbear.com/testcomplete/message


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

I did but no answer, which is why I entered here.

 

@sonya_m can you help out?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
sonya_m
SmartBear Alumni (Retired)

Marsha, thanks for drawing my attention to this!

 

Hi @bistritapcv , I found your support cases and talked to our Customer Care Team - they will reply in the new case you opened on 6/29/2021 today (case #00482542). However, it looks like this functionality is quite old and not supported anymore, but let's wait for their official response.


Sonya Mihaljova
Community and Education Specialist

hank you, everyone.

cancel
Showing results for 
Search instead for 
Did you mean: