Asserting that element does not exist
Im running some tests where sometimes I have to see if something is not on the screen. I use aliases for the element, and if they are there, it finds it super quickly without issues, but when I try to do reverse operation, for example if (!Aliases.browser.buttonName.exists) { Log.Checkpoint(`"${buttonName}" button does not exist`); } else { Log.Error(`"${buttonName}" button does exist`); } so not existing is the default behaviour however it seem to be taking 10 seconds everytime the element is not there. Any way I could speed up this process? is it some sort of search being done in the meantime or a timeout I could maybe reduce?37Views0likes1CommentSQL Server Web Performance
Hello! We are currently developing a website with sql server as database and we wanted to test its performance with multiple users logged into at the same time. Is this possible with using test complete? And if so is there any material i could read up on this? Thanks in advance for help!7Views0likes1CommentSelecting n-th element using CSS selector
Hello everyone, I'm currently working on automating a date-picker element in TestComplete, and I'm trying to achieve a functionality similar to what I've done in other frameworks using CSS selectors. In my case, I locate 30 buttons that represent days in a month. My question is, can I store the CSS selector of these buttons in a variable and then click on a specific day, for example, the 5th, by passing the index to it and using the .Click() method? (I've done it previously with cypress using .eq(index) to click on the given element? Any insights or examples on how to accomplish this in TestComplete would be greatly appreciated. Thanks in advance!28Views1like3CommentsPicture comparison fails if browser window is partially out of the screen
The browser window can be moved (manually or intentionally) partially out of the screen, like in the below example, where I use a virtual machine with Edge browser. The test automation code contains picture comparisons with benchmark pictures stored in Regions that include the overall browser content (also the content that is partially not shown when the browser window is partially moved out of the screen). The picture comparison, however, fails, since it use, as actual image for the comparison, the "cropped" image, that is: the "partial" image that is really shown for the user. This could cause unexpected failures if the browser windows has been not intentionally moved. Could it be possible, for the picture comparisons code, to specify to consider as actual image the overall content of the window, instead of the partial one?28Views0likes5CommentsBrowser window is shaking during test execution
I've had this before, and normally it does not matter because I was asserting properties of given elements but now I do some visual assertions, and the image assertion fails because of that.. Basically an assertion is done during the "shaking" and it does not see it as the same picture... I tried googling this before but I don't know if anyone reported it before? Maybe using word "shaking" isn't necessarily the most precise, but the browser wobbly.. Cant give any screencast because it's commercial project but I hope this is enough to explain?25Views0likes6CommentsCan't trigger TestExecute through Task Scheduler
I am trying to trigger TestExecute by using a .bat file through Task Scheduler. When I try trigger .bat file manually TestExecute triggered successfully. But if I try to trigger by using Task Scheduler the status is changed from Ready to Running, but we can't see anything in the background. Please check below screenshot. Below code is the .bat file, Please verify it. Echo off cd "C:\Program Files (x86)\SmartBear\TestExecute 15\Bin" start "" /wait "C:\Program Files (x86)\SmartBear\TestExecute 15\Bin\TestExecute.exe" "C:\Users\ravikaanth.ns\Documents\MB_Automation\TestProject2\MBAutomation1.pjs" /run /project:"MBAutomation1" /unit:"CampaignReadProd" /routine:"readCampaign"Solved669Views0likes43CommentsExporting in Junit
I want to use this command, Log.SaveResultsAs("C:\\Work\\Log\\Log.xml", lsJUnit); But what I have is I have a variable declared: var Folder: Folder = "C:\\Result\\" + "\\" + projectDate+ "\\" + projectType; Log.SaveResultsAs(Folder, lsJunit): is what I have been doing Where can I add Log.xml in above statement as I have declared Folder? Help is highly appreciated!!!Solved24Views0likes1CommentMaterial ui 5 date picker not available on interaction with Test Complete
Hi, I'm running tests on a browser (not mobile) using a function that picks dates based on @type='button', that it is not shown unless manually interacting with the web app, and so the dates buttons are not visible in the UI when using Test Complete. Others also found some similar issues because Mui’s DatePicker render mobile view by default, but this is not really my case. https://stackoverflow.com/questions/70294172/mui-datepicker-button-not-available-on-first-render-in-tests. Has anyone else encountered this behavior and if so, what could the solution be?22Views1like2Comments