Writing log messages of test to the file
Hi, When TestComplete is being used, We try to write log messages which are come out of the "Log. Message()" or "Log.Error()" function to a text file in order to keep the log messages together as a log.txt. However, after creating a file, we try to use "Log.File()" function or "SaveResultsAs()" to write logs messages to this file, It just created the file, could not write anything. Is there any way to keep log messages that are written in the test script in the txt file in a given directory? as an example code; function creatingAndWritingLogMessagesToTheTxtFile(){ //create a file var filePath="C:\\.....";//Directory aqFile.Create(filePath); var logName="filePath"+".mth"; Log.SaveResultsAs(logName,lsMHT); } And in the functions how we can write the log messages to this created file that is created to keep log messages? as an example code; function testA(){ //....codes doing something Log. Messages("Test Successful"); //Here How can we use that method (If it is useful) to write this log to that text file?? }Solved1.3KViews0likes3CommentsUse dynamic parameters for TestItem
Hey, I would like to structure my test sequence via TestItems in TestComplete. But I ran into one problem: I want to start my TestItems (TI) out of the script with dynamic/changing parameters. Is this possible? I could not figure out, how to hand over a variable to the TI. Thank you for your help.Solved1.3KViews0likes1CommentScheduling TestComplete Keyword Tests with Microsoft Task Scheduler
Hello, I am trying to schedule my TestComplete keyword tests to run automatically when I am out of the office. After doing some research, it seems as though Microsoft Task Scheduler can help me achieve this goal. However, I am relatively new to TestComplete, and was wondering if anyone could provide me with more clarity on this process. Thank you.1.2KViews0likes1CommentBullet Proof Design Disscussion
In general I am looking at discussingmethods for handlingerror situations and recovering so I can complete a string of tests ending with a list of tests that passed and those that failed instead of stopping the test run on any error. I know how to enable this feature and how to control it on a perKWT and per command basis. The problem is error and event handling. I do a little scripting but not much. I have not implemented any sort of event or error handlingas of yet. I am working with an application with a database backend. In many cases if a test fails it may leave the data in an odd state which will cause subsequent tests to fail, produce false positives or crash the app. The foundation will be a good name map. My thoughts are to get all of my objects mapped and leave the name map as close to the object map as possible. Then I would simplify the alias mapas much as possible tomake my keyword tests easier to read. Only after this point would I being writing tests. I plan on implementing some new approaches on my next project. Here's to a productive discussion! Thanks all!817Views0likes1CommentIs there any kind of functionality to skip test items/unnecessary waits (I.e. Alt+Right/Ctrl+Right)?
My company only uses one license for TestComplete that I watch over and since I already am watching the tests I was wondering if there was any functionalitywith TestComplete (I.e. a shortcut command, Dedicated button, or option) that would allow me to skip test steps without adding extra code? (Unfortunately I know very little in terms for/with coding)I ask because sometimes our site runs slower thanusual, usually after posts and it has effected my testing, I had to input a bunch of wait commands (which is great, but not always needed on each page) but I cannot tell ahead of time when ill need to disable/enable them to smoothen test times. If anyone knows a simple command or way to skip test items or an unneeded wait, any assistance/knowledge would be greatly appreciated.4.6KViews0likes4CommentsIs it possible to skip a test step during test playback in TestComplete?
I have a test case with a bunch of delays on it for my companies QA site, because it does not run at full speed at all times. to avoid failing when our system is running slow I put those in there, but is there a way to skip these steps incase they are unneeded? If not I could just test the system before starting my test?Solved3.9KViews0likes3Comments