ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
give one example where you have used regular expression?
 Question Submitted By :: Ramkrish_2009
I also faced this Question!!     Rank Answer Posted By  
 
  Re: give one example where you have used regular expression?
Answer
# 1
hwen ever change in regular in test objects that tine use 
resgular expression
 
Is This Answer Correct ?    0 Yes 0 No
Ramakrishna
 
  Re: give one example where you have used regular expression?
Answer
# 2
Regular exprresion is used where varying window lables are 
there at run time 

for ex. while recording script on MS document , it was doc-2

but when u run the script the window lable changes to doc-3
 then QTp doesnt identify this ...
for this REgular expression is needed
 
Is This Answer Correct ?    0 Yes 0 No
Diksha Kakkar
 
 
 
  Re: give one example where you have used regular expression?
Answer
# 3
In flight application, fax order window number changes 
according to the Order number created.....
in this case u can use regular expression for that number.. 
so that the test will not fail and it continues whatever be 
the number in that window..
 
Is This Answer Correct ?    2 Yes 0 No
Pooja
 
  Re: give one example where you have used regular expression?
Answer
# 4
Regular expression are used for the dynamic values. Dynamic 
values change there value during the run time.
for ex. date, When we record the application it take the 
default date and when we run the test on different day it 
will select that day date. For this conditions it's better 
to use the regulat expressions.
 
Is This Answer Correct ?    1 Yes 0 No
Purni
 
  Re: give one example where you have used regular expression?
Answer
# 5
Regular Expressions can be used for Dynamically chanaging 
objects in the run time. 

In QTP we use regular expressions in

1. Physical description 
2. Check points
3. Recovery Scenarios
4. In Scripting
 
Is This Answer Correct ?    1 Yes 0 No
Sreelaxmi
 
  Re: give one example where you have used regular expression?
Answer
# 6
Another gud ex for using the regular expression is to 
checking your eMail.
as the no of unread messages will never be constant so -for 
clicking on "Inbox(n # of unread mails)" w/o fail u must 
use R/E.
 
Is This Answer Correct ?    0 Yes 0 No
Satya
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to retrive XML file data in QTP ? using Script(Chandana) Wipro5
What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP) Wipro1
How to capture screen shots when an error occurs? EDS4
HI ALL, HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP? PLZ URGENT.ANSWER ME.  2
how many types of actions r there? what r they? explain? pls give any one answer? IBM2
An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this??? HCL4
what do u mean by test harnesses in qtp? Verizon1
what is Business Process Testing plz explain? iFlex6
What is TD plugin? For what purpose they are used . Ineed to connect QC9.2 with QTP 9.2 . Need to run some scripts IN QTP having the QC connectivity. Pls explain in detailed step Thanks in advnece HCL1
what is defination of system testing? Omax1
Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.  2
1. How can we use same object repository and Testscript which is in English flavor to check the application in different languages thru QTP?(Chinese,Dutch,French) - I generated script in english and want to use the same script with different languages? - for windows i used regular expressions - I need for edit box,button and combobox, (English,French,Dutch,Chinese) These are the properties of a button in different languages Properties English Dutuch Chinese French x 400 758 631 601 y 673 603 592 676 windowstyle 1342242816 1342242816 1342242816 1.34E+09 windowid 2 2 2 2 windowextended style 4 4 4 4 width 120 120 120 120 visible TRUE TRUE TRUE TRUE righttoleft reading FALSE FALSE FALSE FALSE righttoleftlayout FALSE FALSE FALSE FALSE rightaligned FALSE FALSE FALSE FALSE regexpwndtitle cancel Loschen Chinese language Annuler regexpwndclass button button button button objectclass button button button button hwnd 132872 657228 656932 656782 height 33 33 33 33 focused FALSE FALSE FALSE FALSE enabled TRUE TRUE TRUE TRUE attached text abs_y 669 599 627 597 abs_x 396 754 588 672 text cancel Loschen Chinese language Annuler nativeclass button Button ordinal Identifier type,Value none none none none smartidentification FALSE FALSE FALSE FALSE comment TCS1
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  2
HOW TO DO THE BATCH TESTING USING QTP? Ordain-Solutions2
Explain about Hybrid Framework IBM2
Wt is the difference between Business Component and scripted component? BSL1
suppose i give valid user id and password to open an web base application on qtp.how qtp will know itis a valid user id and password  2
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..  2
Check point what is how many types of checkpoint and explain Accenture2
How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com