Saturday, May 24, 2014

RUMI - అమృతత్వం ...


మట్టిలా గిట్టి, మొక్కనై పుట్టి
మానులా మన్నై, జంతువుగా జన్మించి
ఆ ప్రాణీ అంతమైతే, మనిషిగా పుట్టా !
భయమెందుకు నాకు?
చావులేనిదెప్పుడు..ఈ సముద్రపు అలకు?

మళ్ళీ ఓ సారి పోతా, ఈ సారి మనిషిగా !
ఆకాశానికి ఎగసి ఆ దేవతలలో కలిసిపోతా !
అలా మాత్రం ఎంత కాలం?
మహా దేవుడు కాక మృత్యుంజయుడు ఎవ్వడు?

దేవతగా నా ఆత్మ పరిత్యజించాక
దేవతల కన్నా ఇంకా పైకి..
ఏ ఊహకి అందని ఊర్ధ్వానికి
ఓహ్! ఇలాగే ఎప్పుడూ ఉండిపోవాలని కోరుకోను,
ఎందుకంటే అమృతత్వం అంటే ఆది చేతనంలో కలవడమే !!
-అనువాదం, రూమీకి అభివాదం, కీర్తి

Saturday, May 17, 2014

Wsh Shell || Invoke Internet Explorer and navigating through an URL

There are couple of ways to invoke Internet Explorer and navigating through an URL.

Method 1:

Function Invoke_Browser(str_url)
On Error resume next
    'Create an IE browser object and invoke the URL
    Set obj_Brow_invok = createobject("InternetExplorer.Application")
    obj_Brow_invok .Visible = True
obj_Brow_invok .Navigate str_url
        Do While obj_Brow_invok .Busy Or obj_Brow_invok .readyState <> 4
            WScript.Sleep 50
        Loop
        Set obj_Brow_invok  = Nothing
End Function

Method 2:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run"iexplore.exe www.yahoo.com", 1
WScript.Sleep 50
Set WshShell = Nothing

Excel Class Library For Automation

Whenever our script fails in middle of our execution. we need to kill excel process from the task manager. So to get rid of this issue, we can use following code. The following code does all Excel operation with kill process errors.

Just copy this code and save into a vbs/qfl/dll File and add it your library Files.

Class ExcelDocument

Dim objExcel, objWorkbook, sheetcount
'--- Does necessary initialisation
Private Sub Class_Initialize
set objExcel= CreateObject("Excel.Application")
sheetcount=1
End Sub

'--- Destroys the excel object once the class is destroyed
Private Sub Class_Terminate
sheetcount=0
If Not IsEmpty(objWorkbook) Then
objExcel.Workbooks(1).Save
objWorkbook.Close
End If

objExcel.Quit
set objExcel= Nothing
End Sub


'--- Creates an excel object
Public Function CreateExcel(path_of_file)
Set objWorkbook = objExcel.Workbooks.Add()
objWorkbook.SaveAs(path_of_file)
End Function


'--- open an excel sheet
Public Function OpenExcel(path_of_file)
Set objWorkbook =objExcel.WorkBooks.Open(path_of_file)
End Function


'--- set visible status of an excel
Public Function VisibleState(state)
objExcel.Visible=state
End Function


'--- set visible status of an excel
Public Function AddSheet(sheetName)
objExcel.ActiveWorkbook.Worksheets.Add
objExcel.Sheets("Sheet"&sheetcount).Name=sheetName
objWorkbook.Save
sheetcount=sheetcount+1
End Function


'--- returns the excel object (better not to use until critical)
Public Function ReturnObject(sheetName)
ReturnObject=objWorkbook
End Function


'--- Inserts a "str" value at x,y pos
Public Function InsertAtCell(x,y,str)
objExcel.ActiveWorkbook.Activesheet.cells(x,y)=str
objWorkbook.Save
End Function


'--- insert "str" value in a sheet at x,y position in the current excel
Public Function InsertInSheet(sheetName,x,y,str)
objExcel.Sheets(sheetName).Activate
objExcel.ActiveWorkbook.Activesheet.cells(x,y)=str
objWorkbook.Save
End Function


'--- get value at cell x,y
Public Function ValueAtCell(x,y)
'       Msgbox x &"  "& y
' msgbox objExcel.ActiveWorkbook.Activesheet.cells(x,y)
ValueAtCell=objExcel.ActiveWorkbook.Activesheet.cells(x,y)
End Function


