Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / neeraj

Hi Friend

You can go through the "Recovery Scenario" for
this kind of problem. Steps are..in QTP 9.2

Resources-> Recovery Scenario Manager-> click on first image
that is with right side of "Scenarios"(only the enabled
image)text-> read the content and "Next"-> these are the
condition wherever we use Recovery Scenarios select one of
them according wat type of error you have(pop up
window)->"Next"->Click on "Hand" pointer and capture the
popup window and "Next"->"Next"->Select the event you want
to perform "next"->"Next"-> From Recovery operation window
un select the check box and "next"-> "next->"next"-> Write
some description or not(optional)->"next"-"Finish"->"Save"
in your destination.

Now you can use that in your script.

Have a look(softestonline-neeraj043.blogspot.com)

Is This Answer Correct ?    12 Yes 3 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / dimple

Hi all,
I have read all the answers.
By using recovery scenario we can just click ok button on
the pop up window.
If we want to enter in to the application ,I think even
recovery wont help it.
If the question is about validation then validate the
username and password by if else statement for Pop up
existence.
If not the data must be correct

Is This Answer Correct ?    5 Yes 1 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / less than you

Suppose the same pop window generated while running test
case and while recording it was not generated & values were
properly inserted. What procedure is require please explain
with details?

alkaa.dugaal@gmail.com

Is This Answer Correct ?    2 Yes 2 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / bfakruddin

Hello Folks,

Dimple provided nice answer... validation should be done on
password field... when we provide wrong input... popup gets
rise then check it is poped up or not... if it is rised
then pass the test case else... password field accepts
wrong password too...

Code is here,

res=dialog("correct password").getroproperty("enabled")

if (res=true) Then

reporter.reporteven micpass,"password validation done"
...
...

Then

dialog("correct password").webbutton("OK").click

Thanks & regards
Baba Fakruddin.D

Is This Answer Correct ?    1 Yes 1 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / vamsi

if you want close all the pop-ups to be closed in QTP, we can use utility objects too
in the above comments they handled pop-ups using recovery scenario as well as through scripting.
but to handle pop-up with utility object write this statement in else block of verification point

Systemutil.CloseDescendantProcessess

if we add this statement the pop-up will be closed automatically by QTP

Is This Answer Correct ?    0 Yes 0 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / akshar jain

if there is a pop up message then u just add it to ur
object repository & make the qtp to click on the ok
button..you make this as a function & validate ur login
page as many time as you wantn call ur function

Is This Answer Correct ?    4 Yes 5 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / sasmita

Dear Alkaa,
i am just describing the scenario.
1.Open gmail/yahoo or any site.
2.Enter your valid userid and invalid password.
3.We can see a pop-up window with a message "Please enter
the correct password or Password invalid "
even i know the right scenario
4.But i just wanna know how to capture the pop-up window.

Thanks,
Sasmita

Is This Answer Correct ?    1 Yes 2 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / zahid

Identify this pop up and buttons on this pop up as an object
and add it in repository. Now use MouseMove function to move
mouse pointer over this pop up and click on "Yes" or "No"
button according to your requirement.

Note:- I am assuming that pop up is a type of window object

Is This Answer Correct ?    1 Yes 2 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / saravanaraja

Use the following code:

systemutil.CloseProcessByWndTitle

Is This Answer Correct ?    0 Yes 1 No

i am entering wrong data or wrong password in a text box and click on submit button .i am getting a..

Answer / ajay

When ever u got the popup window you can make it that
ststement as optional.When ever you make it optional if the
popupwindow appears it will take care other wise move to
next step.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More QTP Interview Questions

Why we are going for descriptive programming ? I answered as 'If objects are not present in OR we will go for descriptive Programming'? Is this correct ?

3 Answers   Polaris,


It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one tough question..(I think.. May be easy for some people) In recorded script the - WebLink("cityinfo") In reality, the WebLink name is "generalinfo" How you can write function to click that changed web link. NOTE: This functin should work with any Dynamic text link. I will post the answer later.

8 Answers  


What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?

3 Answers   IBM,


Other than using import sheet statement for importing the data from excel sheet, is there any other method that can be used?

2 Answers  


what are the design objects in qtp

3 Answers   Wipro,


How Exactly we can find out the INDEX No. of any object of an application when we test that application in QTP? Explain this by giving me the example of all LINKS of G-Mail (including home page, User-account page and all possible pages you ever seen in G Mail)?????? and if your answer is that as per appearance of objects(LINKS) in application we can find out the index number in application then tell me how you find out which object(LINK) having INDEX No. 1,2,3 and so on and how you say which object(LINK) is appeared first and which is last?

4 Answers   Infosys,


What is standalone database?

0 Answers  


How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies.

5 Answers   Semantic Space,


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

0 Answers  


what is Business Process Testing plz explain?

7 Answers   iFlex,


What is Expert view?

4 Answers  


can we install qtp in windows vista

2 Answers  


Categories