Get "filePath" value set for -exportLogs parameter on tests start
We're running the tests with PowerShell command $pinfo = New-Object System.Diagnostics.ProcessStartInfo $folderName = $env:logsPath $pinfo.FileName = "C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\TestComplete.exe" $pinfo.Arguments = "$projectSuitePath /r $(if ($project) {"/project:$project "} else {''})/e /SilentMode /el:$folderName\index.htm /es:$folderName\summary.htm" $p = New-Object System.Diagnostics.Process $p.StartInfo = $pinfo $p.Start() | Out-Null $p.WaitForExit() Before running the tests, unique filePath is generated by another script. The Path is used in the testСomplete project to post logs on start and on error. Now I'm using the environment variable to solve this issue. Is there a way to get the value of that parameter in test complete scripts?Solved1.3KViews0likes2CommentsCheck if a test parameter has a value
Hi, I'm trying to trigger a particular property checkpoint only if a given test parameter has a value. I am using an If ... Then statement, with value: Param_Name Does Not Equal undefined. This works correctly if the parameter is defined, but falls over if it is has no value defined. I have also tried "" and null, but nothing seems to work. Can anyone suggest the best way to do an If ... Then, testing whether a parameter has a value? Thanks932Views0likes2CommentsCan I pass the object textfield Name as a parameter
Hi there! I have the following objects (1 & 2) that TestComplete has identified, which they refer to text fields on a window. 1. Sys.Process("GemCat_Gui").WinFormsObject("frmPatternMetaData").WinFormsObject("grpPatternID").WinFormsObject("txtPatterName") 2. Sys.Process("GemCat_Gui").WinFormsObject("frmPatternMetaData").WinFormsObject("grpPatternID").WinFormsObject("txtSAPInvestigationDescription") As one can see, the only portion of the name that changes for each text field is the last part within quotes, that is, "txtPatterName" and "txtSAPInvestigationDescription". Can one parameterize that piece which refers to the specific text field? I would hate to repeat this line of text as many times as for each text field. Any ideas would be appreciated as to how I can accomplish that. I tried to concatenate a parameter but TestComplete does not like it. Thank you in advance! MiguelSolved2.1KViews0likes5Comments