Contributions
Identifying moving element
Hi! In the application I am testing, we have an assignment (oppgave) that moves from one heading to another when pressing a button, and we should be able to select the assignment. In the attached schrrenchot "Oppgave1" you can see that the assignment lays underneath the heading "Felles innboks". When clicking it, we get information regarding it in the "Oppgave" window to the right (Screenshot "Oppgave2"). We can then click "Velg Oppgave" (select assignment). It then moves from "Felles innboks" to "Mine ubehandlede oppgaver" (my assignments). When clicking the assignment underneath "Mine ubehandlede oppgaver", the window to the right should once more be populated with the assignment information. When playing the test, testcomplete is not able to find the element, or cell. See "OppgaveTestSteps" for details about the test steps. How can I solve this?1.6KViews0likes2CommentsRe: For Loop not working as it should
Hi again! I finally got my memory leak test to work by scripting the test. I had to convert the CPU usage and memory usage into a string intCPU = Sys.Process("firefox").CPUUsage strCPU = aqConvert.IntToStr(intCPU) intMem = Sys.Process("firefox").MemUsage strMem = aqConvert.IntToStr(intMem) Call MemOutput.WriteLine(strCPU + ";" + strMem) Next I also solved my loop issue: When the close browser command is called, the process is not properly shut down. (A bug to report for Testcomplete?) So in order for the next iteration to run properly, I had to kill the browser process. Aliases.browser.BrowserWindow.Close Dim browser Set browser = Sys.Process("firefox") If browser.Exists then browser.Close End if1.9KViews0likes0CommentsRe: For Loop not working as it should
Thanks for the answer to both of you! Joseph: My aqFile WriteToTextFile was configured exactly the way you have described it. It seems like the test is not running the aqFile at all, because it is not mentioned in the log.I tried to create an aqFile OpenTextFile at the start of the test, but the test is not running that step either. Jeremy: The file exists, and is writeable. "OverwriteOrCreate" is set to False. I was hoping to solve this without any scripting, but I think I will give it a go, and see if I can solve the problem that way. I can't find any way to close the file without coding?1.9KViews0likes0CommentsRe: For Loop not working as it should
Hi, I solved the problem myself - I had placed the aqFile object method call in the wrong place. I have, however, bumped into another problem: The test is not running the aqFile writhe to text file object call at all. And I can't see what's wrong?1.9KViews0likes0CommentsFor Loop not working as it should
Hi! I'm trying to setup a memory leak test similar to the one you have in a video tutorial. I can't, however, get the for loop to behave as it should. It runs through the test as it should the first time, but the second time it fails to find the start page after logging in. This is for chrome, firefox and ie. And I never close the browser during the test. If I add a test step for closing the browser at the end of the test, it fails to launch the browser at the second iteration. Any idea why this is not working?2.7KViews0likes6Comments