baba fakruddin


{ City } hyderabad
< Country > india
* Profession *
User No # 21524
Total Questions Posted # 0
Total Answers Posted # 28

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

Users Marked my Answers as Correct # 134
Users Marked my Answers as Wrong # 27
Answers / { baba fakruddin }

Question { 4098 }

I need to know how to Automate a Username and Password for
a Web-based product? I'm scripting 3 different types of
surveys but each Survey requires a Username and Password
which is always the same. I can I do this using QTP?


Answer

go for Functions or Actions to reuse where ever u want.

eg. ObjectHierarchy.winedit("User Name").Set "Fakruddin"
ObjectHierarchy.Winedit("Password").Setsecure "97841234"
ObjectHierarchy.Winbutton("Login").Click

Save this in one Action as Reusable action and use where
ever u want. OR

Save this in Notepad and save with .vbs extension then go
for resources tab and add by showing particular path of
that function

Is This Answer Correct ?    0 Yes 0 No

Question { 2617 }

How we will execute(run) the scripts in qtp 8.2?


Answer

do you think any difference are there between 9.0 and 8.2
for executing the Scripts....
for executing the scripts is same as 9.0 and all versions

Is This Answer Correct ?    0 Yes 1 No


Question { iLink, 8735 }

What are the Mandatory Properties of WebTable Object and
Link Object in Web testing using QTP


Answer

I agree with above answer..... You can add some more
properties to mandatory properties to identify object
quickly and uniquely

Is This Answer Correct ?    0 Yes 1 No

Question { 5834 }

in flight reservation application. when i entered flyto
combobox as london. and i have to check this london is
present in flyfrom combobox.give me the code with good
explanation.

extention to this question.
at each iteration i have to put(WRITE) the fly from
and fly to city in database table


Answer

invokeapplication "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"

dialog("Login").WinEdit("Agent Name:").Set "baba"
Dialog("Login").WinEdit("Password:").SetSecure
"489ff6345f83ebb85f1f91f6e86ee1c1f7a8307c"
dialog("Login").WinButton("OK").Click


msgbox now

window("Flight Reservation").WinEdit("Date of Flight:").Set
"09/09/09"

'''''''''''''''''''''''''''' Fly From
'''''''''''''''''''''''''''

expval="London"

