Azure DevOps Advanced Integration Options
Azure DevOps seems to be a popular option these days. Please consider adding the following as a feature in the near future. 1. Post Bugs from Test complete to Azure DevOps 2. Post Work Item from TestComplete to Azure DevOps 3. Upload Test Plan from TestComplete to ADO.680Views9likes0CommentsTestComplete plugin on VS Code
I like Testcomplete and all it's features, however, when needing to write code it is a bit of a pain (intellisense, styling, code completion, indenting, etc., all do not work well). Instead of coding in Testcomplete, can we add support in VS Code for development and execution? Still have it tied to the license and no need for namemapping, at least not right away, so we can take advantage of a smoother ide. I currently use python with TestComplete.609Views8likes0CommentsPro-Tip: Populating an array in a JScript script extension and using the array in JavaScript
I'm writing this post not to report a problem or to ask a question but simply to pass along some information to save others the headache I gave myself today. I should have realized my mistake a lot sooner than I did but, in the meantime, I learned something valuable about debugging a script extension and one of the "gotchas" that you may run into. Scenario: I wanted to build a runtime object in a script extension that, upon retrieving some data from a datasource, would populate an array that is a property of the script extension. I then wanted to be able to access and iterate through that array in various projects. The script extension is built using JScript and the projects are written in JavaScript (perhaps some of you already see where this is going). Extension: Here is a simple mock up of what is in the extension. It's a bit more involved than this but, for illustration purposes, I've simplified this down to the essentials var myArray = []; function getMyArray() { //This is the "get" routine for getting the property for my runtime object return myArray; } function populateArray() { //This is where the DDT object is created, run through, etc, to get my data. For the purpose of the illustration, I'm simply hardcoding a for loop to populate the array with some objects for(var i=0;i < 10;i++) { myArray[i] = {property1: 'Value1', property2: 'Value2'}; } } Now, when I have this code loaded up into TestComplete in a JScript project and throw some watches on the variables, I see my array populate and I end up with a 10 element array, each element being an object with the two indicated properties and values. Using the Extension: So, I encapsulate that in my script extension, drop it into the appropriate folder, install it in TestComplete and attempt to run the following code in a JavaScript project function iterateArray() { for(var i = 0; i < extension.myArray.length; i++) { Log.Message('Object ' + i + ' property 1 value: ' + extension.myArray[i].property1); } } Here's where I get the problem... I get an error that property1 is not a valid property of "undefined". Doing a watch, I see that my array is populated and it has the correct length, but instead of each element being an object, each element is marked as "undefined". What gives?!?! Well... here's why... JavaScript, as it is implemented in TestComplete,has some issues with working with the values of indexed properties of objects. While, generally speaking, if I created an array in JavaScript and worked with that JavaScript native array in my JavaScript project, I wouldn't have this issue. However, it appears that, because the JScript array is encapsulated in another object and is, therefore, an object with an indexed property, I need to use a different methodology for retrieving the values. Solution: Once I realized this, I modified my code in my JavaScript project as such: function iterateArray() { var currentObject for(var i = 0; i < extension.myArray.length; i++) { currentObject = extension.myArray.$get(aqConvert.IntToStr(i)); Log.Message('Object ' + i + ' property 1 value: ' + currentObject.property1); } And voila! it works. Now, if I was using the extension in a JScript project, this wouldn't be a problem. But, as it is, because of JavaScripts peculiarities, this was the solution I ended up with. Of course, there's probably all sorts of other ways of doing this... but this is how I got rid of my headache today.1.4KViews4likes0CommentsTestComplete Framework
For those of you who attended the SmartBear Academy 301 on October 18th, I've made a couple of relatively minor changes to the framework I presented and the script extensions I created for them. If you are interested, you can download the framework code, the extensions, and the samples at https://bitbucket.org/tristaanogre/tabledrivenframework/downloads. Please feel free to message me any questions or such on this. Again, this is a Creative Commons licensed thingie so feel free to use itunder the license terms.1.9KViews4likes0CommentsModify scripts with external editors
I am writing and changing my scripts in my favorite (external) editor. But when I want to use the script in the TestComplete UI, I always get the same pop up as attached. And always I have to confirm. I understand that TestComplete does this, but can we have the option circled as attached?619Views3likes0CommentsPlease do not remove JScript support in near or far future
I keep seeing functionality deprecated and hidden. My company pays\renews because of what TestComplete provides per our automation needs. Please do some serious polling among your clients and not the norm on the internet before affecting TestComplete functionality.553Views3likes0CommentsBoost TestComplete code autoCompletion
Has anyone ever tried to write their intellisense plug-in for e.g. WebStorm with TestComplete interface structure? or vice versa through "script extension" and their available code completion read files and create a 'better' intellisense than it is now in TestComplete IDE? Additional question. Have you encountered somewhere in the files or in the online sources with the object interface declaration currently available in the Intellisense TestComplete IDE?Solved2.9KViews3likes7CommentsNameMapping and Alias copy - copy path
It would be nice if you can copy the complete name mapping path from the namemapping from the Mapping Abjects or Aliases screens I am investigating NameMapping,I have one screen open with the name mapping and one screen with my script You have Mapped objects and you can easily create an Alias by dragging. It would be nice if you can right-click the desired map (in Maps or Aliases) and copy the path for pasting into your script this could even be drag and drop into your script i.e. NameMapping.Sys.notepad.dlgSaveAs.DUIViewWndClassName.Explorer_Pane.CtrlNotifySink.ShellView.Items_View.test_complete_test_notepad_save_txt.Name being able to copy this complete String WITHOUT having to highlight it all - will make the system a little more intuitive666Views2likes0Comments