Wednesday, June 3, 2009

QTP Scripts - Page 2

QTP Script 36
How to search in a text file using regular expression?

QTP Script 37
Different ways to capture a tool tip in QTP.

QTP Script 38
Using ADO Connection & SQL Query to extract specific rows from an excel sheet.

For Scripts 39 to 45 see main post here.

QTP Script 39
A script to open, display and close a PDF file using QTP.

QTP Script 40
A script to Search for a particular text in a PDF file using QTP.

QTP Script 41
How to get first 3 words of first page of any PDF file using QTP.

QTP Script 42
How to highlight first word of first page of any PDF file using QTP.

QTP Script 43
Reading data from PDF and writing to a text file using QTP.

QTP Script 44
Combining two PDF files into one file using QTP.

QTP Script 45
How to crop a PDF file using QTP.

QTP Script 46
QTP & SQL Server Database Connection.

QTP Script 47
QTP Counting Elements on a Webpage.

For scripts 48 to 54 see main post here.

QTP Script 48
QTP Script to get inbox folder name in messagebox

QTP Script 49
QTP Script to count emails in any Outlook folder

QTP Script 50
QTP Script to enumerate all folders in Outlook

QTP Script 51
QTP Script to send an email from Outlook

QTP Script 52
QTP Script to send an email with attachment from Outlook

QTP Script 53
QTP Script to read an email from Outlook

QTP Script 54
QTP Script to download an email attachment from Outlook

For scripts 55 to 59 see main post here.

QTP Script 55
VBScript to access number of child nodes and text/nodename of each child node from XML file

QTP Script 56
VBScript to access node name and node type of all nodes from XML document

QTP Script 57
VBScript to add a new node in XML document

QTP Script 58
VBScript to append a string at the end of a text node in XML file

QTP Script 59
VBScript to compare two XML files and show the differences in a messagebox

XMLUtil Object: The object used to access and return XML objects. Carefully understand the below examples to get a feel of XMLUtil.

QTP Script 60
How to find total number of child elements?

QTP Script 61
How to view ALL elements in a message box, one at a time?

QTP Script 62
How to view the VALUE of elements in a message box, one at a time?

QTP Script 63
How to get the NAME of the root element, get the COUNT of child elements of root, get COUNT & NAMES of children of any child element of root?

QTP Script 64
How to create a new XML file?

QTP Script 65
How to move/transfer text from XML file to QTP DataTable?

QTP Script 66
How to compare two XML file?

QTP Script 67
How to take screenshots with VBScript & HotKey combination?

VBScript and MSWord Scripts

QTP Script 68
Opening a new word document

QTP Script 69
Opening an existing word document

QTP Script 70
Opening a new word document and writing text to it

QTP Script 71
Opening an existing word document and appending text to it at the end

QTP Script 72
Opening an existing word document and appending text to it at the beginning

QTP Script 73
Saving a new word file

QTP Script 74
Saving an existing word file

QTP Script 75
Writing formatted text to a word file

QTP Script 76
Formatting all content, formatting specific paragraphs or finding and formatting specific text in a word document

QTP Script 77
Inserting images/pictures to a word file

QTP Script 78
Creating table in a word document, adding text to cells, adding rows to table

QTP Script 79
Printing a word file

QTP Script 80
VBScript - Adding Comments to an Excel Spreadsheet.

1    2    3    4    5