pmartin66Occasional ContributorJoined 15 years ago18 Posts7 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Why can't I use 'winreg' that is built into python for registry access from TestComplete? Hmmm, weird, now it is working... I don't get it. Thanks anyway! Why can't I use 'winreg' that is built into python for registry access from TestComplete? I need to be able to read/write the registry, mostly just enumerate and read. I have great Python code that does this, same version as TC uses, but it won't work under TestComplete 12 trying to keep this as much python as possible, and, I feel I should be able to use every bit of Python, not just a subset if that is the case. Any help will be appreciated. SolvedRe: Capturing the internal event logs to export them at runtime to external log Well, you answered it correct, I was just using my Python logger wrong!! LOL, I was instantiating instances of the same logger as children to the parent logger, and the messages get passed from child to parent.... LOL, an Object Oriented n00b mistake... Oh, and everything works, I just was not adding real Check Points to my code as well!! Thanks!! Everything is working GREAT now and I can capture all the data! I just need to tweak my error handling to include more errors in strategic spots in the project. Re: Capturing the internal event logs to export them at runtime to external log Update 2 I figured out what I was doing wrong. One thing is, I need one object to do this, I designed it wrong, and was messing it up myself. Thank you for all your assistance! you basically answered it so I will accept your first post as solution. Re: Capturing the internal event logs to export them at runtime to external log Update... I think I have this mostly solved. I still cannot get checkpoints that happen in the code to write out to the log and the output is not what I was expecting. Thanks again for helping, I think I am on my way. Re: Capturing the internal event logs to export them at runtime to external log I will soldier on. Just re-tested the code, the line gets hit, when I step into it, it jumps to loading a different code script.... weird. Thanks for your help though. Much appreciated. If I figure this out, I will reply. I am on a 64 bit machine. TC uses a 32 bit version of Python, I do believe..... hmmmmm Re: Capturing the internal event logs to export them at runtime to external log Thank you SO MUCH for your help. I think you have pointed me in the right direction. However, when I set my 'GeneralEvents_OnLogCheckPoint' function, it doesn't work. I think I am doing something wrong. def GeneralEvents_OnLogCheckPoint(Sender, LogParams): logger = startLog('Some Log Name.GeneralEvents_OnLogCheckpoint') logger.info(LogParams.MessageText) logger.info(LogParams.AdditionalText) that function gets hit when I start my test, but the code under it never does.... hmmmm do I have to do anything special to reference the OnLogCheckPoint event properly from my script? Thanks so much for your help so far, it did work for other event handlers, not like I expected but I just need to figure it all out. Capturing the internal event logs to export them at runtime to external log Is it possible for me to get to and print out all the 'Additional Information' logged with actions in TestComplete so I can log it to my logger? The idea is simple, a user runs tests and they fail, they can send me ONE text log file to analyze. Looking at mht files is lame and REQUIRES Internet Explorer, which I do not use. As it is, my python logger gets most stuff with proper exception handling. It would be nice if I could get to the actual TC log and log it as well in python for one easy log file to analyze. Any help would be appreciated. SolvedI just wanted to say what a GREAT testing product this is. I LOVE that I can use Python and most all available packages! This is a dream made in heaven. Props to Everyone who had anything to do with this product! I bet the load testing is just as great. Keep up the Excellent work! Also, this community is the BEST! Re: The Best TestComplete's UI Scheme THANK YOU so much for your quick response! You people are the best.