amarendra


{ City } pune
< Country > india
* Profession *
User No # 17210
Total Questions Posted # 0
Total Answers Posted # 54

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 241
Users Marked my Answers as Wrong # 83
Answers / { amarendra }

Question { 4551 }

Which tool is best to do Regression Testing?


Answer

QTP

Is This Answer Correct ?    4 Yes 1 No

Question { 3962 }

Which tool would be best for automation of DotNet?


Answer

QTP is the best tool for automation of ASP.Net application.
When compare to WinRunner, QTP uses VB Script so that User
can able to prepare test scripts easily. It supports object
oriented concepts as well.

Is This Answer Correct ?    1 Yes 0 No


Question { 3942 }

What are the MIC& Reporter Class in DP?


Answer

Reporter is an object in QTP. Using this, user can
customize test reults and send them to test results window.

Reporter.Filter --> filter the result as per the Result
Type like Pass/Fail/Done/Warning

Reporter.ReportPath --> Retrieves the folder path in which
the current test's results are stored

Reporter.RunStatus --> Retrieves the run status at the
current point of the run session

Reporter.ReportEvent --> Send the user defined result to
Test Result window
E.g. Reporter.ReportEvent micPass, "Login
Successful", "Test Passed"

micPass - result as Passed
micFail - result as Failed
micDone - result as Done
micWarning - result as Warning

Is This Answer Correct ?    1 Yes 0 No

Question { Satyam, 13878 }

using descriptive programming how to close all opend browsers?


Answer

Do While(True)
If Not Browser("index:=0").Exist(0) Then
Exit Do
End If
Browser("index:=0").Close
Loop

Is This Answer Correct ?    3 Yes 0 No

Question { IBM, 9934 }

please tell me how to identify the index of the link in the
web table .links are not constant.example i want to click
the link in the inbox ,search the item and click the
partcular mail.(mail links count is not constant)


Answer

If you want to click a link which exist in Webtable Cell,
Use "ChildItem" event to retrieve the child Link objects in
that cell.

Broswer("Bname").Page("PTitle").WebTable("WTName").ChildItem
(RowNumber,ColumnNumber,"Link",IndexvalueOfTheLink)
Link Index value depends on the Position of the link in
that cell.

'If the cell has only one Link, then index value will be
Zero. i.e.
Set objLink = Broswer("Bname").Page("PTitle").WebTable
("WTName").ChildItem(1,2,"Link",0)
objLink.Click

'If Cell has three links and if u want to click on Second
link, then pass index value as 1(one). i.e.
Set objLink = Broswer("Bname").Page("PTitle").WebTable
("WTName").ChildItem(1,2,"Link",1)
objLink.Click -- so that it will click on second link in
the specified web table cell.

Is This Answer Correct ?    10 Yes 1 No

Question { Ness Technologies, 4208 }


what is the difference between bitmap checkpoint and image
checkpoint


Answer

Image checkpoints enable you to check the properties of a
Web image. You can check an area of a Web page or
application as a bitmap. While creating a test or
component, you specify the area you want to check by
selecting an object. You can check an entire object or any
area within an object. Quick Test captures the specified
object as a bitmap, and inserts a checkpoint in the test or
component. You can also choose to save only the selected
area of the object with your test or component in order to
save disk Space. For example, suppose you have a Web site
that can display a map of a city the user specifies. The
map has control keys for zooming. You can record the new
map that is displayed after one click on the control key
that zooms in the map. Using the bitmap checkpoint, you can
check that the map zooms in correctly. You can create
bitmap checkpoints for all supported testing environments

An image checkpoint validates the properties of an image; a
bitmap checkpoint is a screen shot validation.

Is This Answer Correct ?    1 Yes 0 No

Question { 6100 }

How to write script to display a message box having
the "Date" value of the fourth mail(yahoo account).
I've tried it with the web table concept but the content
doesn't get displayed?
Please help me out to resolve this :-)


Answer

In Yahoo mail, if you want to fetch the Date of the four row
(mail), use the following code

E.g: Using record and playback
msgbox Browser("Yahoo! Mail - amar_kothuru@yah").Page
("Yahoo! Mail - amar_kothuru@yah").WebTable
("Sender").GetCellData(4,9)

E.g.:Using Descriptive Programming
msgbox Browser("name:=Yahoo! Mail -
amar_kothuru@yahoo.co.in").Page("title:=Yahoo! Mail -
amar_kothuru@yahoo.co.in").WebTable
("name:=toggleAll").GetCellData(4,9)


Why you are not able to fetch the date value is

Sometimes QTP gives invalid column count of the webtable
and if you follow the same, you can't able to fetch all
column values.. So try different combinations of column
numbers(more than actual columnCount) and get the results.

When you add Webtable object to object repository and it
shows the column count as 7. I think, you tried upto the
column number 7. But if you pass the column number as 9,
you could get the date value. if pass column number as 10,
you would get Size value.

Is This Answer Correct ?    1 Yes 1 No

Question { ADP, 4704 }

what is the test process followed for your project?


Answer

Real time Testing Process:

Creation of Test plan as per SRS document
Creation of test cases/scripts
Execution of test cases/scripts
Defects reporting
Defects Tracking
Preparing test results summary reports

Is This Answer Correct ?    6 Yes 0 No

Question { 5431 }

did you perform retesting(DATA DRIVEN test) using functions
with out using datatable methods

how can you perform retesting using functions


Answer

Generally, QTP exports uses Excel file for data
paramaterization.
Method 1)Prepare test data in Excel sheet and import into
QTP data table. Using DataTable methods, user can easily
parameterize data and access them through out the script.
DaTaTable Methods: Import, ImportSheet, Export,
ExportSheet, GetSheet, SetCurrentRow, SetNextRow etc...

