Contributions
How to work with many people on the same project/projects ?
Hi, Before I describe the way we work I would like to ask some questions first. Please be aware, that we use TFS versioning control of the source files. We don't use Keyword tests. - is it a good idea to share .pjs file among many testers ? - is it a good idea to share .mds file/files among many testers ? Depending of the answers for the previous question: - Is it a good idea that everybody should have it's own and not shared .pjs file ? - Is it a good idea that everybody should have it's own and not shared .mds file/files ? We would like to share amoung all the testers as much code as possible. For now - we share absoulutely nothing between each other and everybody works just for himself. If I create a function, nobody includes this function to the code, so that everybody creates it's own function like: def generateFakeMail(): We would like to change that, but we don't know how to do that in the best way. For now everybody has it's own pjs file and everybody has it's own mds file. Directory structure looks like this: TestComplete 11 Projects Tester1 automation Tester2 automation Tester3 automation Every TesterX automation directory looks like this TesterX automation Project1 Project2 Project3 TesterX automation.pjs While having structure like this - it is impossible for us to include anybody's file and keep the versioning control. For some reason - if I add the file outside my Tester1 automation directory and add something from Tester2 automation directory, this file is not being kept under versioning control inside Test Complete. Please share your thoughts and comments about the best way that we should work. There are 6 testers in the team and I think that we should bo more focused about the projects, becouse more than 1 person works at the same project. That's why I think that sharing .pjs or .mds file might be a good idea. I think maybe we should do something like this: TestComplete 11 Projects Project 1 Project 2 Project 3 It looks like sharing .pjs file or .mds file sounds like a great solution, howeverI had a problem in the past. It happend just once, but when it happened it was really annoying. The problem was like this: - I created a project on first PC - I copied this project to second PC - I tried to run all the scripts on second PC - it worked terribly slow. To resolve my problem - I created new pjs file and mds files on second PC and just added existing items - scripts. It helped. What are your suggestions about what we should change in order to share a lot and use a lot the common code ?Solved2.7KViews0likes4CommentsRe: How to get window information, if it disappears very quick ?
Well, it did not work as I expected. It produced the code like this: wndWixExtBA = Aliases.Micromedical_Installer.wndWixExtBA wndWixExtBA.Click(251, 54) wndWixExtBA.Click(253, 98) wndWixExtBA.Click(255, 128) But i found maybe not a perfect solution, but I found idea that help me solve my problem. While some automation script has been running, I invoke Test1() function every second line: def Test1(): result=Sys.Process("Micromedical*", 2).Window("WixExtBA", "Micromedical*", 1).FindAll("FullName","*",1000) for element in result: if (element.VisibleOnScreen == True): Log.Message(element.FullName) My log contains now some information, that lets me make a deeper analyze and lets find what I have been looking for.1.1KViews0likes0CommentsIgnore overlaping window but not from project settings, but from script
Hello, is that possible to ignore overlaping window, but from script, not from settings ? I have a situation, where overlaping window sometimes appear for some very very short time, this is intentionally and setting to ignore just in one situation might help. Is that possible ?630Views0likes1CommentHow to get window information, if it disappears very quick ?
Hello, I try to automate installation proces and it looks a bit difficult. Let's say the main window of the installer is 500 pixels width and 300 pixel height. I have to press "Next" button few times. When I press "Next" button for the last time, installation process starts. Sometimes it lasts for a 2 seconds, sometimes it last for a 50 seconds, but on the slow PC's it may last even for 2 minutes. When the installation process gets to finish, there is an information appearing, that installation is completed and there is "Ok" button. I tried the solution with WaitWindow but in this case it does not work, becouse the installer is written in some strange way. When I try something like: Sys.Process("Application").Window1.Window2.WatiWindow3(some parameters) for some reason TestComplete can't do this operation becouse of overlaping window. And now - there is something important to understand. When installation process starts, the main installer window remains almost the same, but another window shows up - let's say 500 pixels widht and 100 pixels height, it shows up in the center of my main installer window. To solve this problem I can ignore overlaping windows in a project settings, but I don't want to do this. Another soultion is to put Delay command with some interval, just to wait until overlapping window would disappear, but this is not nice solution. What I would like to do is I would like to get as many information about the overlaping window while the application is running. The problem is, that I see it for only 2 seconds on my PC. This time is to short to identify the objects using spy tool. So that possible solutions that I see, but I don't know hot to do this: - ignore overlaping windows from my python script just for installation time, but stop ignoring that as soon as installation process gets to finish. I don't know if I can change the settings of the project from script - the solution that I really really would like to know - how to save all the processes with all possible information for testcomplete while application is running. I could analyze the process window withh all the processess that were created with all windows inside when the application stops. - get a very slow PC, install TestComplete on it and then try to use spy tool on the window that shows up. But....come on....there must eb a better way. Any comments ?Solved1.1KViews0likes2Comments