Skip to main content

Posts

Mobile Apps- Difference between Native Apps vs Hybrid Apps vs Web Apps

Native Apps Native apps live on the device and are accessed through icons on the device home screen. Native apps are installed through an application store (such as Google Play or Apple’s App Store). They are developed specifically for one platform, and can take full advantage of all the device features — they can use the camera, the GPS, the accelerometer, the compass, the list of contacts, and so on. They can also incorporate gestures (either standard operating-system gestures or new, app-defined gestures). And native apps can use the device’s notification system and can work offline.   Mobile Web Apps Web apps are not real applications; they are really websites that, in many ways, look and feel like native applications, but are not implemented as such. They are run by a browser and typically written in HTML5. Users first access them as they would access any web page: they navigate to a special URL and then have the option of “installing” them on their home screen...

QTP script to send an email from outlook

'Call to the function for sending the mail on mail id 'abc@abc.com' Call SendMail("abc@abc.com","Hi","Hi","") ' THis function will create an email and send it using outlook Function SendMail(SendTo, Subject, Body, Attachment) 'CreateObject method to create an Outlook Application object Set ol=CreateObject("Outlook.Application") 'Create a new outlook mail object Set Mail=ol.CreateItem(0) 'Add the email address to the recipient list of the message Mail.to=SendTo 'Add the subject of the message Mail.Subject=Subject 'Add the body of the mail message Mail.Body=Body 'Add the attachment to the mail message If (Attachment <> "") Then Mail.Attachments.Add(Attachment) End If 'Send the mail message Mail.Send 'Free up the memory ol.Quit Set Mail = Nothing Set ol = Nothing End Function

QTP code to search data from Excel sheet

Dim appExcel, objWorkBook, objSheet, columncount, rowcount, 'Create the application object for excel Set appExcel = CreateObject("Excel.Application") 'Set the workbook object by opening Set objWorkBook = appExcel.Workbooks.open("c:\Smoke_Test\SmokeTest.xls") 'Set the Worksheet object Set objSheet = appExcel.Sheets("Global") 'Get the count for total used columns columncount = objSheet.usedrange.columns.count 'Get the count for total used rows rowcount = objSheet.usedrange.rows.count 'Assign the data to search for Find_Details="Report" 'Iterate the loop through each cell to find out required data For a= 1 to rowcount For b = 1 to columncount fieldvalue =objSheet.cells(a,b) If  cstr(fieldvalue)= Cstr(Find_Details) Then msgbox cstr(fieldvalue) Exit For End If Next Next

QTP Script to update variables value from ini file

'Subprocedure to update value of ini variables value Public Sub WriteToEnvironment(sParam ,sValue) 'Declare the required variables Dim oFSO, oFile, oTxtStream, sLine, sNewTextStream, vpath 'Create the application object for FileSystemObject Set oFSO = CreateObject("Scripting.FileSystemObject") 'Declare the file input/output constants Const ForReading = 1, ForWriting = 2, ForAppending = 8 'Declare Tristate values constant used to indicate the format of the opened file Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0 'Get the file from the file specified in environment variable  Set oFile = oFSO.GetFile(Environment("iniPath")) 'Open the ini file for reading purpose Set oTxtStream = oFile.OpenAsTextStream(ForReading, TristateUseDefault) 'Read the file till the end While Not oTxtStream.AtEndOfStream 'Read the file line by line sLine = oTxtStream.ReadLine sParameter...

Sorting of Elements in an Array

'##################################################### 'Program to illustrate sorting of elements of an array 'This program takes the array boundary from the user 'Validate if it is a valid number <=10  'Get the list of elements from the user  ' Validate if it is a number  ' Finally Sorts and displays the contents of the array '#####################################################  'Variable Declarations Dim nArray(),nArrayBound Dim nCounter, nCtr1,nCtr2 Dim nTempVar,sTempStr Dim bFlag 'Get the number of elements as input from the user nArrayBound=inputbox("Enter a number between 5 and 10" 'Validate the input (if it is a valid number) bFlag=False  Do While bFlag=False     If isNumeric(nArrayBound) Then 'Valid number         If nArrayBound<=10 Then 'Lesser than 10             If nArrayBound>=5 Then...

APPIUM AND SELENDROID MOBILE AUTOMATION

1- Introduction to Mobile Automation 2- Download and Configure Appium/Maven Dependency 3- Launching Hybrid/Native Apps with Appium 4- Identifying Elements-1 5- Identifying Elements-2 6- XML Viewer 7- Touch Actions 8- Exercises - 1 9- Exercises - 2 10- Web Application Testing 11- Page Object with - Page factory, Maven, ANT, Grid, JENKIN 12- Appium on IOS real device/Simulator 13- Appium, Android setup on Mac 14- Appium Mac IOS Identifying Element-1 15- Basics of Appium IOS Architecture 16- Locator Strategies - 1 17- Configuring/Running Selendroid 18- Configuring/Running Selendroid Email- vivek.kumar02@gmail.com

soapUI with Hybrid Framework

SOAPUI COURSE CONTENTS Groovy Concepts for soapUI 1- Introduction to Web services 2- Groovy Introduction 3- Groovy in Detail 5- Groovy Script Test Step - Collections, Exceptions 6- File Reading 7- Database connection soapUI 8- Soap UI free version - Intro 9- Soap UI free version - Intro 2 10- Assertions 11- Groovy Script Test Step - Context 12- Groovy Script Test Step - Context, Test Runner 13- Properties in SOAPUI 14- SOAPUI PRO / API testing - 1 15- REST WEB SERVICE / API Testing 16- Custom Application for REST API Testing 17- Parameterzing Scripts 18- Data Driven Framework - REST+ SOAPUI PRO 19- Data Driven Framework -SOAPUI Free version with SOAP Protocol 20- Data Driven Framework -SOAPUI Free version with REST Protocol Email- vivek.kumar02@gmail.com