Contributions
TC 12.6 does not compile in VS 2017
Test Complete 12.42 does not compile with VS 2017 version We are currently using TestComplete V9.3.1 with Visual Studio 2013 & 4.5.2 DotNet Version. This is used to automate test cases for a desktop based application that uses client-server model. We have planned to migrate to Visual Studio 2017 with 4.7.1 DotNet Version & also understood that TC 12.42 does support the Visual Studio 2017 integration. We tried to test the version for compatibility before upgrade & failed. Steps followed: 1. Created a test machine with Win 7 64-bit Client 2. Upgraded VS from 2013 to 2017 3. Upgraded TC from 9.3.1 to 12.42 4. Ran compilation that failed. We use TC dlls in our solution (C#) 1. AutomatedQA.script.dll 2. AutomatedQA.TestComplete.CSConnectedApp.dll Errors: 1. Cannot convert type 'AutomatedQA.script.var.VarDelegate' to 'bool' 2. Cannot convert type 'AutomatedQA.script.var.VarDelegate' to 'int' 3. Cannot apply indexing with [] to an expression of type 'var.VarDelegate' 4. Cannot implicitly convert type 'AutomatedQA.script.var.VarDelegate' to 'AutomatedQA.script.var' Appreciate your quick response on this to facilitate us in taking right TC version for migration.Solved1.2KViews0likes1Comment- 1.4KViews0likes4Comments
Re: driver.DoReleaseMouse(driver.GetMouseCursorPositionOnScreen()) does not work.
It appears as a click . But it seems like mouse left button held down. It is not performs as click and release Set panel = Aliases.PortalAppletHost.PmsApplicationForm.PmsSceneManager.CTVSlabScene.leftPanel.pmsToolPanelMain.pmsTabControl.backgroundPanel.blueStripBackgroundPanel.blueStripPanel Set vlabel = panel.Label Call vlabel.Click(107, 9) Call vlabel.Click(143, 3) Call vlabel.Click(143, 3) Call vlabel.Click(143, 3) Set panel2 = panel.blueStripAdornmentPanel Call panel2.Click(5, 5) Call panel2.Click(5, 5)2.2KViews0likes1Commentdriver.DoReleaseMouse(driver.GetMouseCursorPositionOnScreen()) does not work.
I use in test command to click on control : driver.PerformActionWithParametersSequence(controlNode, null, "Click", "Click on " + Description, width - 8, height/2); Then i am trying to release the Click because when it pushed control closes. Is there any other way to release mouse click? TC 9.3.1 Eventually it comes to this function, that don't work: public void DoReleaseMouse(Point mousePoint) { Connect.LLPlayer["MouseUp"](LeftMouseButton, mousePoint.X, mousePoint.Y, 500); }2.2KViews0likes9CommentsRe: Test Execute fails in mapping GUI object
public var FindChild(var father, string mapExp, string description) //, int numberOfIteration = 0) { try { string[] mapExpArr = Regex.Split(mapExp, "//"); int numberOfMappedObjects = mapExpArr.Length; if (numberOfMappedObjects == 1) { return FindChildFromTC(father, mapExp, description); } father = FindChildFromTC(father, mapExpArr[0], description); int indexOfNextFather = mapExp.IndexOf(@"//"); if (father != null) { return FindChild(father, mapExp.Substring(indexOfNextFather + 2), description); } else { return null; } } catch (Exception ex) { // in case an exception was thrown from TC before VerifySuccessActionInTestComplete and the TC reported an error if (!ex.Message.Contains("a Test Complete error was found")) { if (int.Parse(Connect.Log["ErrCount"]().UnWrap().ToString()) > _numOfErrorInTc) { _numOfErrorInTc++; } } foreach (IDriverReportListener reportListener in reportListeners) { reportListener.ElementNotFound(description); } _numOfErrorInTc++; //increasing number of errors by 1 after reporting perform action exception in TC //throw new Exception("An exception was thrown while trying to FindChild " + description + " with the mapObjExp " + mapExp); ThrowException(ex, "An exception was thrown while trying to FindChild " + description + " with the mapObjExp " + mapExp); return null; } }1.8KViews0likes1CommentRe: Test Execute fails in mapping GUI object
Hi, there is no error , just exit after timeout. public var WaitObject(var rootNode, string stringExp, double timeOutMilliSeconds) { var obj; DateTime startTime = DateTime.Now; obj = FindChild(rootNode, stringExp, ""); if (obj != null) { return obj; } while (timeOutMilliSeconds > ((int) (DateTime.Now - startTime).TotalMilliseconds)) { obj = FindChild(rootNode, stringExp, ""); if (obj != null) { return obj; } Thread.Sleep(50); } return null; }1.8KViews0likes0Comments