i=window("Flight Reservation").WinComboBox("Fly
From:").GetItemsCount
msgbox i

y=window("Flight Reservation").WinComboBox("Fly
From:").GetContent
msgbox y

For j=0 to i-1
x=window("Flight Reservation").WinComboBox("Fly
From:").GetItem(j)
datatable.SetCurrentRow(j+1)
print x
datatable("Fly_From",1)=window("Flight
Reservation").WinComboBox("Fly From:").GetItem(j)
If (expval=x) Then
window("Flight Reservation").WinComboBox("Fly
From:").Select(j)
End If
Next


''''''''''''''''''''''''''''''' Fly To
''''''''''''''''''''''''''''''
expval1="London"

k=window("Flight Reservation").WinComboBox("Fly
To:").GetItemsCount
msgbox k

l=window("Flight Reservation").WinComboBox("Fly To:").GetContent
msgbox l

For m=0 to k-1
datatable.SetCurrentRow(m+1)
n=window("Flight Reservation").WinComboBox("Fly
To:").GetItem(m)
print n
datatable("Fly_To",1)=Window("Flight
Reservation").WinComboBox("Fly To:").GetItem(m)
If (exp1=n) Then
window("Flight Reservation").WinComboBox("Fly To:").Select(m)
else
reporter.ReportEvent micPass, "Validation is
correct","London is not matching in Fly To: field"
End If
Next

Is This Answer Correct ?    1 Yes 1 No

Question { ABC, 9174 }

How to invoke QTP using Dos prompt ?


Answer

if QTP installed in C:

Provide

c:\QTPro.exe

if it is not working

give entire path as given below

c:\Program Files\Mercury Interactive\QuickTest
Professional\bin\QTPro.exe

Is This Answer Correct ?    7 Yes 1 No

Question { TCS, 12724 }

How to Trace a Defect?


Answer

Tracing a Defect is nothing but Deviation of the Customer
requirement in the application.

If Customer Requirement is not performing its function or
not available in application, i.e. called Defect.

Defect Tracking means... Ensure that the Defect is related
to which Test Case. You should able to find which defect is
related to which Requirement, Tracking the defect with
respect to Test Cases... you can maintain the documents
with Hyperlinks to desired Documents

for e.g. Functional Requirement Specifications Document
Use Case document
Master Test Case Document
Detailed Test Case Document
Defect Profile Document
if you maintain according to your desired documents with
hyperlink, you can easily Trace back Which Defect is
related to which Requirement...

Is This Answer Correct ?    8 Yes 0 No

Question { IBM, 10413 }

How do we Access, retriew and edit the runtime objects in
Automation Testing using QTP


Answer

We cannot edit runtime objects in Automation Testing, bcoz
Runtime objects means the Objects available in AUT,
we can only use the properties available for objects and we
can change the property/properties available in OR during
runtime by using SETTOPROPERTY

We can retrieve the property and its value by using

GetRoProperty

eg:
dialog("Login").Activate
dialog("Login").WinButton("OK").SetTOProperty "text","Cance"
print dialog("Login").WinButton("OK").GetROProperty("text")

it returns "Cance"

it is changing the property value during runtime.

please check it once in ur QTP

Is This Answer Correct ?    3 Yes 1 No

Question { 37135 }

What is AUT in object reposity in QTP? Why we use it in
Object repository???What is full form???????


Answer

AUT is not in Object Repository,
AUT objects available in Object Repository,
Objects in Object Repository is used for identifying the
objects in runtime.
AUT means Application Under Test

Is This Answer Correct ?    52 Yes 5 No

Question { IBM, 27748 }

Does QTP recognize two diff browser's at a time..?if
possible how..? Is it possible run scripts on Mozilla which
are recorded on IE..?..How..?


Answer

Hello buddy,

different browsers...! What it means...

Different types of browsers like firefox and internet
explorer or
Different pages like google and yahoo in Internet explorer.

You have to ask clearly...

You can open only one type of Browser i.e.(Internet
Explorer only) or You can open (Fire Fox) only.

but You can open google, yahoo, msn...etc.,

You can run scripts independent of browser types..

Is This Answer Correct ?    9 Yes 1 No

Question { IBM, 27748 }

Does QTP recognize two diff browser's at a time..?if
possible how..? Is it possible run scripts on Mozilla which
are recorded on IE..?..How..?


Answer

Hello friends,

Please...... Understand Question and try that issue in your PC
then give your valuable answer. please make this site as
professional site.

do not give chillara answers.

Thank you.

Is This Answer Correct ?    2 Yes 6 No

Question { 4139 }

To count the no of links present in the yahoo home page i
have written the script like this
Set fileSysObject=createobject("Scripting.FileSystemObject")
Set linksFileName=fileSysObject.opentextfile
("D:\samplelinkfile.txt",2,true)
Set linkDescObj=description.Create
linkDescObj("micclass").value="Link"
Set noOfLinks=browser("yahoo").Page("Yahoo!
India").ChildObjects(linkDescObj)

For i=0 to noOfLinks.count-1
linkName=noOfLinks(i).getROProperty("name")
linksFileName.writeline(linkName)
Next
linksFileName.close
Set fileSysObject=nothing

While running the script it showing error that
object "yahoo"isnot found in the object repository.
Is there any setting before running the script? if yes what
is the steps for it.Im using QTP9.0


Answer

Hello buddy,

Do not bother about this type of small errors.

No need to open new test and record on yahoo page and again
pasting that code here in your code. all these long
process.ofcourse it may work. as a QTP profession you have
to go in efficient way.

Follow this steps.

Once you got that error message.

1. Just Open OR
2. Click on Add Objects button
3. Select your desired objects here (Links your case)
4. Click on Ok

go back to your test and run your test now.

if it not runs, delete your "browser("yahoo").page
("yahoo")... all these things

just add this code
systemutil.Run "www.yahoomail.com"
Set noOfLinks=browser("Yahoo! Mail: The best").Page("Yahoo!
Mail: The best").ChildObjects(linkDescObj)

it will work. no probs

All the best

Is This Answer Correct ?    3 Yes 0 No

Question { 12921 }

how to do spell check in QTP?
reply please


Answer

By using Test check points and Text area check points we
can perform GUI Testing or Text Testing

Is This Answer Correct ?    4 Yes 0 No

Question { 12921 }

how to do spell check in QTP?
reply please


Answer

Above scripts are good... but they given for validation of
text available with our's i.e., expected text....

If you don't have expected text... you have only QTP and
web application. what do u do?

Use Text Check point and Text area Check point then it
makes your script easy and QTP will take care of expected
and actual values here...

But These check points will reduces the efficiency of QTP.

so,

GUI Testing should be done manually always... don't use QTP.

if you have such validations for help content or any text
content to check the gramatically and spell?

Use MS word.. copy content from your application and paste
here in MS word... it will show you the spelling mistakes
and also the gramatical mistakes.

Is This Answer Correct ?    4 Yes 0 No

Prev    1    [2]