Double-Monitor and Logging ...
Hello, I work with two monitors and after running Keywordtests the pictures in the log are showing the secound (for testing unused) monitor. It´s not necessary to make a picture of both screens and I think nobody uses two screens for testing. So pleasechange the process of screenshot making limited to one screen only or make it chooseable from which screen pictures are been taken. Attached Screenshot is showing my secound (blank) screen on the left side.5.1KViews3likes3CommentsLog.SaveResultsAs() do not work for the LogFormat lsJUnit
Hi everyone, I would like to export JUnit report to see my summary reports in Jenkins. Of course I read the Log.SaveResultsAs() function documentation, Viewing TestComplete Test Results in Jenkins and also Exporting Test Results , and the related documentations. I want to export my test summary from my scripts using Log.SaveResultsAs("C:\\Temporary jenkins workspace with spaces\\exports\\results.xml", lsJUnit, True, lesFull) But it always returns "False", and the summary report is not exported. However, I am not doing something very complicated, and I have just called a function as it is given in the documentation as an example. I also export logs with "lsZip" and "lsPackedHTML log formats with the same call, just adjusting the file name (and extension of course), and in that cases it works correctly. Can you confirm if it is realy a bug of the Log.SaveResultsAs() function or if there are some specific things to do that are not written in the documentation please ? PS: Why do I not use the /ExportSummary command line argument ? Because when you configure a Jenkins job to publish JUnit report you have to give a relative path to the workspace. Whereas the /ExportSummary argument expects an absolute path, the Jenkins workspace depends on the job name, so we can not use the command line argument because it is to heavy to edit the command line argument value each time we edit the job name (we use the job name as a test run title, so we edit it sometimes). Moreover we have one job per PJS, deployed from a job template, so the commande line argument value has to be set for each job. And in the /ExportSummary command line argument value we can not use environment variables, like the %WORKSPACE% variable which holds the running Jenkins.Solved2KViews0likes6CommentsSummary Report with aqTestCase and TestComplete 12
Has anyone tried to create a Summary Report via aqTestCase.Begin() / .End() in TestComplete 12? I saw, there is a option to choose TestComplete 12 in the documentation , but then it says "Topic not found". Thank you for your help.Solved1.7KViews0likes3CommentsHow to send Indicator and/or Log.Message to Console during TestComplete run from command line?
I run TestComplete project from the command line using a .bat file. I would like the Indicator messages or the Log.Message/Error/Warning/Checkpoint or both to appear in the console window during the run of TestComplete from the command line. How can I do this? Thank you.727Views0likes1CommentMessage posted to wrong log folder
Hi, I'm completely clueless what this strange behavior is posted by: I append a log folder to the one on the top of the folder stack, but TC only posts entries to this appended folder only when explicitly specifying its ID, otherwise it posts to the top level. Here's the code producing the issue: function ReadGlobalConfig() { DumpCommandLineParams(); var logId; Log.PushLogFolder(GetInfrastructuralLogID()); logId = Log.AppendFolder("Reading project suite configuration settings"); // Method 1 ProjectSuite.Variables.BaseTestDataPath = GetSetting("Environment", "BaseTestDataPath", ProjectSuite.Variables.BaseTestDataPath); Log.Message("Base path for master copies of test data: " + ProjectSuite.Variables.BaseTestDataPath, null, pmLowest); // Method 2 ProjectSuite.Variables.BaseTempPath = GetSetting("Environment", "BaseTempPath", ProjectSuite.Variables.BaseTempPath); Log.Message("Temporary folder base path: " + ProjectSuite.Variables.BaseTempPath, "", pmLowest, null, null, logId); // Method 1 ProjectSuite.Variables.BaseResultsPath = GetSetting("Environment", "BaseResultsPath", ProjectSuite.Variables.BaseResultsPath); Log.Message("Base path of results: " + ProjectSuite.Variables.BaseResultsPath, null, pmLowest); Log.PopLogFolder(); Log.PopLogFolder(); // Infra log } I maintain two top-level log folders, one for events occured during the core steps of the tests, and an infrastructural log for log entries which are likely coupled with test configuration or errors. I also use this infrastructural log folder to document command-line parameters and configuration settings. The method in the sample above: Pushes the infrastructural log to the top of the folder stack. The method GetInfrastructuralLogID() returns the ID of the infrastructural log golder. Appends a folder for the subsequent messages. Logs messages using two different methods, for testing. Pops the folder appended in step 2. Pops the folder pushed to top in step 1. Now the weird result is that the entry posted using Method 2 appears in the correct subfolder appended. But if I do not specify the log folder ID, the entries are posted to the topmost level folder of the entire test run (that is, out of the complete infra log folder), as trying to show here: + Test Log - Entry + Subfolder - Enntry + Infrastructural log - Entry + Reading project suite configuration settings - The second entry posted using method 2 - The first entry posted using method 1 - The third entry posted using method 1 I've never faced such strange situation, but I miss something trivial. Do you have any idea?Solved2.8KViews0likes9CommentsMake Screenshot & compare
Hello, i want to make a screenshot (post to Log) while the keywordtest is running and then this screenshot should be compared withanother picture from the actual viewving. How can i set a folder vaariable for the current log directory at the image comparsion checkpoint? would be great if you can help.Solved2.3KViews0likes1CommentChange attributes on the current Folder in the log
I am trying to change the attributes on a folder based on if there are any error messages within that folder. I was wondering if this was possible. For example: [code] var goodAttr = Log.CreateNewAttributes(); goodAttr.Bold = true; goodAttr.BackColor = clLime; goodAttr.FontColor = clGreen; var badAttr = Log.CreateNewAttributes(); badAttr .Bold = true; badAttr .BackColor = clRed; badAttr .FontColor = clMaroon; foo = function() { var previousErrs = Log.ErrCount; var logFolder = Log.CreateFolder("New Folder", "Stuff that goes in this folder", pmNormal, goodAttr); Log.PushLogFolder(logFolder); // ... // Do Stuff // Some of which may be errors //... if (Log.ErrCount >previousErrs) { // This is the part I can't figure out. Log.Item(logFolder).Attr = BadAttr; } Log.PopLogFolder(); } [/code]Solved1.3KViews0likes3Comments