Posts

Showing posts with the label Date

VB Script Data Types

VB Script Data Types What is Data Type? Data type is a categorization of identifying one of various types of data , such as string, integer, double, date or Boolean etc… Implicit & Explicit Data types: Specifying Data types along with variable names is called Explicit declaration of Data types. Declaring Variables Without specifying Data types is called Implicit declaration of variables. VB Script Supports Implicit declaration of variables only, doesn’t support Explicit declaration of Data types. VB Script Data Type: VB script has only data type called Variant, it can hold any type of data, and based on usage of data it considers data sub types. Example: Dim x X is a Variable and it can hold any type of data (String, integer, double, date etc…) X= “G C Reddy” ‘String type X= 100 ‘Integer X= 10.345 ‘Double X=#10/10/2010# ‘Date   How to know Data sub types: Using VarType Function we can get data sub type VarType Function It returns a value indicatin...

Validation of Sorting in WEBTABLE / QTP

Hi All, Some time in application we have to verify the sorting functionality.In Web table for each column we need to click and check is it working fine or not. Here i am giving an example of sorting the date column. but it will verify in ascending order. logic for this:   1. Click on Date column which sort the date in ascending order.   2. Get first row and second row date value form Date column   3. Check first row date should be less than or equal to second row date.   4. Get second row and third row date value.   5. Check second row date should be less than or equal to third row date value.   6. Same way check until end of row using For Loop.   7. In the case if you got false result while comparison two row you need to break the for loop and show  the   fail result...... set TableObject = Browser(“XYZ”).Page(“WXY”).WebTable(“MNP”) TableRowcount  = Browser(“XYZ”).Page(“WXY”).WebTable(“MNP”).RowCount For i =1 to TableRow...