Parent page: Service Functions – String (QTP, VBScript) Description Get token string from the source string. Position is relative, defined by another token-keyword and a number. Implementation ...
Parent page: Service Functions – String (QTP, VBScript) Description Get token string from the source string. Position is absolute, defined by number. Implementation ...
Parent page: Service Functions – System (QTP, VBScript) Question I need to modify text file template (add a few lines) and “Save as”. Answer One of the typical challenges that people face while trying to automate work tasks, is “procedure - result” confusion. Here, the end result* is confused with a way** to do the […] ...
Parent page: Service Functions – String (QTP, VBScript) Description Based on the maximum allowed length of the string (strMsgText) insert space characters. Implementation ...
Parent page: Service Functions – String (QTP, VBScript) Question The question was asked here. Hi Author! Can you email me a QTP function that wraps line of text without breaking words? Thank you! Answer Proper text alignment is important. The whole layout of CSS block or HTML table could be broken if a text line […] ...
Parent page: Service Functions – String (QTP, VBScript) Question The question was asked here. What QTP function i can use to trim inside string? For e.g. “text text text text” – i want only 1 space between. Answer I believe the sample string provided in the question originally contained multiple space characters inside but was […] ...
Parent page: Service Functions – System (QTP, VBScript) Description If you need to generate text file with values you don’t know ahead you may do it dynamically, by utilizing the function below. Make sure you designed template first. The current logic is oriented to executable text files generation, like Dexterity Macro or OS Shell batch files. Code lines are data-driven, […] ...
Root page: Service Functions – XML (QTP, VBScript) Parent page: XSL introduction and references Related post: Text File compare in “WDIFF” style (QTP, VBScript, XML, XSL) – Instructions and XSL script Sample task After line by line (and word by word) text file comparison has been performed, XML log was produced. Review the log, identify and report found issues. […] ...
In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure. Matching string with a pattern (Regular Expression, RegEx) Replace pattern(s) in a string Number conversion and initialization with a default value Initialize string with […] ...
Original date: N/A The post has been mostly recompiled from the comments. Displaying Text File comparison results in an embedded report. Refer to Text File Compare functions used to see how XML file is generated. Sample requirements to show comparison results stored in XML as a web-page (HTML). 1. Show file stats saved in xml file. […] ...
Original date: 26 Jan 2009, 1:30pm Line by line, and word by word comparison isn’t a big problem. But how conveniently show the results? With WinRunner comparison and reporting has been implemented utilizing WDIFF program. With QTP we can do the same using XML-XSL technology. The function below performs comparison of 2 text files generating […] ...
String / Text/ Date Functions In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure. String/Text functions (WinRunner, TSL) Trim text line Check format String/Text functions 2 (WinRunner, TSL) Replace characters in a string Replace […] ...
Parent page: Service Functions – String / WinRunner Date to Dictionary Date comparison ...
Parent page: Service Functions – String / WinRunner Month Name/Number conversion Date format conversions ...
Parent page: Service Functions – String / WinRunner CheckBox status value conversion Boolean value conversion Execution Status value conversion String-based Association to Dictionary conversion String-based data Set to Array conversion ...
Parent page: Service Functions – String / WinRunner Find a substring defined by 2 tokens Return substring by index Split filepath - return folder path, file name and extension separately ...
Parent page: Service Functions – String / WinRunner Remove extra space and tab characters within a string Return position of a substring, looking from LEFT or RIGHT Matching strings ...
Parent page: Service Functions – String / WinRunner Replace characters in a string Replace pattern (regular expression) in a string ...
Parent page: Service Functions – String / WinRunner Trim text line Check format ...