May be there are several ways, but I think, by getting the
title of the yahoo page, we can validate. This is concept,
not real example. I have to test this today.... So Check
the correctness of this code before run it.
pname= Browser("...").Page("welcome xxxx/OR Something
else").GetRoProperty("text")
If pname="welcomexxx" then
datatable("TestName",3)=Environment("TestName")
datatable("Results",3)="Pass"
else
datatable("TestName",3)=Environment("TestName")
datatable("Results",3)="Fail"
End if
Datatable.exportsheet "c:\res.xls",3
Already I am nervous.
First give me job. Then I show you how to do auto. Please
don't ask such type of hard questions.
----------------------------------------------------------
By using Standard Check Points. Check the title of the Next
Widow.
Ex: title="welcome.*"
x=Browser()page().GetROProperty("text")
If x="welcome JIGGA" then
Browser().page().webButton("").click
End if
We can use this as a standard check point.
rather than using checkpoints in scripts it is better to
use GetRoProperty to validate any functionality. Some times
Checkpoints are getting failed when scripts are moved from
one location to the other location
for validating yahoo loging we can use inbox, compose
buttons visible property
Sorry for writting this Muralikrishna, your answer is
wrong. You should use standard check point to login and
passward and page checkpoint for the login window.
If it is after log in I mean after entering into the
account u have to check the text check point inorder to
verify the account holders name is appeared on the screen.
If it is sign in page u have to insert standard checkpoint
to check username is printed or not.
sailaja
I do verify the above cases in this way.
ret= Browser("yahoo").Page("home").CheckProperty
("title","Yahoo...")
if ret= true Then
<lines of code>
Else
<lines of code>
I want to create Excel object on another machine which is
in network i written the code "Set se=createobject
("Excel.Application","\\ankur")"here \\ankur is the name of
that machine but i m getting the error of permission denied
create object can anybody help me
hi this is srinivasa(from blr) i complited my B.tech(e.c.e)
in 2007 im searching job in s/w testing but idont have
freshers resume for s/w testing please send some s/w
testing resume for me(fresfers resumes only) advns thnks
you
Hi Guys,
I tried to install java add-in for QTP 9.5 after the whole
installation but it didn't install but then i also found in
documentation saying that winrunner7.6 patch for java
plugin would work fine with QTP. But when i tried to
install from winrunner7.6 it asks me for the path of
winrunner So my question is are we supposed to install
winrunner for java add in to work on QTP. Please suggest me
I am just a beginner in QTP. Could any one explain me in
detail how to automate adding two numbers and getting the
result in QTP. Also I would like to parameterize the
inputs. I have tried but getting an error like 'Can't use
sub.....'(can't recollect the exact error)
what is functions in qtp?i know the userdefind &bulit
funation or i know that Private public function ?plz tell
me what is funations in qtp?how to create a funation in qtp
i am entering wrong data or wrong password in a text box and
click on submit button .i am getting a popup window with a
message Please enter the correct password or data .How can i
handle this situation by using QTP.