Contributions
RegExp.Execute method
I am using following snippet to get the matching string. Sub ExtractDemo Dim InStr, regEx InStr = "Description:" &_ "Handles all actions supported " &_ "Input Parameters:" &_ " oInteraction: [air] Hello" &_ " guiObject[air]" &_ "sObjectType" &_ "sAction" &_ "sActionValue" &_ "Returns:" &_ "PropertyValue" Set regEx = New RegExp regEx.Pattern = "Des.*n" Set colMatches = regEx.Execute(InStr) If colMatches.Count > 0 Then Log.Message colMatches(0).Value Else Log.Message "Match not found for: Des.*n" End If End Sub Output: Description:Handles all actions supported Input Parameters: oInteraction: [air] Hello guiObject[air]sObjectTypesActionsActionValueReturn For reg exprs: regEx.Pattern = "^" &"Des.*n" & "$" Output: Match not found for: Des.*n For reg exprs: regEx.Pattern = "oIn.*n" Output: oInteraction: [air] Hello guiObject[air]sObjectTypesActionsActionValueReturn How can I get the exact matching string ? Expected outputs: 1. Description 2. Description 3. oInteraction Any thoughtsSolved996Views0likes1CommentHow to get the matched string
I am using StrMatches method to find if string contains sub string using regular expression. StrMatches returns True if string matches else False. Now I want to retrieve the matched string. For ex. sString = "Test String:Whats going on" sRegExpr = ".*Whats go.*" Utility_StrMatches = aqString.StrMatches("^" & sRegExpr & "$",sString) This will return True. How to retrieve the extact matched string. For above ex. code snippet should return "String:Whats going". Example 2. sString = "Test String:Whats going on" sRegExpr = "go.*g" Expected output: "going" Example 3. sString = "Test String:Whats going on" sRegExpr = "Test .* on" Expected output: "Test String:Whats going on"Solved1KViews0likes1CommentRe: How to enable or disable VB extensions in between the executions
Hi David, Can you provide more details on using '/NotOpenApp' command-line parameter with some examples. Basically we want know if there is way to lauch TestExecute/TestComplete with VB Extension ON or OFF. more details can be found at : http://smartbear.com/forums?forumid=81&threadid=77150 Thanks, Mustak697Views0likes0CommentsIs there way to launch TestExecute (and TestComplete) with VB Extenstion Turned ON or OFF ?
I want to launch TestExecute/TestComplete with following preferences. Preference 1: Launch TestExecute/TestComplete with VB Extenstion turned ON. Preference2: Launch TestExecute/TestComplete with VB Extenstion turned OFF. I know we can change VB Extention preference from 1. "Install Extentions" of File Menu 2.By updatingwindows Registory values. Other than these options,Is there way we can run TestExecute/TestComplete in above mentioned modes. Thanks16KViews0likes1CommentIs TestComplete version 7.52 supports DotNet Objects ?
I am not seeing any DotNet properties when I do spy on the object. Object class: WindowsForms10.Window.8.app.0.378734a Whereas TestComplete 8.2 is listing some properties when we spy the same object. Is TestComplete version 7.52 supports DotNet Objects ?24KViews0likes1CommentRe: How to get the state of Checkbox embedded in Listbox of class 'ListBox'.
Stephen/Ann, I tried to implement your suggestions but no success. 1. "ItemWithText" method is not available. 2. Not able to retrieve the required item as "list["Items"]["Item"](0)" not supported. 3. We can get the count using property - wItemCount and using wItem returns the name of the item specified by its index. Not sure how to retrieve the required item. 4. Test complete is using coordinates, when i performed actions on checkbox. Ex. listBox.ClickItemXY(2,5,4) I have attached screen shot of properties available for this object. All inputs are welcome. Thanks, Mustak1.2KViews0likes0CommentsHow to get the state of Checkbox embedded in Listbox of class 'ListBox'.
Hi, I am not able to get the state of checkbox embedded in Listbox of class 'ListBox'. On Spying I am seeing only "wSelected" and "wSelectedItems" properties and "wChecked" property is not available. Any thoughts on this. Thanks19KViews0likes6Comments