Contributions
Re: Is it possible for a PowerShell script to read the .tclogx file (TestComplete's output file)
Thank you Emma and Marsha for your suggestions and responses. I will work on these ideas and come up with the best one suitable for my project's needs. If I have any further query, I will start another thread 🙂820Views1like1CommentIs it possible for a PowerShell script to read the .tclogx file (TestComplete's output file)
I have multiple Jenkins jobs which trigger TestComplete test scripts which generates the .tclogx files. Each test have sub-tests within them. I'm working on consolidating the results of these tests in an excel sheet. Is it possible for a PowerShell script to read the .tclogx file (TestComplete's output file)? Or is there any other application which can do that? My requirement is to read the TestComplete test script execution log after script completes. I need few details from the file's log statements and then I want to put those values in an excel file. Please provide your valuable suggestions. Example: If my testcomplete log contains below statements: Validation1: PASS Validation2: FAIL Then I want to read this file and generate an excel report: Test Scenario Test Case Status 1 Validation1 PASS 1 Validation2 FAIL 2 Validation1 PASS 2 Validation2 FAIL885Views0likes5CommentsRe: How to retrieve the value (filepath) given in /ExportLog command line parameter in Jenkins Pipeline?
Hi Sonya, Thanks for checking and getting back with the info. I have another question - Is it possible for a PowerShell script to read the .tclogx file (TestComplete's output file). My requirement is to read the TestComplete test script execution log after script completes, read few details from the file and put those values in an excel file. Please provide your valuable suggestions.995Views1like1CommentHow to retrieve the value (filepath) given in /ExportLog command line parameter in Jenkins Pipeline?
Hi, I have a Jenkins pipeline configured to run TestComplete scripts in a remote machine using TestExecute. I use JenkinsFile with Groovy to specify the command line arguments for the tests to be run. I do not have admin rights to the remote machine in which it is being run and the workspace gets wiped out for every new build. My requirement is that in JenkinsFile I need to create a stage which gets executed post my scripts execution to send the exported HTML log file as an email. But the problem is that by default the value (file name with path) for /ExportLog is being taken by default. So to be able to send the file, I want to read the value of command line parameter: /ExportLog . Is that possible? How can we achieve it? Please help! Sample stage written for execution of test script: stage ("Execute smartbear testcomplete test script") { testcompletetest executorType: 'TE',launchType: 'lcRoutine', project: 'Project1', routine: 'InitiateCmdLineExecution', suite: 'Project\\TestProject1.pjs', unit: 'Tests', commandLineArguments : '/browser=chrome,/environment=env,/TestData=data,/TestName=Test1' }Solved1.1KViews0likes6CommentsRe: setInterval is not defined: Suggestion for best wait method during page loads
HiAlexKaras, Looks like adding the Page.Wait helped! Thank you very much for your help. For the people searching for a solution below is the line of code which solved the issue: for(let i=0;i<frequency;i++) { Sys.Browser().Page("*").Wait(); /*This has resolved the issue as it gets the latest DOM after the delay and hence element is found*/ Log.Message("Searching for webelement"); webObj=this.getOpenBrowserPage().FindChildByXPath(xpath); ....685Views1like0CommentsRe: setInterval is not defined: Suggestion for best wait method during page loads
The code snippet for getOpenBrowserPage() is below. Well, not sure, maybe it could be possible that the DOM might be still building the tree. So I will try the Page.Wait before finding xpath. openBrowserWindowURL(){ var Url=Sys.Browser().Page("*").URL; //Log.Message("URL is: "+Url) return Url; } getOpenBrowserPage(){ var page=Sys.Browser().Page(this.openBrowserWindowURL()); return page; }690Views0likes1CommentRe: setInterval is not defined: Suggestion for best wait method during page loads
Hi Alex, I added the improvement as suggested. Thanks! Below is the answer to your question: When executed in Jenkins, it is failing at the below line during 2nd iteration (Basically when it tries to find the element again). for(let i=0;i<frequency;i++) { Log.Message("Searching for webelement"); webObj=this.getOpenBrowserPage().FindChildByXPath(xpath); //Failing here at the iteration - 1 ....5.3KViews0likes3CommentsRe: setInterval is not defined: Suggestion for best wait method during page loads
Thanks for your response, Alex. The problem "Unspecified Error" re-occurred when I ran the scripts on Jenkins. 😞 I will try out your new suggestion on the improvement. Hoping it would solve the issue permanently.5.3KViews0likes5CommentsRe: setInterval is not defined: Suggestion for best wait method during page loads
Thanks for the suggestion, Alex. I could build on it and create the wait function which polls regularly. I was able to resolve the issue I mentioned in previous post by myself - by changing this: Instead of getting webpage reference from the argument list of the calling function only 1 time , I am currently taking the current webpage dynamically at every iteration and it works fine!5.3KViews0likes0Comments