Posts

Showing posts from June, 2009

How to Create Functional Library and Use It

Image

Overall QuickTest Workflow

Image
People often ask how to use QuickTest professional. What are the phases of Quick Test automation. What is the right time to apply Checkpoints, Why Prepare to Record is important... here is the answer QTP is an automated testing tool & it provides an automated solution for functionality & regression testing. QT Professional is used to automate manual test cases. Automated test cases increases testing team productivity and reusability of tests. The QuickTest Professional workflow shown in Figure represents the complete lifecycle for automating a functional test. The workflow starts with the Prepare phase, which involves preparing to record a test. In the Create phase, Tester record user actions to generate a basic test. In the Verify & Enhance phase, enhance the automated test, and in the Integrate phase, run multiple tests to check the flow of data

Excell Sheet Automation..

'Get Row Count from 1 to End 'Get Total Row count -->DataTable.GetSheet("Action1").GetRowCount For i=1 to DataTable.GetSheet("Action1").GetRowCount  'Store value of Metrics Column "A" of Action 1 in variable called Report_Name Report_Name= DataTable("A", dtLocalSheet) 'Move focus to next Row DataTable.GetSheet("Action1").SetNextRow 'Get Row count and convert it into Integer & store it in total_rows variable total_rows=int (DataTable.GetSheet("A").GetRowCount) For i=1 to total_rows 'Generate Random Number   x=   Int((total_rows - 1 + 1) * Rnd + 1) 'Move Focus to the Randomly selected Row DataTable.SetCurrentRow(x)

How to Store Value from Webpage in Spacific Cell in Excel Sheet

Problem: ******************* 1. Search for specific lenses on mentioned website and note down its price. 2. Place that price in Excel sheet (inside Specific Column) as other columns have formula reference to that price Solution: ********************* I created an automated script that perform the following actions 1. Open browser and mentioned Website ( http://www.cameraaction.com. au ( 2. Move to that specific page (e.g Sony Lenses page) 3. Check only lenses that are required 4. Copy the prices in the excel sheet (At specific locations). QTP Script ******************************************* 'Store spacific values in a & b variable a= browser("Camera Action Camera House").Page("Camera Action Camera House").WebElement("qty_1").GetROProperty("Text") b= browser("Camera Action Camera House").Page("Camera Action Camera House").WebElement("qty_2").GetROProperty("Text") 'Create Excel object a and open...