gaytri


{ City }
< Country > india
* Profession *
User No # 8776
Total Questions Posted # 0
Total Answers Posted # 9

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

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 1
Questions / { gaytri }
Questions Answers Category Views Company eMail




Answers / { gaytri }

Question { 8647 }

Hello Everybody,

Please tell me the concept of recovery management in QTP by
giving any practical example of it.

Thanks,
Gaytri


Answer

Hi Zayed,

The concept is clear to me,but can you please tell me how
to handle it. As you have given me the example, so how you
will handle in that case.

Please tell me in steps how to handle that and if possible
please also provide the code.

Thanks,
Gaytri

Is This Answer Correct ?    0 Yes 0 No

Question { 8647 }

Hello Everybody,

Please tell me the concept of recovery management in QTP by
giving any practical example of it.

Thanks,
Gaytri


Answer

Hi Nath,

Thanks For your help, It sorts out my problem.


Thanks A Lot!!
Gaytri

Is This Answer Correct ?    0 Yes 0 No


Question { 6556 }

Hello Everybody,

How to maintain the page state in QTP.
My scenario is:
1. I opened a notepad file.

2. Entered some text in the notepad file.

3.And changed the font type and color of the notepad file.
And saved that.

4.Now next time when I will open the notepad it is showing
the changed font type and color, rather than the default
values.

Please provide the code.

Thanks,
Gaytri


Answer

Hi Santosh,

I think you are not getting my query. Actually what is
happening:
1. Suppose I opened a notepad file and wrote some text, now
here by default font type is courier and size is:10 and
changed the font type and size i.e. i changed the font type
to Curlz MT and size 14 and saved that file and closed that.
2. Now next time when i am opening the new notepad file and
writing some text there, then text is displayed in Curlz MT
and font is 14.

Now what I want here that when after saving the changed
font type and size, next time when i am opening new notepad
file then it should show font type as "Courier" and size
as "10".

I want to capture that original state i.e. when i will
capture the empty notepad file..is it possible that all the
properties of that page is capture automatically? Or I have
to capture each and every property of the notepad.

Thanks,
Gaytri

Is This Answer Correct ?    1 Yes 0 No

Question { Logica CMG, 18699 }

for a test in QTP i had choose the object repository as
shared.after completion of some days i want to conduct the
same test again,now the question is HOW TO LOAD THE OBJECT
REPOSITORY. is it possible by descriptive programming.could
any one tell me how many ways we load it and what is the
process?


Answer

Hello Everybody,

I am not able to open the object repository using this
syntax, I am getting error "Type mismatch".

please provide me an example by taking any path of the
object repository.

Thanks in advance,
Gaytri

Is This Answer Correct ?    0 Yes 0 No

Question { Logica CMG, 18699 }

for a test in QTP i had choose the object repository as
shared.after completion of some days i want to conduct the
same test again,now the question is HOW TO LOAD THE OBJECT
REPOSITORY. is it possible by descriptive programming.could
any one tell me how many ways we load it and what is the
process?


Answer

Hello Biman,

I tried to execute the same steps as per mentioned by you
in QTP 9.2 , but on executing I got the error "Object Does
Not support thir property or method" at this line
objnew.Test.Settings.Resources.ObjectrepositoryPath
="D:\Documents and Settings\bimanr\My
Documents\Bim_QTP\Test-OR-withshared.tsr"

SO kindly let me know where exactly the problem is in my
code.

Is This Answer Correct ?    0 Yes 0 No

Question { 7114 }

Hi Everybody,

Can anybody please tell me the how to display the result of
the QTP in the notepad text file rather than in the QTP
result window.

Suppose this is my simple script:WHich will open the
notepad file and enter some text and then will change the
font then will calculate how much time has been taken.Now,
in this script i want to display the result in notepad file.

Dim s
Dim starttimer,endtimer,timeit
s="uyetuywqtywqte"
SystemUtil.Run "notepad","","Y:\",""
Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" +
micCtrlUp
Window("Notepad").Dialog("Save As").WinEdit("File
name:").Set "test1"
Window("Notepad").Dialog("Save As").WinEdit("File
name:").Type micReturn
Window("Notepad_3").Type s
Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s"
+ micCtrlUp
starttimer=timer
Window("Notepad_3").WinMenu("Menu").Select "Format;Font..."
Window("Notepad_3").Dialog("Font").WinEdit
("Font:").Type "cou" + micDwn
Window("Notepad_3").Dialog("Font").WinComboBox
("Font:").Select "Courier"
Window("Notepad_3").Dialog("Font").WinEdit
("Font:").Set "Courier"
Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type
micReturn
endtimer=timer
timeit=endtimer-starttimer
print(timeit)

Please also tell me where the function for the text file
result will be declared and where it should be called.

Thanks,
Gaytri


Answer

Hi Chaitu,

Actually what I want to do is : I want to display the
result of my script in the notepad text file rather than in
the test result window, as it is usually displayed.here I
had given one example of my script. You can take any
example.
I think for this we have to create one function, but this
is not clear to me where to call that function and what
will be the definition of the function.

Please let me know if still it is not clear to you.


Thanks,
Gaytri

Is This Answer Correct ?    0 Yes 1 No

Question { 9493 }

Hello Everybody,

Can anyone tell me that in QTP how to count the number of
webelements from the object repository.
Please provide the code.

Thanks in advance,
Gaytri


Answer

Hi Seeths,

It is fine that we can use the child object property, I
also used the same, But the problem is that I want to count
the number of labels present in the specific page.

In addition to the above I also need that suppose:
1. I captured some of the labels of the web page.
2. Now in my script i used
Set oweb=Description.Create()
oweb("micclass").value="WebElement"
set lists=browser("Yahoo!").Page("Yahoo! Mail - The
best").ChildObjects(oweb)
numberoflists=lists.count()
msgbox(numberoflists)

this will display the number of webelement of the above
specified page.
3. I want if that webelement exists in the Object
Repository then it will add it to the list. and thus count
all those webelement that also exists in the Object
repository.

Thanks,
Gaytri

Is This Answer Correct ?    0 Yes 0 No

Question { 7914 }

hello everyone,

can anybody please tell me what are the different recording
modes of QTP, and where these recording modes are present
in QTP 9.2.

Thanks in advance,
Gaytri


Answer

Hi Sudhanadra,

first of all thanks for urs reply. can u please tell me
where this option of recording mode i.e. how we can change
the recording mode in QTP 9.2.

I understood the different types of recording modes by urs
reply.

Thanks,
Gaytri

Is This Answer Correct ?    0 Yes 0 No

Question { 7914 }

hello everyone,

can anybody please tell me what are the different recording
modes of QTP, and where these recording modes are present
in QTP 9.2.

Thanks in advance,
Gaytri


Answer

hi sudhendra,

I got it.
Thanks for your reply.

Gaytri....

Is This Answer Correct ?    0 Yes 0 No