Contributions
Alternate IDE
So I'm using python to script my tests and the built in IDE/code editor is not very good especially when it comes to code completion of custom classes. Is there any way I can use an alternate IDE like Visual Studio and import TestComplete's 'standard' library? or anything resembling this? TestLeft doesn't have all the goodies TestComplete has like region checkpoints.1.1KViews0likes1CommentRe: How to test fast changing items?
Yup, because it is the same object as on the Log.Message() test. I reckon there is something 'slow' happening in CheckProperty() method. Same issue with WaitProperty() #Below correctly logs the contentText "Searching..." TextboxSearch.Keys("apples") #Line 1 Log.Message(obj.contentText) #Line 2 ### #But this one fails TextboxSearch.Keys("apples") #Line 1 CheckProperty(obj, "contentText", cmpEqual, "Searching...") #Line 2 ### #This fails too TextboxSearch.Keys("apples") #Line 1 obj.WaitProperty("contentText", "Searching...", 0) #Line 22.5KViews0likes2CommentsRe: How to test fast changing items?
I have changed project playback properties;Delay between events, Key pressing delay to zero ms and still same issue. What's odd is that if I do a Log.Message() for contentText after keys is that it sees it just fine. Not sure why CheckProperty()does not.2.5KViews0likes4CommentsHow to test fast changing items?
Hi, so this is the scenario. There is a search box that user keys in stuff to. This then fires an API request and the text "Searching..." is shown while request is pending. The text then disappears (removed from DOM) when the request is finish. I would like to test that this text does show up. Pseudo code: TextboxSearch.Keys("apples") #Line 1 CheckProperty(obj, "contentText", cmpEqual, "Searching...") #Line 2 The request response is really fast but slow enough that user still sees the "Searching..." text. The problem I'm having is that TestComplete (TC) is "slow" and seems like line #2 is not yet executed by the time the text disappears after finishing searching for apples and so the test fails. I have also tried executing the property check first withRunner.CallObjectMethodAsync() then do the keys but it does not work with TC methods as stated on the documentation. Any ideas?2.6KViews0likes6CommentsCode completion not working for class methods
Code completion does not work for the example below both when "Auto Pop-up" is enabled or triggering using Ctrl+Space. Is this a bug or does the TestComplete editor not support it at all? Any recommended IDE that will do this and work with TestComplete objects? #tests.py class A: def Greet(self): Log.Message("Hi from A.Greet") def test1(): x = A() x. #I want autocomplete to popup here2.4KViews4likes2CommentsCheckProperty takes entire Options.Run.Timeout when checking visibility during test run
So I like to enable 'Capture images and test object info' when doing runs as it makes it easier to debug failures straight away without rerunning. But aqObject.CheckProperty() seems to take the entire Options.Run.Timeout duration when checking if object is VisibleOnScreen is False even though it can verify the property correctly. I'm guessing it's because of the method's built-in picture logging is still trying (and failing) to capture theobject which is not visible? How can I get around this delay if I want 'Capture images' on my runs?852Views0likes1CommentHow to do test specific on stop event (clean up)?
Hi, it seems like Testcomplete (TC) has its own event handling when a Stop event occurs so the 'finally' on this test does not run. But TCs event handling is a global one (I think). How can I do a test specific cleanup on a Stop event? def test1(): try: Log.Error("Error") finally: Log.Message("Do cleanup for test1") def test2(): try: Log.Error("Error") finally: Log.Message("Do cleanup for test2")Solved1KViews0likes1Comment