ContributionsMost RecentMost LikesSolutionsRe: Is it Possible to use CurrentTest as For anyone else who is watching this thread and may want to do something similar in JScript, Marsha gave me enough info that I was able to put together this single line which can be used as the Code parameter I needed for the keyword test I am calling (from the top level test in my Execution Plan)... eval(aqString.Concat(aqString.Replace(Project.TestItems.Current.ElementToBeRun.Caption, ' - ', '.'), '.Parameters.StationNumber')) + " - COPY" I am sure that someone can probably come up with something more concise, but that was the best I could do in a short time using the functions I could find within the online documentation. If you have anything better, feel free to share. Re: Is it Possible to use CurrentTest as I have tried to work with that method also, but haven't been successful. The suggestions that TC gives doesn't offer the Parameters or Variables to be appended to Project.TestItems.Current.Name When I try use something along those lines, it throws an Exception during runtime for either parameters or variables if you try to setup similar to this... "Project.TestItems.Current.Name.Parameters.StationNumber" Apparently, the Current.Name method doesn't extend to also allow for the use of the test's Parameters or Variables... Re: Is it Possible to use CurrentTest as Here is a screenshot of what I am doing to show the setup on how the test is called: (I also do something similar to call some scripts too.) You can see I have a keyword test which takes in 9 parameter values, in order to make a backup of the data I want to preserve. Note that the 7th parameter is a Code Expression, which refers to a variable specific to the test being executed in the test "CSA_Maint_Copy_CSA_and_Verify_Default_Values_Flow" The Keyword test which I am calling is a generic method which I reuse across many tests, so only the parameters values it receives change. The problem is... when I copy (control-c) the step which calls the generic method, and paste it in to another test, I then have to manually update the test name from "CSA_Maint_Copy_CSA_and_Verify_Default_Values_Flow" to reflect the new test name that I have created (let's say "CSA_Maint_Copy_CSA_and_Verify_Employees_Flow"). If there was a "currenttest" or "this.test" reference that I could use instead of the test name, then it would save the manual editing of these parameters with each new test created. Is it Possible to use CurrentTest as I sometimes use Code Expressions as a parameters to call other tests or scripts. But, I have not found an easy way to copy/paste these test step into another test without having to manually update the test name (from the old test to the new test name). A code expression I may pass would look like this: KeywordTests.Copy_Station.Variables.Station_12345 + " - COPY" KeywordTests.TEST_NAME.Variables.VARIABLE_NAME + " - COPY" But I would rather do something like the following, so as I copy/paste I don't need to modify the test name each time I need to use the same function: ProjectSuite.TestItems.Current.VARIABLE_NAME or THIS_TEST.Variables.VARIABLE_NAME + " - COPY" or CURRENT_TEST.Variables.VARIABLE_NAME + " - COPY" I assume this is possible in TC and some of you do something similar but can't come up with a solution that seems to work. Any suggestions are appreciated. I have tried multiple times over the years (and read endless documentation and community posts) but I figure someone out there has a solution they have found useful. Re: Can TestComplete Name Mapping Identify Multiple Web Elements? You would probably be better off using a function like FindElements() to identify the matching objects. The result is an array of those objects so you can then get the length to know how many matches exist, or get the individual objects and iterate through them. https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/page/findelements-method-page-object.html Be sure to use the plural findelements() instead of the singular findelement() which will only return the first match. Re: Chrome Blocking iocm.js Upon Microsoft OAuth Login Attempt Further note: This also occurs in Edge with the same security warning. And in FireFox too with a slightly different warning: Chrome Blocking iocm.js Upon Microsoft OAuth Login Attempt Within the last week, since updating Chrome (their usual forced version updates), I have began to see intermittent errors when logging in to Microsoft OAuth to access our web application using Single Sign On. The browser displays this generic "We couldn't sign you in. Please try again." error... I contacted our network support and requests from MFA are not even being sent for authentication in this case. The browser console shows this error: contentscript.js:33 Refused to load the script 'chrome-extension://2bf9ab2c-2940-4c17-bd84-4a098b445e78/common/iocm.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. injectJSFile @ contentscript.js:33 injectIocmOnPage @ contentscript.js:156 (anonymous) @ contentscript.js:281 (anonymous) @ contentscript.js:457Understand this errorAI 19Chrome is moving towards a new experience that allows users to choose to browse without third-party cookies. And the network tab clearly shows that this iocm.js file is being blocked from being executed: When we search my computer, this file is only found in my SmartBear directory, so it appears that this file is part of the SmartBear package and running tests: Our developers recommended deinstalling the SmartBear browser extension (which of course will result in me not being able to run tests in Chrome). And they also enabling the "Allow access to file URLs" setting which is within the SmartBear Test Extension settings, based on some research where people were getting similar messages for various browser extensions... Is anyone else experiencing this issue or has in the past? It seems to have begun within the last week for me and I can't get a successful run of tests which normally run without issue. Re: How to stop TestComplete from failing a test when unrelated processes crash? I had this occurring on my old laptop for years and never came to find a reason behind it happening. The support center was able to offer me the following workaround which I hope will help you. After I got a new laptop at work, I have not had the issue occur again so it seemed to be something specific to the thermal framework on that laptop because my file that crashed was "dptf_helper.exe". But, every time I would install a new TestComplete version, I would need to manually make the changes below so that I would not randomly experience this crash failing my tests. Best wishes and keep us updated if it works, Scott Here is a copy/paste of the steps that SmartBear provided after it was escalated above the first-line support. (Note: you will need to look in the directory corresponding to the version of TC you have installed.) ----------------------------------------------------------- The only other work around for ignoring this error message would be to completely disable the message altogether. To do so: 1. Go to the following folder directories: C:\Program Files (x86)\SmartBear\TestComplete 14\Bin\Extensions C:\Program Files (x86)\SmartBear\TestComplete 14\x64\Bin\Extensions 2. In both of these directories, remove or rename the following file: tcJITHook.exe 3. After doing so, TestComplete will no longer show process crash error messages. Note: Please note that TestComplete will hang for a little bit when the application crashes when this file is removed or renamed. This will have the side affect of no crashes being detected, but at the moment, there is not a good way to filter out crashes. Re: Warning messages in the test run log for improve performance I logged a support case for this issue today finally because it junks up my logs, and also linked it to this thread. I created a new test repo pointing to theonion website to demonstrate this issue occurring, and provided that repo to them so they can reproduce the issue. Hopefully we can finally get this resolved. Re: How to find background color of a cell in a table? I would think maybe your RGB value may be looked as an array given it is 3 values separated by commas. Just a hunch, but if you are assigning that to a string then it would mismatch. Try to do an explicit conversion to a string.. https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqconvert/vartostr.html