Contributions
TestExecute: How to choose which tests are run
From my understanding, when you run the a project with TestExecute it simply runs what is specified in the Execution Plan. Is there a way to change the Execution Plan within TestExecute? I would like if other members of my team could run smaller portions of my test suite to ensure functionality in certain areas without needing to run the entire 20hr+ test suite. This is possible by creating many git branches of each of those different portions, then my team members would pull that respective branch. But this would be VERY cumbersome to initiate and even moreso to keep updated with any new tests.226Views0likes1CommentHow to get Send Request to ignore invalid SSL Certificate
I am trying to use the Send Request operation to make a post request, but the localhost I am using has an invalid SSL Certificate and that is causing the Send Request to fail. Is there any way to ignore the SSL Certificate?268Views0likes1CommentDon't know where to access Zephyr Secret Key for connecting Zephyr Squad to TestComplete
I have tried to follow the documentation oh to set up the API Keys for Zephyr Squad but none of the menus are similar to what is depicted in the documentation and when I go to the Zephyr Scale API Access Tokens page in the Your Profile and Settings dropdown, generating a new API Token does not generate an accompanying secret key.799Views0likes2CommentsRe: Add cmpContains to the If...Then operation
I have not, but looking at the documentation it would certainly be a good solution if I was using a Script Test. Unfortunately if you were to try to use it in a Keyword Test it doesn't seem like it would be much different than using the Compare Properties operation, unless I'm missing something obvious.601Views0likes0CommentsAdd cmpContains to the If...Then operation
Quite often I need to run an If...Then check on a small portion of the outerHTML property of an object and there is no convenient way to do so. Right now I have to match the entire string of the property, which is cumbersome and prone to requiring regular maintenance, or using a combination of the Compare Properties and an If..Then using the Last Operation Result Mode, which isn't intuitive and looks messy.609Views0likes3CommentsRe: DB Reset script-to run before tests can be executed
I am using powershell to do something very similar. I am not sure its possible to do what you want purely within a keyword test, and if it were it would probably be just easier to do in a Script Test. Here's a functional snippet of what I'm using based from the Documentation I could find from TestComplete. Hopefully it will be easy to understand, all you should need to do is just copy and paste this into a Script Test and change the text '<your command here>' to the command you provided above. This text is in the middle of the last block of code. I am assuming that the coding language chosen at the creation of your project was JavaScript. If it was python instead any changes should be easy to make. If it is a different language it could be a little more difficult but definitely doable. // This function will steal the characters being output by the powershell and display them in the Details tab when the test is over/paused // powershellObject: this is the object which holds the powershell.exe that is being used. // endChar: this holds a text character eg. ">". The function will stop reading from the powershell's output until either it sees this character, or it reaches the end of the output. function readTilChar(powershellObject, endChar){ var out = ""; var curChar; while (!pwershellObj.StdOut.AtEndOfStream){ curChar = pwershellObj.StdOut.Read(1); out += curChar; //Log.Message(curChar) if (curChar == endChar) break; } //Log.Message(out) return out; } // This function will start powershell.exe, display all of the text that is autmaticaally shown in the powershell when its started, then return the object which holds the powershell function startPowerShell(){ var powershell = WshShell.Exec("powershell.exe"); var out = readTilChar(powershell, ">"); Log.Message("PowerShell initiation complete: See the output in the Details panel of the test log", out); return powershell } // This function will type the command into the terminal and begin it's execution // powershellObject: this is the object which holds the powershell.exe that is being used. // command: this is the command that gets run by the powershell. It needs to be of type string. (something like this: "ls") function sendCommand(powershellObject, command){ if (powershellObject != null){ powershellObject.StdIn.Write(command + "\n") } } // This function will reset the Database function resetDatabase(){ //start the powershell var powershell = startPowerShell() //Enter what you want the powershell to run here within the "" sendCommand(powershell, "<your command here>") //This just grabs any output that would happen from your command var output = readTilChar(powershell, ">") //Create a log in TestComplete and put the output from your command in the Details tab Log.Message("Database successfully reset, check Details tab for powershell output.", output) }675Views1like0CommentsWhat datatype to use for integers of size 10^18
My TC Project is using JavaScript and I am trying to retrieve the ID number with a magnitude of 10^18 from a database. I have not had any luck since the MAX_SAFE_INTEGER is round 9*10^15. Is there any inbuilt datatypes like BigInt available to store the ID's, and if not, how would you import a library to do so?488Views0likes1CommentRe: Screen elements in Chrome mobile view not detecting properly
I am working remotely currently and have no way of changing/looking at any desktop scaling, but i doubt the scaling would be at anything but 100% as the computer is relatively new and i have never changed the scaling. If you have any other suggestions send them my way. Thanks!821Views0likes2Comments