Contributions
strictEqual ---> 'Object Expected'
Hi All, I ve a question, When running the function below, an error occurs: Object expected ============================= function equal() { Log.Message(strictEqual(2, 2)) } ============================= I can't figure out what's wrong whith this code. Even when running it without the Log.Message, it still fails. I'm on TestComplete Desktop 14.3 1 - code 2 - error Originally I started with more complicated code, using the strictequal method, as used in this example: https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfilesystem/findfolders.html next, I'm narrowing down the problem to the 'strictEqual' function, as used in the example below: https://support.smartbear.com/testcomplete/docs/reference/language/javascript/strictequal-method.htmlSolved1KViews0likes3Comments- 1.1KViews0likes0Comments
Log error (instead of info) when aqFile.Copy fails
Hello, I'm using aqFile.Copy method to copy some file. Sometimes the copy action fails (file server/nas unavailable) and a Information Message is send as stated in the Remarks here: https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/copy.html If the method fails to copy the file, TestComplete will post an information message to the test log explaining the cause of the failure. The problem I have with this, is that you won't notice it in TestComplete's log. A few test cases later, something fails, but the rootcaus is not clear immediately Question, does anybody know if there's an alternative method that actually raises an error when copying of the file fails Regards, DanielSolved1.2KViews0likes2CommentsSharing existing items with multiple projects
Hello, Situation: I have a Project Suite containing 23 Projects. I use one project to create/mainting the scripts which are then used to be shared with other project. Problem: Every time I created a new script file I want to share with the other projects, I have to add it manually to the 22 other project. This is pretty labor intensive/boring/ RSI prone, etc. My question: Is there a way to add a script to the 22 of the other projects in a single action? Kind regards, DanielSolved2.2KViews0likes6CommentsRe: Regions.Compare with Masks
Hi, ezzmonem Is it an option to use the Picture.Compare method? Picture.Compare allows a mask to be used https://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/compare.html In my scripts I use a combination of the picture.compare and region.compare method =========================== if (!pic_1.Compare(pic_2, ............., maskImg)) { Regions.Compare(pic_1, pic_2) } =========================== Regards, Daniel2.3KViews0likes0Comments- 2.8KViews0likes0Comments