'--- Activate a sheet
Public Function ActivateSheet(sheetName)
objExcel.Sheets(sheetName).Activate
End Function


'--- Set the colour of a cell
Public Function SetCellColour(x,y,color)
objExcel.ActiveWorkbook.Activesheet.cells(x,y).Interior.ColorIndex=color
objWorkbook.Save
End Function


'--- set colour of a column
Public Function SetColumnColour(y,color)
objExcel.ActiveWorkbook.ActiveSheet.Range(y&"1",y&"65536").Interior.ColorIndex=color
objWorkbook.Save
End Function

'--- set colour for a row
Public Function SetRowcolour(y,color)
objExcel.ActiveWorkbook.ActiveSheet.Range("A"&y,"IV"&y).Interior.ColorIndex=color
objWorkbook.Save
End Function

'--- get the used rows count
Public Function UsedRows(sheetName)
UsedRows=objExcel.ActiveWorkbook.Activesheet.UsedRange.Rows.Count
End Function

'--- get used columns count
Public Function UsedColumns(sheetName)
UsedColumns=objExcel.ActiveWorkbook.Activesheet.UsedRange.Columns.Count
End Function

'--- set cell text colour
Public Function CellTextColour(x,y,color)
objExcel.ActiveWorkbook.Activesheet.cells(x,y).Font.ColorIndex=color
objWorkbook.Save
End Function

'--- set column text colour
Public Function ColumnTextColour(y,color)
objExcel.ActiveWorkbook.ActiveSheet.Range(y&"1",y&"65536").Font.ColorIndex=color
objWorkbook.Save
End Function

'--- set text colour of a row
Public Function RowTextColour(y,color)
objExcel.ActiveWorkbook.ActiveSheet.Range("A"&y,"IV"&y).Font.ColorIndex=color
objWorkbook.Save
End Function


End Class

Tuesday, May 6, 2014

UFT 12 Installation Requirement

Minimum System Requirements
Computer Processor: 1.6 Ghz or higher
Operating System: Windows 7 Service Pack 1 (32-bit or 64-bit)
Memory: Minimum of 2 GB when no more than three add-ins are loaded simultaneously
Note:
An additional 512 MB of RAM are required when using a virtual machine.
Additional memory is required when loading more add-ins and when using the Save movie to results option to capture movies during run sessions.
Hard Disk Drive: 5400 RPM
Color Settings: High Color (16 bit)
Graphics Card: Graphics card with 64 MB video memory
Free Hard Disk Space: 2 GB of free disk space for application files and folders
You must also have an additional 1 GB of free disk space on the system disk (the disk on which the operating system is installed).
Browser: Microsoft Internet Explorer 7.0

Recommended System Requirements
Computer Processor: 3 Ghz or higher
Operating System: Windows 7 Service Pack 1 (32-bit or 64-bit)
Memory: 4 GB of RAM
Hard Disk Drive: 7200 RPM
Color Settings: High Color (16 bit)
Graphics Card: Graphics card with 64 MB video memory
Free Hard Disk Space: 20 GB of free disk space for application files and folders
You must also have an additional 1 GB of free disk space on the system disk (the disk on which the operating system is installed).
Browser: Microsoft Internet Explorer 9.0

Monday, May 5, 2014

What's New in UFT 12 (QTP 12)

Unified Functional Testing expands its integration with the complete set of HP’s testing solutions and presents new features and enhancements for greater usability, productivity, and technology support:
  • New Installation: UFT now has a smaller and faster installation package that can run without the need to deactivate the User Account Control.
  • Multilanguage installation: You can now install UFT in your operating system language without the need to install a separate language pack.
  • Connect to ALM using external authentication: You can now use external authentication, such as CAC (Common Access Card), to connect to ALM in place of the standard model of each user manually entering a user name and password.
  • Optional uploading of run results to ALM: Instead of manually adding run results to your ALM project, you can instruct UFT to automatically upload them by setting anALM site parameter.
UFT has also expanded the list of supported technologies:
  • New support for testing Safari on a Remote Mac (Technology Preview)

  • Support for the latest versions of each of the browsers: Internet Explorer, Firefox, and Chrome
  • New and enhanced support for additional desktop technologies: Delphi X2, Stingray 11, and Flex
  • Enhanced SAP support: Web Dynpro ABAP for Netweaver 7.31
  • New Testing Extensibility support for Visual Studio 2010 and 2012