Set Pg=Browser("Login").Page("Login")
MsgBox typename(Pg)
Set toPg=Pg.GetTOProperties()
'Dim i,icount
icount=toPg.Count-1
For i=0 to iCount
sName=toPg(i).Name
sValue=toPg(i).Value
Reporter.ReportEvent micPass,"Property:=" & sName & " Value :="&sValue,""
Next
Wednesday, April 20, 2011
QTP Get the Properties for Browser Object
'Get the Properties for Browser Object
Set br=Browser("Login")
Set toBr=br.GetTOProperties()
'Dim i,icount
icount=toBr.Count-1
For i=0 to iCount
sName=toBr(i).Name
sValue=toBr(i).Value
Reporter.ReportEvent micPass,"Property:=" & sName & " Value :="&sValue,""
Next
Set br=Browser("Login")
Set toBr=br.GetTOProperties()
'Dim i,icount
icount=toBr.Count-1
For i=0 to iCount
sName=toBr(i).Name
sValue=toBr(i).Value
Reporter.ReportEvent micPass,"Property:=" & sName & " Value :="&sValue,""
Next
QTP : GetTOProperties of Web Edit Object
' Program to get the Test Object Properties of a Web Edit Field
' Assumption:Objects are already learned into the Object Repository
Set we=Browser("Login").Page("Login").WebEdit("usernameField")
Set toProps=we.GetTOProperties()
Dim i,icount
icount=TOProps.Count-1
For i=0 to iCount
sName=TOProps(i).Name
sValue=TOProps(i).Value
Reporter.ReportEvent micPass,"Property:=" & sName & " Value :="&sValue,""
Next
Output :
Property :=type Value :=text
Property :=name Value :=usernameField
Property :=micclass Value :=WebEdit
Property :=html tag Value :=INPUT
' Assumption:Objects are already learned into the Object Repository
Set we=Browser("Login").Page("Login").WebEdit("usernameField")
Set toProps=we.GetTOProperties()
Dim i,icount
icount=TOProps.Count-1
For i=0 to iCount
sName=TOProps(i).Name
sValue=TOProps(i).Value
Reporter.ReportEvent micPass,"Property:=" & sName & " Value :="&sValue,""
Next
Output :
Property :=type Value :=text
Property :=name Value :=usernameField
Property :=micclass Value :=WebEdit
Property :=html tag Value :=INPUT
Tuesday, April 19, 2011
QTP : Create a text file using File System Object
'Create a file system object
Set fso=createObject("Scripting.FileSystemObject")
'Create a file over the file system object -
' Parameters -
' 1 - Path of the object
' 2 - True - denotes overwrite the file if it exists
set file1=fso.CreateTextFile("C:\test.txt",True)
' Write the text into the file
file1.write("hello world");
' file 1 is a TextStream Object
' Close the file
file1.close
Set fso=createObject("Scripting.FileSystemObject")
'Create a file over the file system object -
' Parameters -
' 1 - Path of the object
' 2 - True - denotes overwrite the file if it exists
set file1=fso.CreateTextFile("C:\test.txt",True)
' Write the text into the file
file1.write("hello world");
' file 1 is a TextStream Object
' Close the file
file1.close
Sunday, April 17, 2011
Top Quotes for the Day
- When your down and out, keep the faith and you will see that it was a necessary step for you to fly high
- If you love someone, tell them, show them ... Life is too short to hold back love. No Future is guarenteed
- The privilege of lifetime is being who you are - Joseph Campbell
- Forgiveness is the business of love
- If you are committed to your dream & don't give up, it's not a matter of "if" but "when"
- Give people room to decide for themselves ... that's LOVE
- Reminder : Letting go is another way of holding on
Tuesday, April 12, 2011
Word of the Day
Egocentric -
A self centered person with little regard for others.
Limited to or caring only about yourself and your needs.
Trepedation -
A feeling of alarm or dread
- A state of confusion, anxiety
Synonyms : apprehension
A self centered person with little regard for others.
Limited to or caring only about yourself and your needs.
- They are of the opinion that man is "Egocentric" by nature.
- Children are born egocentric, they stop crying when they are provided with what they require, and give nothing in return.
Trepedation -
A feeling of alarm or dread
- A state of confusion, anxiety
Synonyms : apprehension
- We all experience moments of trepedations and fear in our lives.
Monday, April 11, 2011
Number of Words in English Language
> 1,000,000 ( 1 million as on 2009 ) 1 millionth controversial word was "web2.0"
Word of the day
akin - similar in quality or character.
The basic vocabulary of German is akin to the English language.
ubiquitous - omnipresent
The language Hindi is ubiquitous in India.
summoned - Call in an official Manner, such as to attend a court
The Minister by summoned by the Prosecutor.
The basic vocabulary of German is akin to the English language.
ubiquitous - omnipresent
The language Hindi is ubiquitous in India.
summoned - Call in an official Manner, such as to attend a court
The Minister by summoned by the Prosecutor.
Thursday, April 7, 2011
Word of the Day
Salient - Prominent
Example :
Following are the good features of the product - Simple
Usage of Salient :
Following are the prominent features
Following are the salient features
Example :
Following are the good features of the product - Simple
Usage of Salient :
Following are the prominent features
Following are the salient features
Sunday, April 3, 2011
File - java.io.File
The following program displays the Free Space in various sizes of measurement Byte,KB,MB and GB for a particular drive.
package file_pkg;
import java.io.*;
public class file_cnt_words {
public static void main(String args[]) throws IOException
{
File file;
file=new File("D:/2011/Java Examples/files/file_txt.txt");
//D:/2011/Java Examples - getPath(); - get the path shows "PACKAGE FOLDER"
//file=new File("files/file_txt.txt");
sop(file.getAbsolutePath()); // Complete path
// Find Space on HDD
sop("Free Space in Drive is : "+file.getFreeSpace()+"Bytes");
sop("Free Space in Drive is : "+file.getFreeSpace()/1024+" KB");
sop("Free Space in Drive is : "+file.getFreeSpace()/1024/1024+" MB");
sop("Free Space in Drive is : "+file.getFreeSpace()/1024/1024/1024+" GB");
}
static public void sop(Object input)
{
System.out.println(input);
}
}
package file_pkg;
import java.io.*;
public class file_cnt_words {
public static void main(String args[]) throws IOException
{
File file;
file=new File("D:/2011/Java Examples/files/file_txt.txt");
//D:/2011/Java Examples - getPath(); - get the path shows "PACKAGE FOLDER"
//file=new File("files/file_txt.txt");
sop(file.getAbsolutePath()); // Complete path
// Find Space on HDD
sop("Free Space in Drive is : "+file.getFreeSpace()+"Bytes");
sop("Free Space in Drive is : "+file.getFreeSpace()/1024+" KB");
sop("Free Space in Drive is : "+file.getFreeSpace()/1024/1024+" MB");
sop("Free Space in Drive is : "+file.getFreeSpace()/1024/1024/1024+" GB");
}
static public void sop(Object input)
{
System.out.println(input);
}
}
Thursday, March 31, 2011
Gospel : Be Not Afraid
You shall cross the barren desert, but you shall not die of thirst.
You shall wander far in safety though you do not know the way.
You shall speak your words in foreign lands and all will understand.
You shall see the face of God and live.
Chorus
Be not afraid.
I go before you always.
Come follow me, and
I will give you rest.
If you pass through raging waters in the sea, you shall not drown.
If you walk amid the burning flames, you shall not be harmed.
If you stand before the pow'r of hell and death is at your side, know that
I am with you through it all.
Blessed are your poor, for the kingdom shall be theirs.
Blest are you that weep and mourn, for one day you shall laugh.
And if wicked men insult and hate you all because of me, blessed, blessed are you!
You shall wander far in safety though you do not know the way.
You shall speak your words in foreign lands and all will understand.
You shall see the face of God and live.
Chorus
Be not afraid.
I go before you always.
Come follow me, and
I will give you rest.
If you pass through raging waters in the sea, you shall not drown.
If you walk amid the burning flames, you shall not be harmed.
If you stand before the pow'r of hell and death is at your side, know that
I am with you through it all.
Blessed are your poor, for the kingdom shall be theirs.
Blest are you that weep and mourn, for one day you shall laugh.
And if wicked men insult and hate you all because of me, blessed, blessed are you!
Saturday, March 19, 2011
Lent Song: O Cross Erected Above The World
O Cross Erected Above The World
Cross of our Saviour King! (2)
Fount from which gushed the waters
Straight from the wound in his side
Filling our lives with his gift of grace
Cross of our Saviour King
O Cross sublime and refulgent tree,
Cross of our Saviour King! (2)
Jesus through thee has saved us,
Great was the price that he paid
Thou art the folly of love divine
Cross of our Saviour King!
O Cross, thou channel of grace divine,
Cross of our Saviour King! (2)
Tree on which death was conquered
Thou the first altar of love
Jesus, the Lamb gave his life to thee,
Cross of our Saviour King!
O Cross Erected Above The World
Cross of our Saviour King! (2)
Cross of our Saviour King! (2)
Fount from which gushed the waters
Straight from the wound in his side
Filling our lives with his gift of grace
Cross of our Saviour King
O Cross sublime and refulgent tree,
Cross of our Saviour King! (2)
Jesus through thee has saved us,
Great was the price that he paid
Thou art the folly of love divine
Cross of our Saviour King!
O Cross, thou channel of grace divine,
Cross of our Saviour King! (2)
Tree on which death was conquered
Thou the first altar of love
Jesus, the Lamb gave his life to thee,
Cross of our Saviour King!
O Cross Erected Above The World
Cross of our Saviour King! (2)
Tuesday, March 8, 2011
Coke Advertisement : Brrrrrrrrrrrrr
One the very best ads of 2011 released during the Cricket World Cup 2011
Sunday, March 6, 2011
Problem Solving : Compund Interest
Write a Java Program to calculate Compound Interest for the following cases.
- A customer invests Rs 1000 in a bank that offers a ROI(Rate of Interest) of 8% per annum.
- Calculate the Amount at the end of the 1st year
- Calculate the Amount at the end of the 3rd month.
- Calculate the amount at the end of 20 days.
- Calculate the number of months/days/yrs when the amount would double, triple and four times.
- Calculate the amount,years/days/months the Customer would have to invest to earn Rs 10,000.
- Calculate the Principle Min-Max Rate of Interest(ROI) at which the customer would be able to earn 10,000 for each year over a period of 5 years.
- Investor invests(tops up) 100Rs every month, calculate the amount at the end of year,2 months and 50 days Rate of Interest 8%.
Wednesday, February 23, 2011
Tuesday, February 22, 2011
top Glory to God songs
My Picks for Glory to God Songs from Youtube
Others:
We Sing a version of this song in our church
Monday, February 21, 2011
top Hosanna, Holy Songs
My Picks from youtube for Hosanna Songs sung in Church.
My Fav among the ones we sing at church
My Fav among the ones we sing at church
Subscribe to:
Posts (Atom)