cancel
Showing results for 
Search instead for 
Did you mean: 

TC 7.52 bugs with ProjctSuite.Variables

Highlighted
Contributor

TC 7.52 bugs with ProjctSuite.Variables

Hi,



Please confirm the following bugs:



[JScript]




function Main() {

  //This code works fine

  var myVar = new Array();

  myVar.someProp = new Object();

  

  //Same code but for ProjectSuite's temporary variable fails

  try {

    ProjectSuite.Variables.myVar = new Array();

    ProjectSuite.Variables.myVar.someProp = new Object();

  } catch (exception) {

    Log.Error("got exception", exception.message);

  }

}




The second bug is more specific:

//I have one test function

//Inside the Project Test Items editor I have several TestItems that call this function and also they have timeout option set to 1 minute

//So this function will never and properly


function test1() {

  aqUtils.Delay(65000);

}


//Beside the above function a have 3 event handlers like the following:


function GeneralEvents_OnTimeout(Sender, Params) {

  Runner.Stop(true);

}





function GeneralEvents_OnStartTest(Sender) {

  if (ProjectSuite.Variables.myVar == undefined)

    ProjectSuite.Variables.myVar = new Array();

}





function GeneralEvents_OnStopTest(Sender) {

  try {

    var test = new Object();

    test.name = Project.TestItems.Current.Name;

    Log.Message(ProjectSuite.Variables.myVar.length);

    ProjectSuite.Variables.myVar.push(test);

  } catch (exception) {

    Log.Error(exception.message, exception.description);

  }

}




The point is that OnStopTest handler works fine only first time, and it fails on push() call at the second time. I have an empty exception.message and exception.description, so I can't find out what exactly I'm doing wrong. I've attached ProjectSuite with this post. Simply run it and wait for some time.



Please let me know if this is a bugs really and if it is so when can we have a bugfix for this?



Thanks in advance
7 REPLIES 7
Highlighted
Contributor

RE: TC 7.52 bugs with ProjctSuite.Variables

Highlighted
Contributor

RE: TC 7.52 bugs with ProjctSuite.Variables

Thanks for the link, Tony!
Highlighted
Contributor

RE: TC 7.52 bugs with ProjctSuite.Variables

up
Highlighted
Staff

RE: TC 7.52 bugs with ProjctSuite.Variables

Hi,



We've reproduced both issues and added them to our issue-tracking DB.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Contributor

RE: TC 7.52 bugs with ProjctSuite.Variables

Thanks, waiting for the bugfixes in future
Highlighted
Contributor

RE: TC 7.52 bugs with ProjctSuite.Variables

Any updates on that?
Highlighted

RE: TC 7.52 bugs with ProjctSuite.Variables


Hi Alexander,





Currently, we are working to fix the first issue. As for the second issue, we currently have insufficient resources to fix it in the nearest future. This issue will be added to the list of known issues. I suggest that you try using other means to store the needed array data, such as project or project suite variables of the table type or the Scripting.Dictionary object.
-----

Alexander
Customer Care Manager
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors