Conversion Functions | |
Function | Description |
Asc | Converts the first letter in a string to ANSI code |
CBool | Converts an expression to a variant of subtype Boolean |
CByte | Converts an expression to a variant of subtype Byte |
CCur | Converts an expression to a variant of subtype Currency |
CDate | Converts a valid date and time expression to the variant of subtype Date |
CDbl | Converts an expression to a variant of subtype Double |
Chr | Converts the specified ANSI code to a character |
CInt | Converts an expression to a variant of subtype Integer |
CLng | Converts an expression to a variant of subtype Long |
CSng | Converts an expression to a variant of subtype Single |
CStr | Converts an expression to a variant of subtype String |
Hex | Returns the hexadecimal value of a specified number |
Oct | Returns the octal value of a specified number |
Showing posts with label QTP. Show all posts
Showing posts with label QTP. Show all posts
Saturday, 9 November 2013
QTP Functions - Conversion Functions
QTP Functions - Date/Time
Date/Time Functions | |
Function | Description |
CDate | Converts a valid date and time expression to the variant of subtype Date |
Date | Returns the current system date |
DateAdd | Returns a date to which a specified time interval has been added |
DateDiff | Returns the number of intervals between two dates |
DatePart | Returns the specified part of a given date |
DateSerial | Returns the date for a specified year, month, and day |
DateValue | Returns a date |
Day | Returns a number that represents the day of the month (between 1 and 31, inclusive) |
FormatDateTime | Returns an expression formatted as a date or time |
Hour | Returns a number that represents the hour of the day (between 0 and 23, inclusive) |
IsDate | Returns a Boolean value that indicates if the evaluated expression can be converted to a date |
Minute | Returns a number that represents the minute of the hour (between 0 and 59, inclusive) |
Month | Returns a number that represents the month of the year (between 1 and 12, inclusive) |
MonthName | Returns the name of a specified month |
Now | Returns the current system date and time |
Second | Returns a number that represents the second of the minute (between 0 and 59, inclusive) |
Time | Returns the current system time |
Timer | Returns the number of seconds since 12:00 AM |
TimeSerial | Returns the time for a specific hour, minute, and second |
TimeValue | Returns a time |
Weekday | Returns a number that represents the day of the week (between 1 and 7, inclusive) |
WeekdayName | Returns the weekday name of a specified day of the week |
Year | Returns a number that represents the year |
Saturday, 1 June 2013
QTP Commands
QTP Commands are available in 3 ways.
1.Menu options
2.Tool Bar options
3.Short cut keys (for Some important operations only)
File menu: Through file menu user can create, save tests, open existing tests, export tests in zip format.
Command | |
New > Test | |
New > Business Component | |
New > Scripted Component | |
New > Application Area | |
New > Function Library | |
Open > Test | |
Open > Business/Scripted Component | |
Open > Application Area | |
Open > Function Library | |
Close | |
Close All Function Libraries | |
Quality Center Connection | |
Quality Center Version Control | |
Save | |
Save As | |
Save Test with Resources | |
Save All | |
Enable Editing | |
Export Test to Zip File | |
Import Test from Zip File | |
Convert to Scripted Component | |
Print | |
Print Preview | |
Settings | |
Process Guidance Management | |
Associate Library '<Function Library Name>' with '<Document Name>' | |
Recent Files | |
Exit |
Edit Menu: It provides editing options and renaming, deleting and splitting actions.
Command | |
Undo | |
Redo | |
Cut | |
Copy | |
Paste | |
Delete | |
Copy Documentation to Clipboard | |
Action > Split Action | |
Action > Rename Action | |
Action > Delete Action | |
Action > Action Properties | |
Action > Action Call Properties | |
Step Properties > Comment Properties | |
Step Properties > Object Properties | |
Step Properties > Checkpoint Properties | |
Step Properties > Output Value Properties | |
Step Properties > Report Properties | |
Find | |
Replace | |
Go To | |
Bookmarks | |
Advanced > Comment Block | |
Advanced > Uncomment Block | |
Advanced > Indent | |
Advanced > Outdent | |
Advanced > Go to Function Definition | |
Advanced > Complete Word | |
Advanced > Argument Info | |
Advanced > Apply "With" to Script | |
Advanced > Remove "With" Statements | |
Optional Step |
View menu: Through this menu we can launch and close, active screen, Data Table, Debug viewer, information, missing resources etc.
Insert Menu: Through this menu user can inserting check points, out put values, synchronizing points.
In this menu step generator available, using this user can generate recordable and non-recordable scripts.
Through insert menu user can insert VB Script conditional and loop statements and transaction points (Start and End).
Through insert menu user can create new actions, call existing actions and copy existing actions.
Automation Menu:
This menu provides Record, Run options and Run setting options
Through this menu we can start normal recording, analog recording and Low level recording.
Through this menu we can stop recoding, running and also we run tests.
Command | |
Record | |
Run | |
Stop | |
Run Current Action | |
Run from Step | |
Maintenance Run Mode | |
Update Run Mode | |
Analog Recording | |
Low Level Recording | |
Record and Run Settings | |
Process Guidance List | |
Results |
Resources Menu:
This menu provides object repository and recovery scenarios options.
Through this menu we can create /modify/delete objects information and we can associate repositories.
Through this menu we can create, modify and delete recovery scenarios.
Command | |
Object Repository | |
Object Repository Manager | |
Associate Repositories | |
Map Repository Parameters | |
Recovery Scenario Manager | |
Associated Function Libraries |
Debug Menu:
This menu provides debug commands for step by step execution.
Through this menu we can insert/remove/break points.
Tools Menu:
This menu provides Tools settings option, view options and object identification configuration.
Through this menu we can set tool options as well as test pane view options.
In this menu object spy option available, through this we can get object’s information.(Properties and values)
In this menu Virtual object option available; through this option we can create virtual objects.
Command | |
Options | |
View Options | |
Check Syntax | |
Object Identification | |
Object Spy | |
Web Event Recording Configuration | |
Data Driver | |
Change Active Screen | |
Virtual Objects > New Virtual Object | |
Virtual Objects > Virtual Object Manager | |
Customize |
Subscribe to:
Posts (Atom)