Contributions
Re: TestComplete training script based
Ashlee, It isn't entirely clear why the SmartBear provided training does not meet your requirements but here are a couple of thoughts: - Third party material:https://www.udemy.com/course/mastering-smartbear-testcomplete/ Highly recommended; I enjoyed the instructor. Understand that you will find some duplication in materials between the SmartBear courses and this course. - Record keyword tests. Convert them to scripts. Study the scripts. Augment with reading the online docs to understand the converted scripts. This is an excellent way to kickstart your script based tests. Hope this helps, Larry881Views0likes2CommentsSettings profiles
The suggestion is to allow a TestComplete user the ability to define "profiles" for settings/options. For a simple example, while I am developing tests, I might want to set error handling to "Stop Project", slow down the playback events or store all logs. But, when TestComplete tests are "in production" (run nightly from Jenkins, for example), the settings might need to be different; I might want error handling to be "Stop and rerun current item", playback events at their defaults or only keep the 5 most recent logs for example.481Views5likes0CommentsProject settings for posting images to the log
Currently, in the Project properties, there is a checkbox to enable posting images on errors. It would be extremely helpful to optionally automatically post images for other message types to the log. Often it is the steps proceeding the error that provide a clue as to what the failure is. A checkbox for posting images for each of the entry types (error, warning, message, event and checkpoint) would be great. I understand the disk usage issues. My response to that concern is that disk space management is a requirement placed on the developer not necessarily the developers tools. Additionally, the impact upon test execution performance may be acceptable in order to debug an error. That would be up to the discretion of each test developer.298Views0likes0CommentsScript to verify DB Table workbook
Hello, I'd like to verify that the DB Table project variables, of type Excel, are actually present on the file system. If a file is not present, I'm going to provide a friendly error message in the log and terminate the test. I have a script that iterates over the project variables and checks for type 'DB Table'. I'm stuck trying to determine if the variable is for an Excel file and if it is, the workbook path + filename. In the project's Temporary Variables tab, the column labeled "Default Value" contains the data I want but theProject.Variables.GetVariableDefaultValue() method only seems to return a ColumnCount value, unfortunately. Any pointers to TC API docs or examples is greatly appreciated. Thanks in advance, LarrySolved982Views0likes1CommentRe: Enter at character (@) using Keys method
Andrea_Bonacchi, This probably isn't very helpful, but we use Moba Personal Edition V12.4 Build 4248 and the following does work for us Aliases.MobaXterm.FormXterm.sPanel1.Window("TListBox").Keys("ssh admin@xxx.xxx.xx.xx[Enter]") FWIW, we recorded the keyword test and then converted it to a script. That probably doesn't matter but I thought I'd mention it. Also, we have added Moba as a TestComplete TestedApp. Good Luck, Larry1.3KViews1like0CommentsRe: Persistant variables type
HelloLee_M, Something that has worked for us is to create an event handler. Here is some documentation: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/about.html We use the On Start Test event handler. In the handler, if the variable does not already exist, we add it. Then we update the value stored in it. if not Project.Variables.VariableExists(variableName): Project.Variables.AddVariable(variableName, variableDataType) Project.Variables.VariableByName[variableName] = variableValue Hope this is somewhat helpful and good luck, Larry807Views0likes0CommentsRe: Property checkpoints (beginner question)
Hello HarryJ, You might consider using the OCR checkpoint. It is available via a button at the top of the second page of the Checkpoint Wizard. TestComplete will make an image of the control and visually extract the text from the image. It is very accurate and powerful. Good Luck! Larry1.3KViews2likes1Comment