Contributions
How to tell if a project has a name map programmatically
TestComplete 10.6, JScript, Java app in a browser I have a script extension for some general purpose operations (JScript). In this code I want to programmatically determine if the current Project in the Project Suite has a Name map included. If it does, then the script extension will call RefreshMappingInfo() which only works if the project has a name map included. How do I determine dynamically if the project has a name map?Solved795Views0likes1CommentHow to prevent long strings from being truncated?
Using TestComplete 10.6 with a Flex application in a browserand JScript. When I look at the object browser for Obj.Caption or Obj.FlexObject.text for a very large text string I see that it is being truncated at about 1K characters. This truncation also occurs when running my script. TestComplete sees this as a single text object (AutoVSizeText) but is unable to return the entire contents for this field. For this application it can be up to 3K characters. Is this configurable? How do I get access to the rest of the text so that I can pass it on for validation?Solved1.3KViews0likes2CommentsCan't see objects on "chrome://settings" page
I have TC 10.20 and Chrome 34. With the object spy I'm able to see objects in my application so I know the extension is working. However in screens like "chrome://settings" or Chrome security certificate warning page I can only see the top level window for the tab. I can't see any objects inside of the page. The WndCaption of the page is "Chrome Legacy Window". The WndClass is "Chrome_RenderWidgeHostHWND". The FullName is : Sys.Browser("chrome").BrowserWindow(0).Window(<WndClass>, <WndCaption>,1) So what is the trick for seeing things inside of these legacy Chrome windows? I need to be able to click the "Proceed anyway" button on the security certificate warning page in Chrome. IE and Firefox aren't having this issue.Solved6.6KViews0likes8CommentsHow to get all Flex properties for an object
The TestComplete documentation shows how to get or set the value for a specific Flex property of an object. var title = Aliases.browser.AppPage.objectOrders.FlexObject.name; Aliases.browser.AppPage.objectOrders.FlexObject.name = "New Window Title"; However, I want to create a way of capturing all Flex properties to a file so that I can perform before / after type comparisons. The Stores -> Objects unfortunately does not help here because it does not deal with Flex at all. Does anyone know how to get a list/array of all properties under FlexObject for a given object? If I had this then I could loop through each property, ask its type and then either record its value or navigate further. Many concepts such as "is an object visible"are rather hard to determin in Flex with TestComplete. The initial parameters on the object and the root Flex object called "visible" actually do not reflect how the application controls visibility. I had to use calls such as: var wTxt = wWizard.FindChild( ["ObjectType", "ObjectIdentifier","FlexObject.document.visible"],["TextInput", "generalName", "True"], 5, true); Determining that FlexObject.document.visible was the actual property is a real pain. Does anyone know methods to make this easier? It is taking many hours to find appropriate properties that change in a system so that I can then use that information for automation comparisons. Certainly there must be a better way. All help and suggestions are appreciated on this.5.8KViews0likes1CommentRe: Plug-in to add Event Analyzer without ATL
As an example of what I'm looking to do, I want to replace calls such as the one below: <Operation Type="{575D0372-CCEB-4D0F-AFE8-D2004F108913}"> <Data Description="Clicks the '%n' control." Action="ClickButton" InvokeKind="-1" Initialized="True"> <ObjectSyntax LangId="{E42909F2-4390-4F5D-94B8-FABF59BABFCE}" Code="Aliases.browser.pageHttps.objectUxflashapplication.emwizardVmwareStorageWizard.buttonWiznext;" /> </Data> </Operation> with a call to our function: <Operation Type="{CAAA7522-FB54-4521-BF2F-29D327FC9341}"> <Data Action="wizardNavigation"> <Parameters LangId="{E42909F2-4390-4F5D-94B8-FABF59BABFCE}"> <Parameter Name="buttonName" DefVarType="12" VarType="8" ValueType="6" ValueValue="Next" /> <Parameter Name="timeoutOpt" DefVarType="12" VarType="12" ValueType="0" ValueValue="0" /> </Parameters> <ObjectSyntax LangId="{E42909F2-4390-4F5D-94B8-FABF59BABFCE}" Code="AGSVNXePage;" /> </Data> </Operation> ---------------------- It could be done via external post-processing but it would be ideal for the recording to get it "right" from the onset.455Views0likes0CommentsCan a Flex "ClickButton" wait for..
In our application we have a number of Flex based wizard pages where the "Next" button may take some time to become enabled. When a script is recorded, this time of waiting for the button to become enabled is lost. However, it seems reasonable that the auto-wait timeout for the "ClickButton" should do two things. First it should wait for the object to exist. Then it should wait for it to be enabled. It would be a rare case to attempt to click a disabled button. However, in TestComplete it only waits for the button to Exist. If the user want to make sure it is enabled (and this is always the case for us), then the recording has to be augmented with a checkpoint. This sort of thing slows the test automation down. Is there anyway to help users out so that they can just record the ButtonClick and TestComplete will automatically wait for both Exists and Enabled? I'm looking at adding an Event Analyzer for other purposes but this one seems like it should be simple to support automatically for the users without going to that level of development. Any ideas? Should this be a support request to add a flag that defaults to waiting for the object to be Enabled?8.1KViews0likes1CommentPlug-in to add Event Analyzer without ATL
I am interested in adding an Event Analyzer to TestComplete to help "fix" recordings. We have a number of script extensions which provide robust alternatives to several recorded actions in our product. Rather than having our testers have to modify the recorded tests in this very predictable manner, I want to have TestComplete write them out correctly (for us) as part of the recording. It sounds like this can be done using a TestComplete plug-in and supporting the ItcScriptEventAnalyzer. The plug-in though in the given example with the TestComplete SDK using C++ with an ATL project. Can this instead be implemented as a C# Class library? Is there any alternative to C++ / ATL? There are several TestComplete COM objects if I look to add a COM reference to a C# Class library. Can anyone tell me: 1) Is it possible to implement a plug-in with C# Class library? 2) What TestComplete COM objects would be needed to get support both for the basic plug-in and the ItcScriptEventAnalyzer? 3) Does the plugin need to be a .pls extension or is .dll fine? Does anyone have an example of an added Event Analyzer or Script Generator?5.7KViews0likes1Comment