Use Variables in the sql connectionstring
Hi there, I'm using 2 environments and 2 databases: 1 to create the testcases and 1 to execute them I want to check the results with DBTables Custom queries (SSMS) and I have i.e. next connectionstring: How CAN I make this string Variable ? When I login at the ALPHA-environment I want in the string ALPHA and server01 When I login at the BETA-environment I want in the string BETA and server02 Greetings, Sjef van Irsel685Views0likes6CommentsHow To: Read data from the Windows Registry
Hello all, I have recently learned how to retrieve data from the Windows registry in JavaScript test units. I am using this to return the OS information and application path information. This is very useful when added to the EventControl_OnStartTest event code. This will allow you to return OS information and other needed data at each test run. Some test management systems may provide this information for you or it may be logged in the in data produced in a pipeline run. This will embed the information directly into your test log. SmartBear KB Links: Storages Object Storages Object Methods Storages.Registry Method Section Object Get SubSection Method This bit of code will return the Product Name and Current Build from the registry. This location may vary between OS's so you will want to check this with RegEdit. let Section = Storages.Registry("SOFTWARE\\Microsoft\\Windows NT", HKEY_LOCAL_MACHINE); let regKeyString = Section.GetSubSection("CurrentVersion").Name; let productIdString = Storages.Registry(regKeyString, HKEY_LOCAL_MACHINE, 1, true).GetOption("ProductName", ""); let currentBuildString = Storages.Registry(regKeyString, HKEY_LOCAL_MACHINE, 1, true).GetOption("CurrentBuild", ""); Log.Message("Windows Version: " + productIdString + " Build: " + currentBuildString ) I have also found the need to find and set an application path and work folder in the project TestedApp for running through a pipeline because the pipeline deploys the application to a non-standard path. let Section = Storages.Registry("SOFTWARE\\WOW6432Node\\<_yourSectionName>\\", HKEY_LOCAL_MACHINE); let regKey = Section.GetSubSection(<_yourSubSectionName>).Name; let Path = Storages.Registry(regKey, HKEY_LOCAL_MACHINE, 0, true).GetOption("", ""); let WorkFolder = Storages.Registry(regKey, HKEY_LOCAL_MACHINE, 0, true).GetOption("Path", ""); let appIndex = TestedApps.Find(<_yourAppName>); if (appIndex >= 0){ if(TestedApps.Items(<_yourAppName>).Path != Path){ TestedApps.Items(<_yourAppName>).Path = Path } if(TestedApps.Items(<_yourAppName>).WorkFolder != WorkFolder){ TestedApps.Items(<_yourAppName>).Params.ActiveParams.WorkFolder = WorkFolder; } } else{ Log.Error("TestedApp " + <_yourAppName> + " does not Exist.") Runner.Stop(true); } I hope you find these links and code examples as useful as I have! Have a great day!59Views0likes0CommentsMark FAILED file/XML comparison nodes with red instead of a green checkmark
Currently, when a file comparison fails because of a difference higher then the set tolerance, the results are confusing as they are shown with a green checkmark! To say the least this is counter-intuitive, and seems easy to fix. Examples (taken from the TC docs):24Views0likes0CommentsAdd feature to create Bug/Issue in Azure DevOps from TestComplete
I had check the TestComplete documentation and could not find any feature to Create Bug/Issue in Azure DevOps from TestComplete logs directly. So can you implement this feature in TestComplete as it would be helpful to automate the process of posting bug on failure. As currently I can see it is only possible to create issue in Jira, Bugzilla and QAComplete only.88Views7likes7CommentsMore specific crash detection
Currently the crash detection posts an error to the test log on any crash of any application systemwide. Please make it configurable (project settings, or even better project suite settings) to post only errors of the applications configured in the TestedApps section (all others unnecessarily spoil the test log ;-) ).10Views0likes0CommentsVideo recording of Text Execution
Hello to everyone! I installed the VideoRecorder Extension and the last version of VLC Media Player. When I try to record a test execution in the log tab the following sentence appears: "Unable to start video recording. The VLC recorder is not installed." Why does this message appear? I uninstalled and installed again VLC but it continues to appear. How could I solve this problem? Thanks in advance to everyoneSolved1.1KViews0likes7CommentsHow to get the data in the summary report into variable
I am working on creating a table with all the data available in the Junit summary report I want to check here to see if there is any Test complete inbuilt variables that has these values available. I am looking for execution data such as Run test cases, Passed test cases & Failed test cases. i am using below command to generate & export Test results summary in Junit format Log.SaveResultsAs("C:\\Work\\Log\\Log.xml", lsJUnit) sample Junit report -> <testsuites name="CommonAutomationFramework" tests="2" failures="2" errors="0" time="17" > <testsuite name="CommonAutomationFramework-UI" tests="2" failures="2" errors="0" hostname="xxxxxxxx" time="17" timestamp="2024-08-15T09:34:22.088-07:00">41Views0likes2CommentsFailed step is not specified
Hi, When I have a keyword test (A) in which another keyword test (B) is executed multiple times and keyword test A fails because keyword test B failed, then it is not possible to see which instance of keyword test B failed. Example: Keyword test A (check values in employee file) Step 1: Open employee file Step 2: Press button 1 Step 3: run keyword test B "Check all values" Step 4: Press button 2 Step 5: run keyword test B "Check all values" Step 6: Press button 3 Step 7: run keyword test B "Check all values" Step 8: Close employee file If the run of Keyword test A fails, because in step 5 keyword test B failed the keyword test log of keyword test B shows that the failed step is in keyword test B, but not in which instance (step 3, 5 or 7). It would be better if steps 1, 2, 3 and 4 where indicated as succeeded and step 5 as failed. Am I overlooking something?34Views0likes3Comments