Posts

Showing posts from March, 2016

Synchronization in UFT

Image
When we automate the script most of the time we faced several issues with performance of application. sometimes application becomes slow in response sometimes fast. then how we show make sure that our script should run in irrespective of the application performance and response? all automation tools provide specific functions which handles these performance issue. UFT also has Synchronization mechanism to make sure that script will not fail. Lets discuss more about the Synchronization. There are 5 different ways to handle the synchronization. WaitProperty Exist Wait Sync(only for web based apps) Default Synchronization WaitProperty: WaitProperty is a method  which can be apply on any object in UFT. It takes the property name, Value and Timeout value as input to perform the sync. It is a dynamic wait, it means once the object is get visible/enable or state becomes true corresponding action gets performed. so it is highly recommended options. Example : lets put wa

Release Locked UFT Tests from QC

Release locked UFT Test from QC-> USERID -Enter you user name Set QCConnection=QCUtil.QCConnection Set con=QCConnection.command   con.CommandText=”DELETE FROM LOCKS WHERE LK_USER = ‘USERID’   Set recset=con.execute

Ten Key Principles of Effective Testing

1. Testing is a risk management process. 2. Understand the application being tested. 3. Set clear testing objectives and criteria for successful completion (including test coverage measures) 4. Create an effective test environment. 5. Test as early as possible in the development cycle (Shift Left Testing) 6. Do plan for User Acceptance Testing (UAT). 7. Regression testing. 8. Automate as much as possible. 9. Capture test incidents and use them to manage risk at release time. 10. Manage change properly to avoid undoing all the testing effort.

VBScript Built-in Functions

1. Date and Time Functions ·            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 num