E.g:
DataTable.Import "Excel file path"
testData = DataTable(columnName, Sheetname)
(or)
testData = DataTable(columnName, dtGlobalSheet)


Method 2)Prepare test data in Excel sheet. Instead of
importing Excel file/sheet into Test script, create an
Excel object in the script using CreateObject method. Using
Excel object methods user can able access data from excel
sheet.

E.g:
Set ExcelObj = CreateObject("Excel.Application")
ExcelObj.WorkBooks.Open "Excel file path", false, false
Set currentWorkSheet = ExcelObj.ActiveWorkBook.WorkSheets
(1) 'first sheet
testData = currentWorkSheet.Cells(rownumber,
columnnumber).Value
ExcelObj.Application.Quit

Is This Answer Correct ?    2 Yes 0 No

Question { TCS, 5539 }

How can we fill data in a text box without recording using
object spy. Can you please provide the steps...


Answer

Using descriptive programming, you can set values to the
textbox with out recording

E.g:
Browser("name:=Google").Page("title:=Google").WebEdit
("name:=Google Serach").Set "Yahoo Groups"

Is This Answer Correct ?    6 Yes 0 No

Question { Navis, 4630 }

1. Which function is used to check whether the specified
object property achieves the specified value within the
specified timeout

below anyone is correct

1. Check Property
2. getToproperty
3. output

Pls anybody can give the answer.. Thanks in advance...


Answer

Use "WaitProperty" method for you case.

This method is useful for test run synchronization. Unlike
the Exist method, the WaitProperty method enables you to
synchronize the test run based on a specific object
property. For example, you can instruct QuickTest to wait
for a particular string to appear in a static text control:
' Wait up to 30 seconds for the string "Ready" to appear in
the "Status" text control.
Window("Test").Static
("Status:").WaitProperty "text", "Ready", 30000
E.g:

Is This Answer Correct ?    4 Yes 0 No

Question { Navis, 4323 }

Which function is used to accesses the Properties from
Repository


Pls anybody can give the answer.. Thanks in advance...


Answer

You can retrieve object property values using GetROProperty
method at runtime.

E.g: retrieves the textbox value into var_Value variable
var_Value = Browser("test").Page("test").WebEdit
("test1").GetROProperty("value")

Is This Answer Correct ?    4 Yes 3 No

Question { 5792 }

how to generate numbers in between to numbers suppose
numbers in between 500 to 1000 in sequencies using vbscript


Answer

Using loops in vb Script, you can generate numbers between
specified range

E.g:
For i= 501 to 1000
Reporter.ReportEvent micPass, "Value: " & i, "Number
between 500 to 1000"
Next
'gives the output as 501,502, 503, etc...

If you want generate random number between 500 to 1000, use
the function "RandomNumber(inbuilt function of QTP, but not
VB Sscript function)
E.g: var_Num = RandomNumber(500,1000)

Is This Answer Correct ?    1 Yes 0 No

Question { 19033 }

How to record right click of a context menu and click on the
selection ?


Answer

We cannot record the right click operation. But we can
achieve this by using below script.

Set menu=browser("MSN.com").Page("MSN.com").Image("F430 (©
Ferrari S.p.A.)")
idx=3 'This var. points the which option to select in the
right click menu. This var. is always the option+1 value.
Ex. If u want to select the second option then the var.
should have the value 3.
Set obj = CreateObject("Mercury.DeviceReplay")
Set WshShell = CreateObject("WScript.Shell")
'Get the absolute coordinates of the ibject
absx = menu.QueryValue("abs_x")
absy = menu.QueryValue("abs_y")
obj.MouseClick absx, absy, 2
'Optional wait statement
wait 3
For i = 1 To idx-1
WshShell.sendkeys "{DOWN}"
Next
WshShell.sendkeys "{ENTER}"
Set WshSEll = nothing
Set obj = nothing

Is This Answer Correct ?    3 Yes 0 No

Question { Virtusa, 13445 }

Suppose there are 100 links in a web page and the number of
links will be changing dynamically from time to time. I
need code such that every time i had to click on the last
link of the web page.


Answer

Below code will work for your case.

' Set a description object to identify links.
Set oDesc = Description.Create()
oDesc("html tag").Value = "A"

' Get a collection of links
Set oLinkCollection = Browser("test").Page
("test").ChildObjects(oDesc)
Set obj=oLinkCollection.Item(oLinkCollection.Count-1)
obj.Click

Is This Answer Correct ?    6 Yes 1 No

Prev    1   2    [3]   4    Next