arun


{ City } pune
< Country > india
* Profession * cosultant
User No # 102165
Total Questions Posted # 0
Total Answers Posted # 25

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

Users Marked my Answers as Correct # 11
Users Marked my Answers as Wrong # 3
Questions / { arun }
Questions Answers Category Views Company eMail




Answers / { arun }

Question { 10555 }

Use of Multiple Actions in QTP?


Answer

In case of modular framework multiple actions are used,in this case it uses for code reusability,reliability,efficient way of handing code,paramiterization etc. it depends of the clients requirement.

Is This Answer Correct ?    1 Yes 0 No

Question { IBM, 35169 }

What is runtime objects and test objects? What is the
difference between them?


Answer

Test objects are the objects which are stored in Object Repository while recoding application.

Runtime Objects are the objects which are in AUT and while replay the script the Test objects maches the property of AUT object, if it matches then the script doing action on the object.

Is This Answer Correct ?    0 Yes 0 No


Question { 9013 }

Use of environment variables?


Answer

in case of normal variable, it has scope of access within action only in which it is defined,now if a user wanted to use this varaible in another action then it is not possible.

so Environemnt varibale came into picture, in this case, if the environemnt value is defined at any action at point of time, then this will accessable through out the actions between the script exection,once the execution is stoped then the environment value loses the value assigned to it. it does not carry forward the value.

Is This Answer Correct ?    1 Yes 0 No

Question { 24570 }

How to parameterize in QTP?


Answer

There are 4 ways of doing parameterize in QTP

1. Action Parameterization
2. Data Table parameter
3. Random number parameter
4. Environmental variable parameter

Is This Answer Correct ?    0 Yes 0 No

Question { 13397 }

How to add Dynamic Objects to Object repository?


Answer

We can add dynamic object in OR using object prameterization,(affter adding the dynamic object using object spy then change the object property name to class and assign the class name. after adding if it matches more than one object then use index property)

Is This Answer Correct ?    0 Yes 0 No

Question { 5747 }

How to handle the errors without using recovery scenery?


Answer

write on error resume next statement ,where do you expect an error may come. or in run setting set as "proceed to next step.

Is This Answer Correct ?    0 Yes 0 No

Question { AppLabs, 16138 }

how to read log file using QTP??


Answer

Normaly log files are of .txt format.

so to read .txt files try using FSO (file system object)

Is This Answer Correct ?    0 Yes 0 No

Question { NIIT, 25195 }

Whenever we use GETROPROPERTY function.


Answer

GetROProperty is a methods by which user can the runtime value of a particular object while doing test Run.

ex: if user wanted to get value present in a text box.

strTxtValue= Browser("").page("").webEdit("").GetROProperty("value")

Is This Answer Correct ?    0 Yes 0 No

Question { 4743 }

I have a login page like username, password and login. I
have to pass the 50 user names and 50 passwords but
how can i test this page with out using parameters?


Answer

UserName="user1,user2,,,,,,user50"
Password="pass1,pass2,,,,,,pass50"

arrUserName=Split(UserName,",")
arrPassword=Split("password,",")

For i=0 to 50

systemutil.run "iexplore.exe","gmail.com"

Browser("index:=0").page("index:=0").WebEdit("name:=username").set arrUserName(i)

Browser("index:=0").page("index:=0").WebEdit("name:=password").set arrPassword(i)

Browser("index:=0").page("index:=0").Webbutton("name:=login").click

Browser("index:=0").page("index:=0").close

Next

Is This Answer Correct ?    0 Yes 0 No

Question { 6904 }

Hi, i have a string like "INDIA". I need to display this
string vertically in Msgbox?


Answer

str="INDIA"

For i=0 to len(str)

x=Mid(str,i,1)
Print x&VBCRLF

next

Is This Answer Correct ?    0 Yes 0 No

Question { HCL, 9439 }

If there are 100 checkboes in a page then how can we select all chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...


Answer

for i=0 to 100

Browser("index:=0").page("index:=0").webcheckbox("index:="&i).set "on"

Next

Is This Answer Correct ?    2 Yes 0 No

Question { 9508 }

If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.


Answer

systemutil.CloseProcessbyName("iexplore.exe"

Is This Answer Correct ?    1 Yes 0 No

Question { 8381 }

in a web table , i want you to click a particular object inside cell


Answer

browser("index:=0").page("index:=0").webtable("index:=0").childitem(2,1,"Link",0).click

Is This Answer Correct ?    3 Yes 0 No

Question { 3558 }

How to check and display a particular word from a paragraph?


Answer

strParagraph="There are subtle differences between these methods. The CreateTextFile is used to create a file and a
TextStream object. This method can optionally overwrite an existing object. The OpenTextFile opens an
existing file and returns a TextStream object, but can optionally create the filename if it does not exist. The
OpenAsTextStream object opens an existing file and returns a TextStream object."

str="opens"

if Instr(strParagraph,str)>0 then
msgbox "The particular word found from the paragraph"
msgbox str

else
msgbox "particular word not found from the paragraph"
end If

Is This Answer Correct ?    1 Yes 0 No

Question { 2405 }

What is meant by Environmental variables?2 types r there know…can u pls explain clearly?


Answer

Environment variable is a variable which keeps the value through out the action.

suppose there are 3 actions(action1,action2,action3) and if you declared and defined environment variable in action1, then the value will be accessable in action1,action2,action3

there are 2 types of environmnet variables
1. Build in
2. user defined

Is This Answer Correct ?    0 Yes 0 No

 [1]   2    Next