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   SiteMap shows list of All Categories in this site.
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

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/allinter/public_html/common/queries.php on line 15

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/allinter/public_html/common/queries.php on line 15
Question
hi in QTP 8.2  in the edit box has text like "raju want  
married" . i want to check  "want" is their  in the  text 
or not ?
 Question Submitted By :: Softwaretester4u
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 1
use the split and left function and if u dint get i il give 
the code
 
Is This Answer Correct ?    0 Yes 0 No
Rangi
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 2
please write the code.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
 
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 3
it is not possible
 
Is This Answer Correct ?    0 Yes 1 No
Maha Lakshmi
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 4
after R & D in Qtp i found the solution guys, use Instr() 
function is useful for find the text .
 
Is This Answer Correct ?    1 Yes 0 No
Softwaretester4u
[EDS]
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 5
One method is 


a="Raju want to marry"
b="want"

if instr(1,a,b) then
    msgbox("Exists")
else
   msgbox("Does not exists")
end if

another method is 
use regular expression. this is a bit lengthy
 
Is This Answer Correct ?    1 Yes 1 No
Srinath
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 6
var="Raju want to marry"
var1=InStr(1,var,"want")
if var1>0 then
  MsgBox "String Exists"
Else
  MsgBox "Doesn't Exists the String"
 
Is This Answer Correct ?    3 Yes 0 No
Mahesh_sqa
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 7
Exact Answare Replay me if possible on no1lmahesh@krify.com
var="raju want married"
var1=InStr(1,var,"want")
MsgBox var1
var2=Mid(var,var1)

MsgBox var2
var3=Left(var1,4)
MsgBox var3
 
Is This Answer Correct ?    0 Yes 1 No
Mahesh_sqa
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 8
n=InputBox("Enter name")
var=Split(n," ",-1,1)
nam=var(1)
msgbox nam

If  nam="want" Then
	Services.LogMessage nam,OutputMsg
	Else
	Services.LogMessage"Failed",OutputMsg
End If
 
Is This Answer Correct ?    0 Yes 0 No
Rao' Prasad
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 9
It is also possible through Text Check Point.
 
Is This Answer Correct ?    0 Yes 0 No
Rao' Prasad
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 10
can put exceptional handling as"* want *"
so it'll check for many char before & after want & by
putting text check point
 
Is This Answer Correct ?    0 Yes 0 No
Preeti
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 11
yes preeti you are correct. you can use regular expression.
like "srinkv@gmail.com" if you want to check "srin" in the 
syntex it is "srin*" in vbscript & /srin*/ in jscript.

Agree with your comment
 
Is This Answer Correct ?    1 Yes 0 No
Srin
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 12
editbox_val="raju want married"
expected_val="want"
d=split(editbox_val," ")
   ( ...since d is an array....here d(0) contains "raju")
   ( ..here   d(1) contains "want")
   ( ...here d(2) contains "married")

 for i=0 to ubound(d)
     act_val=d(i)
      if (expected_val=act_val) then 
           msgbox "want is present - pass"
           exit for
       else 
           msgbox "fail - not present"
      end if 
 next
 
Is This Answer Correct ?    0 Yes 0 No
Sreekanth Chilam
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 13
str="raju wants marriage"
a=instr(1,str,"wants")
If a<>0 Then
	msgbox "Required text existed "
	Else
	msgbox "Required text not existed"
End If
 
Is This Answer Correct ?    0 Yes 0 No
Rayudu
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 14
Hi mahesh,
Small correction!!!

var="raju want married"
var1=InStr(1,var,"want")
MsgBox var1
var2=Mid(var,var1)

MsgBox var2
var3=Left(var2,4)'you placed var1 i repaced var2
MsgBox var3
 
Is This Answer Correct ?    0 Yes 0 No
Akash
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 15
Hi Friends, Pls check this answer:

s= "raju want married"
d="want"
x= split (s," ")
if Instr(d,x(1))<> 0 then
	msgbox "Passed"
	else
	msgbox "Failed"
End If

Thanks,
Sri
 
Is This Answer Correct ?    1 Yes 0 No
Sri
 
  Re: hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?
Answer
# 16
This can be easily checked with the help of Text Area
Checkpoint as this checkpoint can check the particular
Text/String in the paragraph, particular area can be
selected and checked for the Text/String.
 
Is This Answer Correct ?    1 Yes 0 No
Ana
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what are the disadvantages of descriptiveprograming GE4
How to export data in excelsheet to qtp without using datatable.  1
I have to automate webpage. If I click one hyperlink2 it will take 2 hrs to open. How to automate hyperlink2? Polaris3
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c  5
Can any one please list me out the shortcut keys for some functionalities in the QTP .. for example ..to record...to run...etc Keane-India-Ltd5
in my database haveing 3X3 (manas having 3 rows 3 colums) i want to test only (2nd row 3colum) bit how to test either script or any automation plz explain? (Chandana) IBM7
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically.. Thatavarti-Technologies3
4. How u will open the build automatically in QTP except using Systemutil.run command  3
I m in new and want to learn QTP. Is any website which provide free QTP video training.....also can downlaod....  2
What is driver script and driver script in qtp frame work???? IBM1
I have test cases in excel sheet but i am using quality center.How can i copy the testcases from excel sheet to quality center?explain this process. TCS2
Explain about invoking of application?  2
Up to how much VB scripting knowledge and what type of VB script knowledge is required for a QTP test engineer for real time to work ?  2
what is Function Definition Generator? can any one explain me in details? Accenture6
What is VSS? Is it used in Automation(QTP) Or Manual? what is menus in VSS? TCS3
What is the extension of 'Log file' in QTP  2
WHAT IS PARAMITARIZATION?  8
Maximum synchronizing time out in QTP Kanbay2
What is the Obect Repository type, we use in Automated Testing..in Real time.. Pls anybody can give the answer.. Thanks in advance... Navis5
What is meant by Pseudo Code? Satyam5
 
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