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.2KViews0likes1CommentNetwork Suite Jobs: Keyword-Test selection
Hi, i use TestComplete and TextExecute on a remote machine. In my TestComplete workspace i got many Keyword-Tests. Now i want to add multiple tests to the Jobs in the Network Suite but i can only select one test at once and it takes its time until the test is loaded from the remote TestExecute into the NetworkSuite.Why it took so long to choose and load a test for a NetworkSuite Job? I want to quick add multiple tests to the Job list without waiting after each new test added. It should be possible to drag and drop the KeywordTests in TestComplete to the NetworkSuite Job list. Furthermore i didn´t understand the behavior of the remote test selection window. There is no directory hierarchy like in the project workspace and i have to scroll across a large list of test and the next bad thing: the lists isn´t sortedalphabetically. Searching the right test in a list withover 200 KeywordTests without directory structure or sorting function is a time-killing job :) Hope you will find a better way for this. Long live the softwareergonomics!8.4KViews5likes5CommentsBullet 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!817Views0likes1CommentA Skip Function or Button
I understand that 'ideally' no one is watching their tests as they run, but unfortunately that is what I have to do with my company. Our site performance can get slower/faster as the day goes by, so I have a lot of Wait commands in my scripts that I would like to be able to skip during the testshould I need to when our system is running exceptionally2.7KViews0likes1CommentIs 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