Video 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.1KViews0likes8CommentsClickItem not selecting the proper item from a dropdown
I am working with TestComplete for the first time, evaluating it for ease of use for our organization. I'm a tester, not a developer I tried recording a test that fills out a form including a dropdown list. The code generated by a record as JavaScript shows as browser.pageLeaveHomePageGc.framePtifrmtgtframe.formW3lvLeaveTranG.selectGDerivedW3lvDescr500.ClickItem("Vacation"); However, when I play it back, it just clicked on the first (sometimes second) item in the dropdown list, not the item that I recorded selecting. There are a large number of items in the dropdown list (20+) Is there a different sort of command that would select the correct item? I tried recording as script and recording as keyword, but still got the same result36Views0likes5CommentsRunning tests by tag name in specific order
Hello, I will be running my suite of tests in a CI/CD pipeline (Jenkins) but I realized from the documentation that running tests by tag name (following the CLI commands) does not guarantee the tests will be run in a certain order. (Note:The tests that match the specified tag will be run in an arbitrary order.) While trying to find a workaround to this inconvenience, I realized that it does indeed follow a specific order. The order is given by how the test files are sorted in the file script.tcscript. So, for whoever needs to run their tests using tag names, and also wants to run a "pre-step test" or something like that, all you have to do is open that file on any text editor, and move the row where your test file is, up to the place first place, or at whichever place you want it to be executed. Example: # Assuming all tests have the tag "@Smoke" <folder name="MaiGroup"> <folder name="Group1"> <child name="TestMethod1" key="ZZZZ-YYYYY-VVVVV}" path="File1.js" /> <child name="TestMethod2" key="ZZZZ-YYYYY-VVVVV}" path="File2.js" /> <child name="TestMethod3" key="ZZZZ-YYYYY-VVVVV}" path="File3.js" /> </folder> </folder> # Test run for the @Smoke tag will look like: TestMethod1 TestMethod2 TestMethod3 ----------------------------------------------------------- # Now, if we want to run TestMethod3 first, all we have to do is open the script.tcscript file and move the TestMethod3 to the first place: <folder name="MaiGroup"> <folder name="Group1"> <child name="TestMethod3" key="ZZZZ-YYYYY-VVVVV}" path="File3.js" /> <child name="TestMethod1" key="ZZZZ-YYYYY-VVVVV}" path="File1.js" /> <child name="TestMethod2" key="ZZZZ-YYYYY-VVVVV}" path="File2.js" /> </folder> </folder> # And now, the test run for the @Smoke tag will look like: TestMethod3 TestMethod1 TestMethod2 ----------------------------------------------------------- Hope this helps someone, and maybe the TestComplete team can now update the documentation. Regards.595Views2likes1Comment[Java AUT / JavaScript test] .Exists waits when window exists but is not visible
Given the following code Here I am working with two windows - "nht" and "ac" nht exists and is visible ac exists and is NOT visible (It's completely hidden, not just behind another window) The problem is that line 146 (Check if ac exists) waits for the default timeout, even though it already exists!! To me, at least line 146 seems to be a bug. If the window does not exist and I execute the following code Then it does not wait So it's inconsistent. obj.Exists will NOT wait if the object does not exist obj.Exists will NOT wait if the object exists and is visible obj.Exists WILL wait if the object exists but is not visible I'm not asking if it's invisible, I'm asking if it exists. Why should it alter it's behaviour based on a property I am not asking about? Whatever, what I want is to be able to perform both checks without waiting. I do not want to alter the default timeout, I want to be able to make just these specific checks without waiting.103Views0likes23CommentsCustom Request Header
Using TestComplete, I want to add in a custom request header. Similarly to how Mod Headers extension in Chrome, I want it to be added to every web request. It needs to allow for a custom key/value set, as it will not be a web standard browser setting. Thanks!Solved38Views0likes4CommentsPOST method with x-www-form-urlencoded body request using testcomplete
we are trying to send http request using GET method and has body parameters in x-www-form-urlencoded as content type . i ended up 400-Bad request always. Following is the sample method which i have created: function test(){ var request,postdata,response; request= aqHttp.CreateGetRequest("https://login.microsoftonline.com/XXXXXXXX/oauth2/V2.0/token"); request.SetHeader("Content-Type","application/x-www-form-urlencoded") postdata="client_id=xxxxx;client_secret=*******" response= request.Send(postdata); Log.message(response.statuscode) Any sample method for this scenario would be helpful. Thanks!55Views0likes3CommentsHow to speed up checking for non-existence of objects in TestComplete?
I'm running into an issue where asserting that an object does NOT exist is taking an unexpectedly long time (~10 seconds) in my TestComplete tests. I've tried using both: if(!Aliases.restOftheCode.exists) and aqObject.CheckProperty("Exists", False) But they both take around 10.25 seconds to execute. I suspect this has to do with some global timeout setting, but I'm not sure exactly which one. Is there a way to override this timeout for just a single test case or step, rather than changing it globally for the entire project? My goal is to make these "object does not exist" checks run much faster, ideally just taking a fraction of a second. Any tips on the optimal way to achieve this would be greatly appreciated!70Views0likes8CommentsUnexpected behavior executing if, elif, else statement in Python
I wrote an if, elif, and else routine to checkpoint a header name and write the appropriate password into a required password field. When I ran the script routine it resulted in unexpected behavior. The first expression (checkpoint function) resulted in true but instead of executing the associated code block (touch & keys) and dropping out it ran the next elif, which as expected failed and then it ran the statements from the previous if statement. It completed the task but ultimately failed the test. I’ve run similar if statements before without issue. Please see attached code snippet and log. Any thoughts as to why this would be happening would be appreciated.Solved73Views0likes7CommentsReferencing an Object and its Properties with GetPropertyValue/CheckProperty
Hello! I recently started working in TestComplete and have just learned about scripts as a way to make more complex test steps. Because my tests will probably be used in the future, one of my ideas was to make a make a script that could compare the current date with a certain textbox and see whether date and value in the textbox object are the same. This would mean that the script always had the current date of the test, rather than a hardcoded value. I thought further that I shouldn't tie this to a certain object in one test, making only that test continuously relevent, I should instead make this script more generic, so I can apply it in multiple tests, or in multiple places in the same test. To do this, I wanted to give my function an argument that would take in a TestComplete object (the objects that are referenced in the test steps). This is what I have tried so far: function DateCheck(dateTextObject) { aqObject.CheckProperty(dateTextObject, "text", cmpEqual, aqConvert.DateTimeToStr(aqDateTime.Today())); } I am planning for the dateTextObject to be the long NameMapped object that I want to pass in, for example: Aliases.browser.pageLeadMainTestcompletetestDyna.sectionQuickCreateContact.sectionDetails4.textboxDate When I passed that into my test, however, it gave me an error that told me there was a Type mismatch. I would appreciate any help you could give to me about this issue. Thanks!23Views0likes4Comments