This action might not be possible to undo. Are you sure you want to continue?
Can any one tell me how to create the shared object repository Ans: hi this is susmitha,object repositary means it is a storage place where one can stre the
object information and it behaves like an interface b/w application and the test script.where in the shared repositary we can store more than one application s objects informationit can be associated with multiple test scripts.the maintainance is easy but it takes more time while running.open OR--> eport--->specify the name to store the objects as shared like .tsr file that is test shared repositary ---->save and ok i think u email@example.com OR I am new to QTP9.0, can anyone tell me how to create shared object repository Q.
Difference between action and function
Ans: Action: Action is a collection of Vb statements in QTP. It doesnt return any values. Function: Function collection of Vb statements in QTP. It returns single value.
Action is a thing specific to QTP while functions are a generic thing which is a feature of VB Scripting. Action can have a object repository associated with it while a function can't. A function is just lines of code with some/none parameters and a single return value while an action can have more than one output parameters.
Where to use function or action:
Well answer depends on the scenario. If you want to use the OR feature then you have to go for Action only. If the functionality is not about any automation script i.e. a function like getting a string between to specific characters, now this is something not specific to QTP and can be done on pure VB Script, so this should be done in a function and not an action. Code specific to QTP can also be put into an function using DP. Decision of using function/action depends on what any one would be comfortable using in a given situation.
Q. does qtp supports rational developed scripts.
upto my knowledge it's not possible, because qtp is mercury interactive product and ration robot is other product, qtp supports winrunner scripts...
Q. hi friends plz tell me the script to stop an iteration and start from the next iteration?
Ans: hi with using exitglobaliteration function you achieve that, for more details u can go to help menu in qtp tool bhadra
Q. Hi friends, how to get a value from a text box during run time and parameterize it to another step?
Ans: You will need to use an output parameter to get the text from the textbox and then use an input parameter to input it where you need it. You also may as well use a the data table in your expert view.
Q. Hi,Can anyone tell me how to run QTP scripts at DOS prompt?
Ans: Here is the answer for how to run DOS command in QTP..Hope this will be useful fro you. You can run standard DOS commands in your QuickTest test using the VBScript Windows Scripting Host Shell object (WSCript.shell). For example, you can open a DOS command window, change the path to C:, and execute the DIR command using the following statements: Dim oShell Set oShell = CreateObject ("WSCript.shell") oShell.run "cmd /K CD C: & Dir" Set oShell = Nothing For more information, refer to the Microsoft VBScript Language Reference (choose Help > QuickTest Professional Help > VBScript Reference > VBScript). OR
i m using the window object in qtp and i want to pass the window name as an argument which is stored in a variable.
like: window("arg1").window("button").close i m unable to write a syntax for passing arg1(window name) in the code in QTP. i shall be greatful if somebody could help me in this regard. thanks, rosy
Try This, arg1="my window" window(arg1).winbutton("ok").click
Q. how do we create functions in qtp and call the functions? Ans:
What ever the functions(one or many) you would like to write create in the notepad and save it as filename.vbs.Go to your test click on the testsettings in the TEST tab. Again go to the resources tab and click on the +(plus appears in green color) symbol and give the absolute path or u can browse.In the script where ever you want call using CALL funcName(parameters list).
You are upsolutely correct.Also if you want to execute file Execute file and path name Ex:Execute File C:Program FilesMercury InteractiveQuickTest ProfessionalTestslibrary1.vbs
How do you close the Task Manager through QTP? Ans: First you should add the Task Manager dialog box in the object repository.
Q. This is not a modal dialog box so you can add it to repository easily. Then use following simple code. If Dialog("Windows Task Manager").Exist Then Dialog("Windows Task Manager").Close Reporter.ReportEvent micPass,"Task Manager","Successfully closed task manager" Else Reporter.ReportEvent micFail,"Task Manager","Task Manager is not open" End If
How do you validate Email textfield using QTP. Ans: HiI am not exactly sure of the solution u can just try writing some stubs for validating
Q. the email field.The below is simple example for validating text box with only numeric values.Similarly u can write a stub which will except email validation creteria.EX: Q.
How to access a test input parameter?
Ans: Hi. Thanks Barna Q. Purna Q.. and apply for the whole. By importing data we can load it in to the Excel sheet(Data Table). Q.. How to execute a batch of scripts in QTP? Ans: open test batch runner tool start--> allprograms-->QTP-->Tools-->testbatch runner add QTP scipts run scripts. We have option for comparing the Excel Sheets. regards.. And another one option is. For generataing macros we compared.select import. second is you have to use descriptive programming. how to capture the window in qtp while writing script and it should run while running script Ans: hi there are two way to handle this situation. How to capture data from images in QTP and produce them in Excel sheet ? Ans: select the cell in data table and right click. one is you have to add the objects to object repository before going to run. OK Q. Ans: Hi. using if condition we compare the two cells. How to compare two excel sheets? Need any sample Scrpt. Using Parameter("Parameter Variable"). in addtion to this u need to enble check box to allow other mercury products to run tests and components in run options from tools menu .
open that file in notepad there u can write which actions you want to execute sequentially...password.recordset") con......con empid=rs(0) browser("google").......so on..open "select empno from emp"..open "dsn=. ---Sudarshan OR yes. Ans: hi..close rs..." rs.close Q.OR hi u can use test batch runner from tools option or u can create one action then go to where u created the action(i mean source) there u can find action0...webradiogroup("group1").select empid con....rs set con=createobject("adodb...connection") set rs=createobject("adodb.......user id=. to connect to a database u require a connection dim con... how to write the script for database connection then doing parametrization in the same script..database=.page("google").. bye bhadra . it is like call to existing action bhadra Q..server name=.. you can get time for entire test or for sub test or for actions.. we have u can get that from using start transaction and stop transaction and then you will find the difference of two transactions. Is there any method to measure how long it takes to run a set of test steps in QTP? Ans: USE Transaction Item OR You can measure how long it takes to run a section of your test by defining transactions.
internet explorer only. Objects not found in the repository Error in qtp.0. for further information see help menu in qtp. Netscape 8. it will not support internet explorer 7.com ok takecare byeee byeee Q. Its urgent OR Hi This si praveen yarlagadda. If you could point me to any material that might help will also be very helpful Thanks in advance OR . List the browsers QTP supports Ans: hi it depends upon qtp version. to work with i e 7. An error occurred saying that "Objects not found in the repository". apart from qtp supports aol.(Saved the script) But when i executed the same script after 2 days. This application can be accesed through CITRIX terminal server.0. How can I connect to this server via QTP and access the application. one small question how u conduct the test batch in qtp ? for any clarification send an mail to to_nazeer@yahoo. OR QTP supports Firefox 1. Internet Explorer 7 browsers OR hi thank u . please add the properties again to the OR and execute the script Q. because qtp 8.2 supports till internet explorer 6.5.0 we should have qtp 9.netscape. Is there any special add-in required or functions I need to call? Any kind of help is appreciated. Why is this happening. Kindly give me the answer.0. QTP | Question 361 of 449 | Print | Send To Friend QTP and CITRIX terminal server Access question Ans: I need to automate tests on a inhouse built application.We can also calculate the time using method called Timer. Ans: I had written a script in QTP which was working fine when i executed. Q.
A page checkpoint checks the characteristics of an Application. declare that variables outside for all the functionsor call second function in the first function itself.> environment tab as user-defined variables.Item("1Variable") Q. u can call the 1st action variables in second action by using Variable1 = Parameter.co.lets call it EnvVarA and EnvVarBin Action 1. Application while the test is running. if u want to record or develop any scripts in CITRIX using QTP you need to install QTP in the CITRIX server. Can we able to call that variables in Second Action Ans: Yes. Vamsi.FIRST SCENARIOvar a =10var b=20function addres=a+bend functionfunction SUBres=a-bend functionSECOND SCENARIO FUNCTION RESa=50. b). CITRIX is like a different platform.A text checkpoint checks that a text string is displayed in the appropriate place on an Application.define 2 environment variables in Settings . you can user statementsEnvironment("EnvVarA") = "variable 1"in action 2.b)end functioni think u firstname.lastname@example.org can either use Action parameters(output parameters) to pass values between 2 actions.An object checkpoint (Standard) checks the values of an object on an Application. or even better solution is to use environment variables. c). d). OR hihow u call the first function variable to ur 2nd function.A table checkpoint checks information within a table on a Application.in OR Hi. Q. we can call the variables by that variable as "option Explicit". you can use it to retrieve value stored in action1such as x = Environment("EnvVarA")this should help OR u need to add the variables in input parameters in seocond action and output variables in first action.An image checkpoint checks the values of an image on an Application.An Accessibility checkpoint checks the web page for Section 508 compliance. What are checkpoints in QTP and its importance. .b)res=sub(a. e).b=60 res= ADD(a. a). Regards. f). and in u r local machine u install CITRIX Neighbour wood. Suppose in 1st Action we had two variables .Hi. Ans: A checkpoint verifies that expected information is displayed in an You can add eight types of checkpoints to your test for standard web objects using QTP.
table checkpoint 2.2 we have 8 checkpoints which works as 11 checkpoints 1. A database checkpoint checks the contents of databases accessed by your web site OR hi in qtp 8..bitmap checkpoint:to check the bitmaps 6.databasecheckpoint: it will useful to check the database 5.An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.xmlcheckpoint: for xml pages and frames..textareacheckpoint: it will useful to check text area on applibcation(windows applications) 4.accessibility checkpoint: for web applications only..textcheckpoint: it will useful tocheck text on application(web & windows applications) 3....i don't know clearly 8.objPropWebEditPwd .. h).. OR Descriptive programming is a technique by which we can perform actions on objects which are not in the object repository. 7.imagecheckpoint c..standard checkpoint: it will useful to check the object properties as well as works as a. is the web application follows www consortium rules of section 508 or not. The below example uses descriptive programming to login to an application by providing the user id and pwd There are two ways in which descriptive programming can be used : * By creating properties collection object Dim uid.objPropPage Dim objPropImageLogin..pwd Dim objPropBrowser.g)... what is descriptive programming in qtp? Ans: It refers to creating a script from business requirement .xmlcheckpoint(File): to check the xml files-------i don't know clearly bhadra Q.objPropWebEditUsrName..pagecheckpoint b...
value="root" objPropPage("url").value="password" objPropImageLogin("name").Page(objPropPage). Set "password" Browser(objPropBrowser).WebEdit(objPropWebEditUsrName).Page(objPropPage).value="Login" objPropImageLogin("abs_x").value="334" objPropImageLogin("x").WebEdit("name:=password".value="password" objPropWebEditPwd("type").WebEdit(objPropWebEditUsrName)."file name:=b-login."name:=Login"). Set "ujwal" 'Browser(objPropBrowser).Create objPropBrowser("name").Page(objPropPage).Page("title:=Login").value="text" objPropWebEditPwd("name")."typ e:=password").Image(objPropImageLogin).Click .Page(objPropPage).Page("title:=Login").WebEdit(objPropWebEditPwd).Set pwd Browser("title:=Login".Set uid Browser("title:=Login".Page(objPropPage).Create objPropPage = Description.value="Login" objPropWebEditUsrName("name")."name:=Login").value="url link" objPropPage("title").value="username" objPropWebEditUsrName("type").value="Image" objPropImageLogin("image type").WebEdit(objPropWebEditUsrName).Click Browser(objPropBrowser).value="241" Browser(objPropBrowser).value="Login" objPropBrowser("title").uid="abc" pwd="123" Set Set Set Set Set objPropBrowser = Description.WebEdit("name:=username".pwd uid="abc" pwd="123" Browser("title:=Login". Dim uid.Page(objPropPage).value="510" objPropImageLogin("abs_y")."typ e:=text"). Set uid Browser(objPropBrowser).WebEdit(objPropWebEditPwd).value="510" objPropImageLogin("y"). Set pwd 'Browser(objPropBrowser)."name:=Login").Image("name:=Image".value="Login" 'objPropPage("name").Create objPropImageLogin = Description.Click * By giving description in the from of string arguments.value="Image Link" objPropImageLogin("alt").gif").Create objPropWebEditPwd = Description.Create objPropWebEditUsrName = Description.
Shared object repository type OR what is virtual function? Ans: The base class function is declered as virtual so that the derived class can have single Q.u canot. When do you add database check points during recording or after recording. What is the standard time taken to find a defect using QTP? Ans: hi there is no specific time to find a defect using QTP. what is the difference between Call to Action and Copy Of Action in QTP. Ans: When you want to use a reusable action without making any change in the code then you should use 'Call to existing action'. Q. there is diff in these actions. But if you want to make changes in the reusable as per your requirements then ypu should call 'Call to copy of an action'. Ans: Hi U Can add Data base check point while recording or even after recording. copy of the particular function. these are reusable. Why are they used.The base class function redefined in the derived class. but in call to copy action u can in which ever way u want Q. Per action repository type 2.. it depends upon the project and defects. when we save any test it will automatically save as folder which are the files generated in it? Ans: hi the folder consists of action 0.mtr and other files which is useful to retrieve the test when you call it. It is available when adding a new checkpoint to an existing test or component while editing it. action 1. the only difference is the "Insert statement option will not available when adding a checkpoint during recording or when modifying an existing object checkpoint.in call to existing action we canot make change or customize script as u wish. OR hai.if u dont clear once u see call to existing action keep cursor and try to add .Q. ok OR . OR It depends on object repository type 1. Regards Bindu Dey Q. It all depends on the synchronisation time set for the particular script.we use this actions in modular framework.
parameters file and action0. action1 folders. these folder contain object repository file as .mtr Q. Err Set Cnxn = CreateObject("ADODB.User Id=admin.0.2 does not support IE 7.4. Q. specify the boundaries and the parent of the virtual object. and resources file as .Data Source=C:Program FilesMercury InteractiveQuickTest Professionalsamples lightapp light32.bdb. Suggest me How to over come this problem? Ans: You did not mention the QTP version that u r using. 3." Cnxn.test folder contains datatable. &H0001 strSQLCustomers = " Insert into OrderTable(Customer_Name) values ='" & param1 & "'" Cnxn. After I installed IE 7. 3. Q.0 U need to install QTP 9.Password=. My scripts are failing. strSQLCustomers Dim fld.OLEDB. Can any one tell how to use Vitual Object in QTP ? Ans: You can teach Quick Test to recognize any area of your application as an object by defining it as a virtual object. QTP 8.lock file.0 or the latest version 9.mdb.0.0.Jet.Open strSQLCustomers. strCnxn Dim rsCustomers.Connection") Set rsCustomers = CreateObject("ADODB. can anybody give me the script for inserting data into a table of access through qtp Ans: VBScript File -------------Public function DbDemo(param1) Dim Cnxn. you can map a virtual object to a standard object class.Close End function .Script file as . Cnxn. and assign it a logical name. Using the Virtual Object Wizard.mts.RecordSet") strCnxn = "Provider=Microsoft.1 which is certified with IE 7.Open strCnxn MsgBox "connected" rsCustomers. Virtual objects enable you to record and run tests on objects that are not normally recognized by Quick Test.
set "Password" Window (Login").WebEdit("userName").Click OR All the members explained their views only for windows based appli. Anees Q.Set "aneesurs" Browser("Welcome: Mercury Tours").WebEdit("password").vbs" 'Executing the VBscript File DBDemo(CustName) 'Calling the Function in the VBScript File Q. Can anyone help me in creating script for Log-in field? Ans: script for login field window("Login").Page("Welcome: Mercury Tours").Page("Welcome: Mercury Tours")..Winedit("UserName").SetSecure "451d1d0c480846d5f5a495296ebc096f46e1" Browser("Welcome: Mercury Tours").Winbutton("Ok"). This is ramsh kolla i am a new entry script for login field Dialog("Login").dtGlobalsheet)'getting the value(Customer Name) from the DataTable ExecuteFile "C:DbDemo. Here i'm gng too explain abt Web bases Login form: Browser("Welcome: Mercury Tours").Winedit("Password").QTP Script -----------CustName = Datatable(Customer_Name.winbutton("ok").Image("Sign-In"). Can I compare two DataBases using QTP? Ans: u can use ado object do it. .Winedit("UserName")..set "UserName" Window("Login").Click OR needed complete Qtp framework and diffe types of framework we have in QTP OR Hi.set "EncriptedPassword" Dialog("login").Click 16.Winedit("Password").set "UserName" Dialog("Login").8 Rgds.Page("Welcome: Mercury Tours").
2.filds(i) then rs.Open Sql.close conn.eof if rs.ignorecase=trueSet m=reg.close set set set set rs=nothing rs2=nothing conn=nothing conn2=nothing Q. 2 rs2. Conn.Code Example: Dim Conn Dim Conn2 Dim rs Dim rs2 Dim Sql Dim Sql2 Set Conn = CreateObject("ADODB. Can somebody give me few examples for using regular expression? Ans: The following example is used to identify numbers in the input givenSet reg=new regexpreg.execute("This is India 2006 and I am proud to be an INDIAN 999")For each n in m msgbox n.Recordset") rs.MoveNext i=i+1 else exit "do want" endif loop rs. 2 Do while not rs.global=truereg.Connection") Conn. OR .Open "link database string" Conn2.pattern="d+"reg.valueNextEven regular expressions are used in check points and string replacing functions.MoveNext rs2.Open "link other database string" Sql = "select * from TableName1" sql2="select * from TableName2" Set rs = CreateObject("ADODB.Open Sql2.fields(i)=rs2. 2. Conn.close rs1.close conn1.Connection") Set Conn2 = CreateObject("ADODB.
regEx. Matches ' Create variable. For Each Match in Matches ' Iterate Matches collection.Pattern = patrn ' Set pattern.page("title:=Yahoo! Photos*.page("title:=Yahoo! Photos*. I am in urgent need of that document.SubMatches(0) ' dragon retStr = retStr & vbNewline retStr = retStr & "Organization is: " & oMatch. Set regEx = New RegExp ' Create a regular expression. Thanks!")) -------------------------------------------------------------------------------------The following code is for Regular expression illustrates the use of the Pattern property." & vbCRLF Next RegExpTest = RetStrEnd FunctionMsgBox(RegExpTest("is. "IS1 is2 IS3 is4")) Q. regEx. Can u write a sample code of Descriptive progamming for yahoo login form? Ans: This is the code for Yahoo Photos Website you can do the same for the yahoo by changing the values in the required places. retStr = retStr & "Email alias is: " & oMatch.". RetStr = RetStr & "Match found at position " RetStr = RetStr & Match.*"). Set Matches = regEx.Execute(strng) ' Execute search.CODE: Browser("title:=Yahoo! Photos*.set "srinivas" Browser("title:=Yahoo! Photos*. Thanks in Advance. ' The Match object is the entire match . Can you please send those documents. Function RegExpTest(patrn.Execute(inpStr) ' Get the first item in the Matches collection Set oMatch = oMatches(0) ' Create the results string.*").WebButton("name:=Sign In"). Match. regEx.Pattern = "(w+)@(w+). If you have any documents related to "Descriptive Programming".*").dragon@xyzzy.The following code illustrates how to obtain a SubMatches collection from a regular expression search and how to access its individual members: Function SubMatchTest(inpStr) Dim oRe.WebEdit("name:=passwd").(w+)" ' Get the Matches collection Set oMatches = oRe. oMatches Set oRe = New RegExp ' Look for an e-mail address (not a perfect RegExp) oRe.*"). Can we execute winrunner TSL in QTP? .Global = True ' Set global applicability. oMatch. SubMatches(1)' xyzzy SubMatchTest = retStrEnd FunctionMsgBox(SubMatchTest("Please send mail to email@example.com OR Hi Srinivas.set "test"Browser("title:=Yahoo! Photos*. strng) Dim regEx.*").com retStr = "Email address is: " & oMatch & vbNewline ' Get the sub-matched parts of the address.com. Match Value is '" RetStr = RetStr & Match.Value & "'.page("title:=Yahoo! Photos*. Prasanna Laxmi Q.FirstIndex & ".IgnoreCase = True ' Set case insensitivity.*").WebEdit("name:=login").
TRUE. Can we put checkpoint to text which is already been parameterized? Ans: Yes. 0. example: TSLTest.Ans: Yes we can execute TSL SCRIPTS IN QTP. Ist execute the script in WR then save it in a corresponding folder.RunTestEx TestPath . Q. So object1 in Action1 is different from the same object1 in Action2. Q. WE CAN EXICUTE TSL IN QTP OR yes.RunTestEx statement in VBScript in the Expert View. OR HI.we can record and save scripts in wr after we run it .Go to QTP MENU BAR INSERT -----.save corresponding gui file also then in qtp:insert menu-select call to wr-test option(for tests) and then browse the wr file test path click on ok and close it this will insert a test script in qtp as TSL Test.runtestEx"tsl btest path". describe object repository modes with example Ans: QTP supports 2 types of object repository modes. Parameters ].t/f the first T/L isboolean value true for -run wr minimised second T/F isclose wr after test run similarly we can call compile modulles of wr in qtp OR You can insert a call to a WinRunner test using the Call to WinRunner Test dialog box or TSLTest.RunTestEx "C:WinRunnerTestsbasic_flight". So it is wastage .CALLTO WR. 1. RunMinimized. for each action a seperate object repository file is created. "MyValue" The RunTestEx method has the following syntax: TSLTest. Per-Action repository mode: In this. YES.t/f. CloseApp [ .
. Here if the object changes. 2. Decision of . It doesnt return any values.TSR FILE. then we need to update a single object repository file. OR HOW DO YOU READ A . so this should be done in a function and not an action.e. i MEAN HOW DO YOU READ THE SCRIPT . Action can have a object repository associated with it while a function can't. when the object does not change frequently and a few actions are associated with the test. So Object1 is action1 is same for Action2. Shared object repository: In this. because all the objects are saved at one place. then we need to changed each of the object repository. If the functionality is not about any automation script i. This mode is most useful. OR Action is a thing specific to QTP while functions are a generic thing which is a feature of VB Scripting. A function is just lines of code with some/none parameters and a single return value while an action can have more than one output parameters. dO YOU OPEN THE . common object repository file can be used for muliple actions and multile tests. It returns single value. Function: Function collection of Vb statements in QTP. Difference between action and function Ans: Action: Action is a collection of Vb statements in QTP. And each object repository file is saved when a test is saved. Code specific to QTP can also be put into an function using DP..TSR FILE IN NOTEPAD ELSE.of memory. now this is something not specific to QTP and can be done on pure VB Script. If the object changes in the application. Where to use function or action: Well answer depends on the scenario. If you want to use the OR feature then you have to go for Action only. a function like getting a string between to specific characters. CHEERS CHAKRI Q.
bhadra Q.P Q. because qtp is mercury interactive product and ration robot is other product. Hi please give me the steps to record Java application in QTP 8..2? Please give detailed steps? Ans: 1)First install java-addin along with QTP.or click F3. . Hi All. Regards... qtp supports winrunner scripts.. Q. for more details u can go to help menu in qtp tool bhadra Q. In Qtp how to get text available in html frame. Thanks Senthilkumar Ans: In QTP.using function/action depends on what any one would be comfortable using in a given situation. The script will come as. 2)Set the reqired properties for objects to identify the objects in Tools.>Object identification(Mandatory and assistive properties) 3)Test--->Click Record-->Select javaoption. does qtp supports rational developed scripts Ans: hi upto my knowledge it's not possible. hi friends plz tell me the script to stop an iteration and start from the next iteration? Ans: hi with using exitglobaliteration function you achieve that. There is function called GetRoproperty("innertext") by using this u will get the innertext of any particular feature. Shiva.
(If ther is a better way pls let me know) Q. Iteration range]. How can I add an action (external action) programmatically? Ans: You can add action using the command: RUN ACTION action name.Select"" OR Hi Santosh. There are tabs.value Next Q.10.1. Hi. How can i get all values of a single column into an excel sheet(in different rows)?? Ans: DataTable.GetRowCount : Returns the total number of rows in the longest column in the first sheet in the run-time Data Table (global sheet).Javalist("").to call the objects associated with that called actiuon. I have added all the properties to Mandatory.pattern="[1-9][0-9][0-9]" 'This matches with only 3-digit numbers reg. Please guide Q. buttons in the application . Still it is not recording the Java application. Q.JavaInternalframe(""). How can i update data into MYSQL database through QTP . They must be different. which are not recorded! in QTP The other way is if i click on Low level recording then it records all the things.[Iteration name.444") For each n in m msgbox n.206. there are two Properties to be added-1)Mandatory 2) Assistive.execute("This is 100. In Object Identification.Javawindow("").global=true Set m=reg. How do we make regular expression of a 3 digit number? Ans: If the task is to find a three digit number in given input the following code works Set reg=new regexp reg. But its a bit of confusion that to whom i should assign the properties. using a for loop we can get the necessary data. Which i think is not a rite way. But it won't work untill you call the copy of external action from the menue bar. check boxes. First of all we cannot add the same properties in both.
When you are using QTP first add . Note : after adding the .Ans: Write steps to connect with the database in Expert View.net add-in available with mercury site ( free) and then start doing . 1)configure first two tab of ODBC settings to the respective SQL server 2)QTP->Insert Database checkpoint and click on create button-> and config the database to which u need to run the query. how do i automate the . Ans: Hi. For windows based give the path of the . For web based application give the path of the url in the web tab of the record and run settings. Control pannel->Admin tools->ODBC.. You are not clear in your question. and do the rest lik all other web applications .exe file in the windows tab of the recrord and run settings and do the rest of the work like any other application. Thxs Sanjeev OR can u tell me how to get the connection done..net add-in you amy not find the . once you are connected with the database you can update the data.net application?and give complete procedure in detail.net tab in the record and run settins. i'm not able to connect to database from expert view Q.. OR Hi..define your database and tables. First tell me whether it is the window based or web based application.
set dbconnect= createobject("ADODB>connection").R Set Apps=createobject("quicktest. OR Just write your code in a . Data Driven frame work key board frame work (1) &(2) both are know as Hybrid frame work OR Hi my Friends .vbs" file.Add the following code in your test (in expert view obviously)ExecuteFile "your VBS file path"for exampleExecuteFile "c:My projectValidationQTPLibrariesMyLybrary.Resources. Thank you very much Q.( create DSN from control panel). a simple text file can workExecuteFile "c:My projectValidationQTPLibrariesMyLybrary.objectrepositorypath="ObjectRepositoryPath" Set Apps=nothing Regards.regards Srikanth N.txt" Q. how do we make function libraries? Ans: We can make function libraries by wirting VB script functions in the ".vbs"ExecuteFile "[QualityCenter] FolderBPT ResourcesLibrariesMyLybrary. and checkdbcfonnection. 2. Q.open is true or not.VBS file in any text editor.vbs"or. Q. . How do I connect to database (Access in my case) from QTP? Ans: yes u can connect through DSN. Satish OR your answer is simply superb.Settings. how many types of automation frame works are there? Ans: hi.Test. There 3 types of Automation frame works 1. We can reuse this vbs functions in the QTP by adding this file in the settings. How do we add object repository dynamically?(During runtime) Ans: Hi you can use the following code to dynamically load the O.And create bd copnnective object like.application") Apps. 3.
1:-record and play back Framework 2:-Moduler Framework 3:-Business Function framework 4:-action Driven Framework 5:-data driven Framework 6:-keyword driven Framework 7:. hybrid frame work is combination of above four.key word driven frame work(Built in QTP) 3. Q.for more inforamtion u can mai me at Manubasur1@rediffmail.Data driven frame work 4. 1. This depend upon the technique and requirement u have . You can update a shared object repository by merging local object repositories associated with actions in one or more tests into the shared object repository.Test library Architecture Frame work. You can also use this tool to merge objects from the local object repository of one or more actions into a shared object repository.Test script modular Frame work (linear modular Frame work) 2. . The objects that are merged from the local object repositories are then available to any actions that use that shared object repository in any tests. Four types of Auto mation frame works avilable. how object repository can be merged? Ans: QuickTest Professional enables you to merge two shared object repositories into a single shared object repository using the Object Repository Merge Tool.There are many kinds of framework.hybrid Framework and many more are there .com. OR Hi. any issues u can ask.
mdb).. 9)check on the "Change the default database in order to select the database" for which you want to create DSN. How to execute a batch of scripts in QTP? Ans: open test batch runner tool start--> allprograms-->QTP-->Tools-->testbatch runner . 6)click on next 7)select the radio button with sql server authentication with login username and password login:sa .. Q.. Q..Password:sql123 (default) 8)Click on Next .. 2)Click on Add 3)Select the driver you want to setup.. then ok..Give the server name . While creating a database checkpoint "click on the Connection string" and select the DSN name which was created recently. 4)suppose your database is in Ms-Access select "Microsoft acess Driver(*. OR Can you please tell me how to connect to the Database where I am using IBM DB2. Do the following 1)go to Control panel and in that "administrative tools" and click on "ODBC Data Source". How to create a new datasource (DSN) in QTP for database checkpoints? Ans: Hi. The action then uses the objects from the updated shared object repository. thus your dsn is created.. 10)click on Next /finish. if the username and password is correct then it connects otherwise it displays an error message.server name is the name (system nameSQLEXPRESS)which it displays when you connect to the sql server where you have server autentication.. the objects in the local object repository for the selected action are moved to the target shared object repository.and if it is in "Ms Sql Server" select " SQL Server" and click on "finish" (for instance take ur database is in Ms Sql server) 5)Give the dsn name in the name field and description is optional.In the merge process.
SystemUtil.xls" Cheers Suresh Babu. how to idetify the activex edit box in the descriptive programming Ans: WebEdit("name:=name of the edit box") if the name of the edit box is given in the above code we can access the edit box Q. How to identify an object whose name changes with time?(that includes seconds also) Ans: use regular expression for the object name Q.add QTP scipts run scripts.L OR Hi. in addtion to this u need to enble check box to allow other mercury products to run tests and components in run options from tools menu OR hi u can use test batch runner from tools option or u can create one action then go to where u created the action(i mean source) there u can find action0. it is like call to existing action bhadra Q. To open Excel in QTP following is the Script SystemUtil. you can open Excel in QTP by using the following command.Run"path of the file" Cheers Suresh Babu. open that file in notepad there u can write which actions you want to execute sequentially.Run"c:Document and settingDesktopxyz. How to open Exceel sheet using QTP script? Ans: Hi.L OR .
fields(j) & " next msg = msg & vbcrlf rsExcel.fields. sheet name is test ActiveCon = "Provider=Microsoft.4.name & " next msg = msg & vbcrlf msg = msg & vbcrlf do while not rsExcel.Jet.xls" MyWorkSheet = "[test$]" 'special syntax.""" set rsExcel = CreateObject("ADODB.ActiveConnection = ActiveCon rsExcel. 2006 10:03:58 #3 Member Since: April 2006 Total Comments: 1 wbe8st Hi.LockType = 1 rsExcel.fields(j).0.IMEX=1.movenext loop rsExcel.0.xls" Cheers Suresh Babu.Recordset") rsExcel.Data Source=" ActiveCon = ActiveCon & Filename ActiveCon = ActiveCon & ".eof for j = 0 to rsExcel.count -1 msg = msg & rsExcel.HDR=NO.Open "Select * from " & MyWorkSheet msg = "" for j = 0 to rsExcel. To open Excel in QTP following is the Script SystemUtil.Hi.Run"c:Document and settingDesktopxyz.Extended Properties=""Excel 8. RE: How to open Exceel sheet using QTP script? do you want to open your Excel sheet as a database? here we go: Filename = "c:x.fields.count -1 msg = msg & rsExcel.OLEDB.close " " .L November 14.
ritika Q.2 Ans: we can the run batch process through test batch runner go to test batch runner ->click test bach runner->click add button ->add the test script and run the scripts OR Running a Test Batch You can use Test Batch Runner to run several tests in succession. In this case if we want to use 1 value at a time then how do we separate that value from the entire list . analog recording. . thanks in advance. how to place values in QTP data table from weblist at run time? Ans: Using output values we can view the values that applications are taking during run time OR hi komali." .msgbox msg Q. I hope you got my point. Ans: When we need to record Key board or mouse events go for analog recording The Test->Analog Recording button is activated only while recording So click Record first and then go for the Analog Recording Then you will get a Pop-Up window.0 includes the facility to remove (or add) blocks of comments Q. How to remove block comments Ans: QTP 9. The results for each test are stored in their default location. how to run batch process in qtp 8. How to record the scripts using the lowlevel recording. using output values all the values of a weblist are stored in a single cell of the datatable. Click on Start Analog Record The script appears to be single line This is the samething with Lowlevel Recording Where we can see all the statements concerned to the actions Q. The values are seperated by ".
Notes: To enable Test Batch Runner to run tests. 4. Select a test you want to include in the test batch list and click Open. To set up and run a test batch: 1. If you want to include tests saved in Quality Center in the batch run. you must first save the tests in the file system. each test selected is added to the bottom of the list. The Test Batch Runner dialog box opens. 2. Choose Programs > QuickTest Professional > Tools > Test Batch Runner from the Start menu. Test Batch Runner can be used only with tests located in the file system. For more information. you can set up a list of tests and save the list as an .Using Test Batch Runner. To insert a test at another point in the list. you must select Allow other Mercury products to run tests and components in the Run tab of the Options dialog box. it is added above the selected test. When you add the test. see Setting Global Testing Options. By default. or choose Batch > Remove. select the test that is to precede the test you would like to add. . Click the Add button or choose Batch > Add. You can also choose to include or exclude a test in your batch list from running during a batch run. The Open Test dialog box opens. so that you can easily run the same batch of tests again. To remove a test from the list. The test is added to the list.mtb file. 3. select it and click the Remove button. Repeat step 3 for each test you want to include in the list. Components cannot be used with Test Batch Runner. at another time. You can stop a test batch run at any time by clicking the Stop button.
OR I would like to know is there any function to be written to include 2 different Object repository. you can view the results for each test in its default test results folder (<test folder>res#report). click the Save button. see Analyzing Test Results.8.If you want to include a test in the list. it opens and the tests run sequence begins. For more information about Test Results. How to use Regular Expression in QTP?Woluld appreciate if you explain with an example? . or choose File > Save.mtb. How To run Shared object repository files? in QTP ? Ans: For QTP . Once you have saved a test with per-action type. you cannot change it to shared.2 Click on Test->Settings. click the Run button or choose Batch > Run. Click on Resources Tab At the right bottom. When you are ready to run your test batch. Once the batch run is complete. object repository can be chosen as per-action or shared. but you do not want the test to be run during the next batch run. OR You will need to upgrade to QTP 9. OR Click on Test->Settings Click on Resources Tab At the right-bottom change object repository type from per-action to shared. If yes can i have the script. 5. If QuickTest is not already open. Q. Once you have saved a test script with per-action type of object repository you cannot change it to shared. The file extension is .0 to maintain separate object repositories Q. If you want to save the batch list. 6. and enter a name for the list. clear the check box next to the test name.
It'll be of great help. "Action1". You can use the same syntext that you use for the global sheet For example Import. Suppose an object is recognised by qtp with index 45 in OR.* to make any text acceptable in this property../filename. more you'll be comfortable with this.DataSheet "c:/..xls.. Similarly if we want to regularise characters in suppose text property. . just go thru the "Quick Test Professional Help" Q... "Global". "Global" Import.. The more you do R&D on this topic. Insert Bitmap. Insert Accessibility Ans: An output value is a step in which one or more values are captured at a specific point in your test or component and stored for the duration of the run session.xls./filename.DataSheet "c:/. This can change everytime a new instance of IE is created. use .Ans: QTP comes with extensive help for regular expressions with many examples.how and where to implement this.xls. You can import any sheet from any action. Try to regularise as many expressions as you can using reference material given by QTP. OR You can Import local sheet by Importing the sheet from excel sheet.DataSheet "c:/. I hope this helps you to start. the expression will be [0-9][0-9] Now the question arises . best approach to import all the required sheet at same time at the begining of the test. how to work with file system objects? Ans: Hi.. Its advisable to use regular expressions at such places.. The values can later be used as input at a different point in the run session. "Source sheet name". "Action1" Q. How to work with Insert Output Value../filename. "Destination sheet name" Import. Still giving you a very broad perspective of it Suppose we want to regularise an expression which has only digits and can contain a maximum of 2 digits.
The saved Bitmap can also be modified.1 of the W3C Web . While creating a test or component.BitMap Checkpoints You can check an area of a Web page or application as a bitmap. If there are differences. QuickTest captures a bitmap of the actual object and displays it with the expected bitmap in the details portion of the Test Results window. To create a bitmap checkpoint while recording: 1 Choose Insert > Checkpoint > Bitmap Checkpoint or click the arrow beside the Insert Checkpoint button and choose Bitmap Checkpoint. By comparing the two bitmaps (expected and actual). You can also choose to save only the selected area of the object with your test or component in order to save disk space. For example. you specify the area you want to check by selecting an object. guideline 1. Accessiblity Checkpoint: Accessibility Checkpoint identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines. QuickTest compares the object or selected area of the object currently displayed on the Web page or application with the bitmap stored when the test or component was recorded. You can check an entire object or any area within an object. QuickTest captures the specified object as a bitmap. When you run the test or component. and inserts a checkpoint in the test or component.
if there is no unique property in the default properties then qtp checks in the assitive properties and it will give an warning message int he test results window like i learned this object with this assistive property if u want to add that property to ur default property then u can add. Action is local per specific action only u can use that data. Q. do in fact have this tag.Content Accessibility Guidelines requires you to provide a text equivalent for every non-text element. Ans: for i=1 to 9 step 1 dialog("login"). if qtp is not recording any application what the problem is? Ans: Check your tools record and run settings properly(web.windows) OR you need to verify whether the add-in which supports the application is installed in QTP or not. enable this property then while running.set datatable("columname". Q. Ans: There are two type of data: Global and Action1 Global is like public any where you can access. if the the two object have same class then how qtp will find the object Ans: ur question is 2 ojects have same default properties then how qtp recognizes to those objects right if this is the question.dtglobalsheet) dialog("login").dtglobalsheet) Next Q. You can add an Alt property check to check whether objects that require the Alt property under this guideline. Q. i want code for datadriven testing for 10 iterations in qtp. Action .winedit("username"). then if u want to know the unique property that is what developers defined to those objects while coading just spy on those objects to see what properties the object have then select the unique property and add that property and also in qtp there is one properrty called smart identification. ex take usename and pwd .set datatable("columname".winedit("Password"). In QTP how many types of data tables are available and explain the same.
do u? OR Only with Record and Playback it wont be doing automation testing in QTP. It's not mandate that one should mastered in Vb script to workwith QTP. if you want to excel in QTP.OR two types 1. keyword driven approach is good. by using this we can execute OR But The silent test runner will not run scripts from the command line? OR . Is there a way to run QTP scripts from commandline without opening QTP Ans: We can run qtp scripts without opening the qtp. Have a try and feel the difference. it should must of Vbscript knowledge. I think VBscript knowledge is a must. for a starter .run time data table 2. is it necessary to learn VB script to work with QTP or we can manage with keword driven Ans: Hi. Prasad OR Well.It is mostly user friendly and for good results we need to have basic VB or concepts which will suffice.design time data table Q. but you don't want to stop here. in QTP they have provided one option called the silent test runner. Q. Is QTP case sensitive Ans: No QTP is not case sensitive Q. other than that enchancing the script with • • • • calling external files like Vbscript or DLL's using Descriptive Programming without using Object Repository getting the runtime values from External or Data Table or Flat files using Vbscript files to do Back-end testing. connecting the Database and executing the Queries as above enchancing the script.
This will enable QTP to identify java objects. OR Hi Thanks for the answer I have installed java plugin object and have tried to give a call to the java object tree I just want to expand the Tree node please can you send a small sample code which tests the Window explorer regards Prashant Q.tsr (Object Repository) File to an XML file? Ans: to my knowledge there is no such tool that does it. but you might have to apply your own logic through descriptive programming. Is there any way to convert . Q. Local data sheet(For each script u can create ur own data table) 2. there is no single answer i can give.vbs file from command Prompt Q.qantom. Global datasheet(For the entire application u can use only one global datasheet. Please explain how to test JAVA tree objects Ans: For testing Java Objects you need to install an additional Java Plugin.) Q. Is there any options available to handle more than one DataTable Simultaneously in QTP Ans: Datatable is divided into two types. This should also solve the java tree problem. Please provide complete walk through for creating the Shared Object repository in QTP . in that specify your test path name.org/ . 1. if you already have installed the java plug-in and asking for a method to test java tree objects. OR There is a tool by name qantom try this site http://www.vbs>" First create .U can run QTP script from the command line wscript "<filepath. U can run only .vbs file .
. e).standard checkpoint: it will useful to check the object properties as well as works as a. d).Ans: One can create a shared Object repository path in two ways either manually or programmatically 1..An object checkpoint (Standard) checks the values of an object on an Application. b)... g).A text checkpoint checks that a text string is displayed in the appropriate place on an Application. What are checkpoints in QTP and its importance. a).Application") 'creating an object for QTP App..pagecheckpoint b.Resources.An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.A table checkpoint checks information within a table on a Application. Dim App 'As Application Set App = CreateObject("QuickTest.Test.A page checkpoint checks the characteristics of an Application. c).Settings.ObjectRepositoryPath = "Specify the or path here" .table checkpoint . You can add eight types of checkpoints to your test for standard web objects using QTP.satish Q. h). Test->Settings->Resources->Object Repository Type->Shared and can specify the required path there 2. (Repeat) Ans: A checkpoint verifies that expected information is displayed in an Application while the test is running.. f).An image checkpoint checks the values of an image on an Application. A database checkpoint checks the contents of databases accessed by your web site OR hi in qtp 8.2 we have 8 checkpoints which works as 11 checkpoints 1.imagecheckpoint c.An Accessibility checkpoint checks the web page for Section 508 compliance.
textcheckpoint: it will useful tocheck text on application(web & windows applications) 3.xmlcheckpoint: for xml pages and frames. LR and QTP? Ans: Winrunner 8..bitmap checkpoint:to check the bitmaps 6..where as in qtp we can ...textareacheckpoint: it will useful to check text area on applibcation(windows applications) 4.. OR Hi Everybody. TD..siebel..0 Test Director 8..accessibility checkpoint: for web applications only.0 command is clt+m 2) In winrunner there is no xml operations to test.databasecheckpoint: it will useful to check the database 5.5(not sure) QTP 9...by that it is easy understandable. What are the latest versions of Winrunner.0 OR .net. more checkpoints in qtp Active Screen Future is there by that while preparing script that perticular line shows proper Screen shot in Active Screen by that .2. internal data tables are there its very usefull it support people soft..xmlcheckpoint(File): to check the xml files-------i don't know clearly bhadra Q.. Q..i don't know clearly 8...6 Loarunner 8. what are the adwanteges in qtp then winrunner Ans: 1)Difference in winrunner there is no command to comment the block where is in qtp9..complex je22 and more results also it shows in tree view . is the web application follows www consortium rules of section 508 or not.it will be is understand for updating scripts. In Qtp more features are available compared to winrunner they are. 7.
Like .if previous release of application has been changed.0 (Quality Center) Q. OR Devolpement means performing the transaction on application enhaced means inserting the cheekpoints or writeing conduction statements in the script and run the script and enhace the results with actual and expected OR in qtp developing a basic script means first of all we r writing code or test script that which performs basic operations apart from testing functionality like issues. Thank you very much again.so we enhence the scripts.but we want to run our expected scripts. i would really appreciate if you give me this answer with real example. Calling the external files like VBs file 4. Inserting Pass or Fail statement 5.then the script required to run that application also changes.the script is developed for changing OR Hi this is kalpesh prajapati Thank you very much manas. then we enhance it by inserting checkpoints or using conditional statements/loops/methods/synchronization points/parametrization etc as most of the companies r following scripting or descriptive programing techniques none is using the concept of chekpoints we can use methods and condintional statements/loops to test the aut OR 1. what do you mean by develope and enhanced script in qtp? Ans: after running or navigating an application vb script is recorded.For TD the latest version is Test Director 8.txt files. Giving with loop constraints 3.VBS and . Using the Data Table or Flat files for the passing the runtime values Q. Inserting the Checkpoints 2. what function do we use to call function directly? Ans: You can use "Call" function to call any function with the script or from .that is actual process or propetries of the application.
Q.Call ABC(Parameters) ABC = Function name Q.objPropWebEditPwd uid="abc" pwd="123" . OR file system object is a qtp predefined object that which can allow user to access to external files and allows to perform different oprations like reading data from files. what is descriptive programming in qtp?(Repeat) Ans: It refers to creating a script from business requirement . writing/appending data to file.objPropPage Dim objPropImageLogin.objPropWebEditUsrName. what is a Input parameter. Q. OR Descriptive programming is a technique by which we can perform actions on objects which are not in the object repository. opening/creating/removing a file etc by using different methods of file system object. We create an object which is called 'file system object' which contains flat files.SO if the application contains any Activex objects QTP identifies those using this ActiveX control. The below example uses descriptive programming to login to an application by providing the user id and pwd There are two ways in which descriptive programming can be used : * By creating properties collection object Dim uid. what is a active x control in QTP Ans: QTP Provides an option to include Add-Ins/Controls according to our application. output parameter in QTP? Ans: Input parameter can be used with functions and procedures that which can be used to pass the input values from the calling test to perform the function/procedure's action output parameter can be used with functions to return the value to main/calling test Q.pwd Dim objPropBrowser. what is a file system object in QTP Ans: Vbscript does not recognises or read the flat files like notepads etc. From that file system object we can retrieve values and can apply on test.
Set Set Set Set Set
objPropBrowser = Description.Create objPropPage = Description.Create objPropImageLogin = Description.Create objPropWebEditUsrName = Description.Create objPropWebEditPwd = Description.Create
objPropBrowser("name").value="Login" objPropBrowser("title").value="Login" 'objPropPage("name").value="root" objPropPage("url").value="url link" objPropPage("title").value="Login" objPropWebEditUsrName("name").value="username" objPropWebEditUsrName("type").value="text" objPropWebEditPwd("name").value="password" objPropWebEditPwd("type").value="password" objPropImageLogin("name").value="Image" objPropImageLogin("image type").value="Image Link" objPropImageLogin("alt").value="Login" objPropImageLogin("abs_x").value="510" objPropImageLogin("abs_y").value="334" objPropImageLogin("x").value="510" objPropImageLogin("y").value="241" Browser(objPropBrowser).Page(objPropPage).WebEdit(objPropWebEditUsrName).Click Browser(objPropBrowser).Page(objPropPage).WebEdit(objPropWebEditUsrName). Set uid Browser(objPropBrowser).Page(objPropPage).WebEdit(objPropWebEditPwd). Set pwd 'Browser(objPropBrowser).Page(objPropPage).WebEdit(objPropWebEditUsrName). Set "ujwal" 'Browser(objPropBrowser).Page(objPropPage).WebEdit(objPropWebEditPwd). Set "password" Browser(objPropBrowser).Page(objPropPage).Image(objPropImageLogin).Click * By giving description in the from of string arguments. Dim uid,pwd uid="abc" pwd="123" Browser("title:=Login","name:=Login").Page("title:=Login").WebEdit("name:=username","typ e:=text").Set uid Browser("title:=Login","name:=Login").Page("title:=Login").WebEdit("name:=password","typ e:=password").Set pwd Browser("title:=Login","name:=Login").Image("name:=Image","file name:=b-login.gif").Click Q. What is Object Repositiry? What is the use of it in recording? Ans: hi samuel,
Object repository in qtp is like a storage place or a central repsitory where it stores the properties of all the objects when u reocrd the script,and later when u execute the script qtp checks that the objects in the application match the objects in the object repository and executes it, if both the objects matches the test will pass, if it cannot identify the object or there is a mismatch the script will fail. Object repository is same like a GUI map in winrunner where u have to make the tool capture the properties of object where as in QTP object repository automatically does that for u. If i am wrong or some enhancement is needed correct me, thanks, aparna. Q. what is object spy and object identification? Ans: Object Spy:If you need to know the Properties of Field or an object(Edit Box) in your application you may click on Object Spy and select the object for which the properties are to be known...We generally use Object Spy in order to compare the properties of an object in the application with respect to the Test script. Object Identification:Object identification is a section where you customise all your properties by which QTP checks for the Mandatory and Assistive Properties of an object. Pls let me know if you need more help......... Q. What is QTP environmental variable? Ans: Environment variable is a variable with their corresponding value. Quick Test can insert a value from list of environment variable list. Throughout the test run, the value of an environment variable remains the same, regardless of the number of iterations, unless you change the value of the variable programmatically in your script. There are three types of environment variables:
• • •
User-Defined Internal—variables that you define within the test. These variables are saved with the test and are accessible only within the test in which they were defined. User-Defined External—variables that you predefine in the active external environment variables file. You can create as many files as you want and select an appropriate file for each test, or change files for each test run. Built-in—variables that represent information about the test and the computer on which the test is run, such as Test path and Operating system. These variables are accessible from all tests and components, and are designated as read-only.
Q. what is step generator? Ans: Hi Step Generator is used to insert a statement(function ro method) of a particular object which is available in the Object Repository Q. what is sync point in QTP? and how to insert sync point in QTP can anybody tell me step by step
Ans: hi you mean sychronization point it means waiting property till page is loaded. Q. What is the meaning of Context sensitive? Ans: hi, Context sensitive recording means we can perform the events on standard GUI objects. Q. What is the use of Output Values in QTP Ans: Out values are created inorder to run the script without any fail for the dynamically changing values. for example if u take the flight application when you parameterize the test with different sets of data in the data table, the price changes for each trip so in order to identify the price change and to run the script accordingly we create output values. After running the script u can see the output values(price)for different destinations in the run time data table. thanks, aparna.(466 Questions r over) Q. can anyone tell me wats the advantage of using a third party Tool like QTP for testing the SAP application? Is the inbuilt tool of SAP VIz eCATT does all the testing that are done through QTP? Tell me the Advantage of using QTP in SAP applications? Ans: If SAP is the only technology for the business and which database using by u(if more than one database using) then QTP will supports all the databases. QTP is having more felixibility to write a script for any technology by using the add-ins. ie we can write the scripts for sap or any web based application and it is more user friendly. So we can fine more man power and highly skilled resource will be available. Q. Hello, I'm using QTP 8.2. and I want to test an Application which is designed with Oracle Forms 10 g. Before installing the Oracle Addin for QTP 8.2. I was able to open the Application with QTP and IExplorer 6.0. After Installing the Oracle Addin for QTP 8.2. I wasn't able to open the Application neither with QTP nor ÍExplorer. I only installed the Addin. I haven't installed any upgrade or patch! The following failure is shown in the JAVA Console after starting the application: java.lang.VerifyError: (class: oracle/forms/net/MessageQueue, method: getAt signature: (I)Ljava/lang/Object;) Inconsistent stack height 0 != 1
createRunform(Unknown Source) at oracle. Open the registrykey: HKEY_LOCAL_MACHINESOFTWAREMercury InteractiveJavaAgentOracle Add-in for QuickTest 2. OR Hello.applet.Runform.engine.net.forms.startRunform(Unknown Source) at oracle. The other solution won't work.start(Unknown Source) at sun.engine.forms.engine. OR . Open the registrykey:Â HKEY_LOCAL_MACHINESoftwareMercury InteractiveJavaAgent 2.forms.AppletPanel.HTTPConnection. In the ‘Oracle Add-in for QuickTest’ key change the value of ‘Enabled’ from 1 to 0 This should solve your problem.forms.forms.init(Unknown Source) at oracle. this one does. In the JavaAgent key change the value of Support Enabled from 1 to 0 This should solve your problem.Main. Solution: 1.FormsDispatcher.run(Unknown Source) at java.Runform.initConnection(Unknown Source) at oracle.FormsDispatcher.Thread.at oracle. I adjusted the scripts and now it works well.forms. I experienced some problems with my existing scripts(recorded with the 6.initConnection(Unknown Source) at oracle.engine.5 Oracle add-in) because some objects aren’t recognized properly anymore.engine.Main.run(Unknown Source) It would be more than nice if someone could help me with this problem Ans: This problem occurs due to a conflict between java and oracle enabled support 1.forms.engine.lang.(Unknown Source) at oracle.
Set "Admin" It is not working. .WebEdit(login). login = "username" Browser("Welcome: Mercury Tours").2 is able to recognize. To fix the problem. After modifying the value for Enabled from 1 to 0.x) to the QTP Oracle Add-in 8. Hi All. I was receiving the same error but when I disabled the Oracle Add-in I could not record in QTP using that specific application. I went out on the Mercury Website to their Knowledge Base and found a "Patch" which adds support for Oracle Forms 10g/9i (also known as Oracle Forms 9. and qtp 8. I tried to run the same sort of script in my system I didn’t find any errors. my Object name is "Login".2.page("P1").The only problem with this fix is if you are really wanting to use the Oracle Add-in with your application the suggested fix "disables" the Oracle Add-in.but I found a small syntax error. In my case. my code is: browser("B1"). My application is built with oracle 10g forms and java.Even I got the same problem.page("P1"). After installing java and oracle add-ins my application could not open. OR Hi Frns. Maybe this will help.Set "Admin" CAN I USE IT LIKE THIS? myObj = "Login" browser("B1").WenEdit (myObj). Thanks to all.WebEdit("Login"). How to do in this situation? Ans: Hi I don't find any problem with your script. but you have to request that they send it to you. Niruv Q.Set "xyz" Thanks Nag OR Hi There is nothing wrong with your script. It is Patch # QTPORACLE82P6102. then Could work on applicaiton.Page("Welcome: Mercury Tours"). Thanks for forum.
WenEdit (myObj). You try this one myObj("name"). if you start programming in this way .value="Login" browser("B1").value="Login" browser("B1"). Nag OR There are 2 problems with your script 1) rather than just specifying myObj = "Login" it is more robust if ur code would have been like this myobj= "name:= Login" this is called descriptive programming .Set "Admin" . u dont even need an entry in the OR.page("P1").myObj = "Login" browser("B1"). 2) the second flaw i think was a typo in your code the web edit box is speeled as wenedit. OR Hi.page("P1").WenEdit (myObj).wherever the object has been used. this wil make your overall script light and easier to load however execution time is slightly increased. here we are telling the QTP to find an Webedit box which has the Name property value which is equal to Logine.WenEdit (myObj). By renaming the object name in the OR would be more convinient as it would be reflected in all ur scripts .page("P1"). at its own.Set "Admin" Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â OR You try this one also myObj("text").Set "Admin" It has to be WinEdit insted of WenEdit. Keep smiling OR It can also be done by renaming the object name in ur OR. try deleting this entry in OR and run the scipt.
3. . Ok Bye If you have any query mail me Q. Regards.)If my data base contains only 50 users. vivek(Loadrunner) Ans: 1. 2.Selecting 100 Vusers is a valid case?. Vivek it is a better practice that for any specific role(User Type) you may put the data in an XLS and then call that XLS in the program.Yes the same script is running. 3. then it's work definately. Ans .and i the run script. OR Hi Vivek.Currently i am using Load runner 8. My question is : 1. OR 1) it depends on your script settings.Use For loop for executing same script for 100 times. If you want to login as 100 different users then you have to paramterize the script and then pass 100 users in an excel. Hi I am new to load testing .It is not valid case.)If my data base contains only 50 users. 2.In load runner Controller i have selected 100 Vusers.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording Ans . 3) This is related to 1. i have recorded a script for login screen with some UID/PWD.No it is not necessary. Not necessary.Selecting 100 Vusers is a valid case?.is it necessary to enter 100 UID/PWD.)If i have selected 100 Vusers. 2) Again. you can use the script in cyclic manner. As best practice. you may want to have unique type selected for your parameterization.Yes it is a valid case because it id not going to your DB to fetch records as it is only generating the load. 1. if you have selected unique.3.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording. Ans . Check in OR and afterwards delete that OR.Â Note: Check out the property of that object in Object Repository and according to set that value .2.)If i have selected 100 Vusers. this depends on your requirement. If you have 50 users in DB.is it necessary to enter 100 UID/PWD. yes. This will imitate a real life condition.2.
OR If we know the error type we use Recovery Scenario to close the apllication. OR Press cntrl+F3 or for wrun we can kill the process by press the task mgr. Script doesn't run 100 times.close in side the else condition (if you are using an if else condition) 2) if you want to exit the testing Tool for any further use Exit global iteration in the sniipet.. Ans: there are many ways of handling this. Can i Use . Q.IN QTP we write the following snippet what is your target application? is it a web application or client server application for a web application 1) if you want to close the web application on any defect . 3) If i have selected 100 Vusers. i Named them as Text1. how can we terminate the application when we encounter a problem or defect in our application while we running the application in Load Runner.OR Question is : 1) Is the same script runs 100 times for same UID/PWD What I have entered during Recording.Win Runner and QTP. Database doesn't play any role here.. Selecting 100 Vusers is a valid case? If your controller supports 100 vusers you can run with 100 vusers. Text3. that the work of the load runner to look after Regards. 100 Vusers run the same script Concurrently .Text10. click on th process. 2) If my data base contains only 50 users. write a code snippet some thing like this browser("B1"). Text2. I have 10 Edit Boxes in my application.exe and terminate it. is it necessary to enter 100 UID/PWD. select the process wrun. Shaik Q. Now i want to set values in these Text Boxes using Loop Statement. Not required.
set Supposing name is property . for i=0 to 10 *///browser("b1").set "value" &i///* Statment is not write.set "value" &i next ********** Is it acceptable WebEdit("Text"&i) ? I am getting error here.page("p1"). For i=1 to 2 Browser("Welcome: Mercury Tours").Set "name" & i Next OR use descriptive programming in this situation in following way.page("p1").WebEdit(box). Any suggestions? Ans: Hi It is 100% acceptable.WebEdit(name:="Text" & i).page("p1").WebEdit("text" & i).WebEdit("Text" & i).WebEdit("Text" & i). Assuming text is the name property by which QTP is identifying the webedit box: box="name:=Text" & i for i=0 to 10 browser("b1"). You should use descriptive programming like this browser("b1").for i=0 to 10 browser("b1"). The idea is correct but implementation is wrong.Page("Book a Flight: Mercury").set "value" &i next OR Hi.page("p1"). Here is the sample script which runs perfect.
.vbs function we can expand the Tree View . Eg: Window contains 4 tab positions i would like to select 2 tab position at that time how script will come. Expand My Computer View by selecting + Icon b..Activate"text htmt" for i = 1 to 10 step 1 a = inputbox ("Enter the Text") Browser("BrowserName"). 2. "Text2".SwfTab(Tabname).Set Value OR Dim a.2 1. +My Computer when i press + Symbol My Computer will Expand that format like -. While Recording/writing the Script i want to know the " Selecting Tab Position Action Script".. are of "name" property.select "Tab2" 2.My Computer Drive C Drive D At That scenario i will perform these action a."index:=" & i). Ans: QTP not recognizing the Tree View but by writing .WebEdit(name:="Text1".WinListView(SysListView32). plz write the script and send me. Ans: first learn(i.Set a Next Q. In Quick Test Pro 8. How can i generate and select Tree View in Programatically. i Window("Program Manager").e store objects in Object Repository)Â Â the window and Tabs screen ex:Â SwfWindow(WindowName). Ans: 1.next OR Hi If you want to use descriptive programming then inyour case "Test1".Page("p1").Page("PageName"). After expanding i will select Drive D While doing above conditions how script will generate plz let you find ASAP and mail me back.WebEdit("name:=text" &i). The other unique property can be "index" For i=0 to 9 Browser("b1"). Eg: Mycomputer Contains all drives information like as below. Don't forget.
Frame("frmTreeView")..Click Browser("AdminCentre").FireEvent "onmouseover" Browser("AdminCentre").Page("AdminCentre")... for to select one tab we can write script .JavaInternalFrame("Frame name").Frame("frmTreeView").WebElement("ApptixDe moASP")..WebElement("User").select In Java.. window("window name")...Page("AdminCentre")..Frame("frmTreeView").. OracleApplication("Oracle Applications").Cli ck For this you need to cusomize web event recording configuration as set mouse over event on and HTML tag event >> treeview as enabled.WebElement("Customer ").Frame("frmTreeView").Page("AdminCentre")... OR Hi.WebElement("ApptixDe moASP").select In Oracle App..Page("AdminCentre").oracleTabbedRegion("tab name").Click Browser("AdminCentre").JavaTab("Tab name').FireEvent "onmouseover" Browser("AdminCentre"). Venkateshwar Reddy OR 2) If you try to record the treeview in web application QTP will record the nodes you have selected as e. In windowbased app.WebElement("Customer ")..OracleFormWindow("form name").select . Same way enable the HTML tag event >>Tabstrip and start recording will work and you will have auto generated script for tabs. According to ur question my answer is like this.. In your application page 4 tabs are there.Page("AdminCentre").Regards.g ApptixDemoASP >> Customer >> user Browser("AdminCentre")... Javawindow("window name")..wintab("tab name").Frame("frmTreeView").
What is Smart Identification in QTP Ans: Hi. 2006 06:54:39 #2 Member Since: Visitor Total Comments: N/A schittoor RE: What is Smart Identification in QTP Any property of test object is not matching with run time object property. Thanks Chittoor. You will get one worning message in result. Q. it will write an worning to result and execute rest of the steps. You will get one worning message in result. . Record one object from application and modify the object property and execute your script. (By looking in to this we can say that properties of test object is not matching with run-time object) Regards. it will write an worning to result and execute rest of the steps. 2006 03:04:40 #3 Member Since: Visitor Total Comments: N/A manosh RE: What is Smart Identification in QTP Smart Identificaton is applicable for web application only. Navigate to working message in result file and read the note for smart identification. Smart Identification is nothing but. Record one object from application and modify the object property and execute your script.tsr (Object Repository) File to an XML file?(Repeat) Ans: To my knowledge there is no such tool that does it.Q. Note: In the result Cap symbol will added for smart identification.srinivasulu April 14.org/ .qantom. Is there any way to convert . Smart Identificaton is applicable for web application only. if any property of test object is not matching with run time object property. Navigate to working message in result file and read the note for smart identification. OR There is a tool by name qantom try this site http://www. Ravi Konka April 05.
This operation is done by smart identifier and it is displayed in the results section along with one warning message. But. 2006 09:50:39 #5 Member Since: Visitor Total Comments: N/A Shiba Shankar Tripathy RE: What is Smart Identification in QTP Hi. Smart Identification is used by QTP. While identifying an object. QTP tries to match the mandatory properties first. whenever it is unable to identify any object during run time. then it adds assistive properties one by one to identify the object correctly. this smart identification will be idetified the objects. This will be seen only in Results window only not stored in the Object repository. Thanks Shiba December 07. if it couldn't find the object. 2006 09:45:18 #6 Member Since: Visitor Total Comments: N/A Reddy RE: What is Smart Identification in QTP Hi Guys Smart Identification is a mechanism provided by QTP and used for identifying the objects smartly using Base filter properties or Optional filter properties when ever the normal identification fails due to the dynamic changes in the properties of objects. July 17. It's generally used to identify Web elements only. 2006 05:36:30 #4 Member Since: Visitor Total Comments: N/A Madhu RE: What is Smart Identification in QTP Generally object identification is used for to identify the GUI objects in the screen. Where generally the QTP will have to recongnise the componenets at that time smart identification will identify the objects.May 18. I hope u r under stood the ans. Whether this objects is developed with same technology or not. Eg: Application is devloped in JAVA but in places we used some microsoft controls. . When u recording the script automatically the object identifer records the objects in the screen (in winrunner we had GUI map configuration).
In most cases.P.first Q. and uses the SmartIdentification mechanism to try to identify the object. if it is present. 2007 01:40:28 #9 Member Since: Visitor Total Comments: N/A sridhar RE: What is Smart Identification in QTP At the time of web application recording some of the actions are not identified by theÂ QTPÂ because some filter effects are associated with that web pageÂ so it is not identified by the QTP. it is moreflexible.but it is not storing in object repository it stores secretly and Whenever necessaary it will use by the Q. and thus.T.if it is fails then Q. a Smart Identification definitioncan probably help QuickTest identify an object. this description is the simplest way to identifythe object and unless the main properties of the object change.then QuickTest ignores the recorded description.P tries to identifies the objects using maniditory and one by one assistive properties. 2006 03:52:18 #7 Member Since: Visitor Total Comments: N/A g.T. itsearches for an object that matches every one of the property values in thedescription. 2007 02:00:27 #8 Member Since: Visitor Total Comments: N/A Brijendra tiwari RE: What is Smart Identification in QTP When QuickTest uses the recorded description to identify an object. January 19. If QuickTest is unable to find any object that matches the recorded objectdescription. even when therecorded description fails April 16. What is the size of object repository Ans: It depends on system memory .T. smart identification is used for idenfying the objects during execution.P using the smart identification for identifying the test objects during execution with it's base filter and optional filter properties. While the Smart Identification mechanism is more complex. or if it finds more than one object that fits the description.December 10. if configured logically.sri latha RE: What is Smart Identification in QTP hi. at that time we are using smart identification to record such effects Q. this methodwill work.
with QTP 9. the libraries files can be stored with extension ... What is Debug Viewer and how it works in QTP? Ans: The debug viewer pane consists of 3 tabs watch: Enables you to view the current value of any variable or VB script expression that you add to the watch tab . OR Extension are like .In QTP 8. what is the extension for libraries files in QTP Ans: Extension for librare files in QTP: .Tsr---for PerACTION repository and for Shared Object Repository it . There are 2 types of functions built-in & user defined functions.txt.Q.qlf. Built-in functions . .vbs / *.2 or earlier versions. there are 3 supported file formats.. for e..vbs. instr.g. . Map the file to your test through Test Setings.vbs or . What is Object File and Object Repository ? Ans: In object repository QTP stores the information about the object.0 or later. Q. etc User defined functions . There are two types. Q. what is the library function? How do you use it .VBS .vbs OR Hi.txt).. Descriptive programming can be useful to execute on the first build itself.date.and can be implemented on second build for regression testing.txt and . Q. dateadd. 1 shared Object Repository 2 per action Object Repository Object file stores the information of objects. Cstr. ? Ans: It is the library of functions.create a library of functions which you will be using for your automation purpose and save as an external file (*.mtr(Mercury Test repository) QTP | Question 419 of 449 | Print | Send To Friend What is the difference between analog recording and descriptive programming? Ans: The main difference between recording and descriptive programming is: Recording is done only if the first build is released.qfl / *.
Just that whenever any modification is done in the Shared OR. When you continue the run session.variable: During a run session. Explain Exceptional handling 4. Q. the Variables tab displays the current value of all variables that have been recognized up to the last step performed in the run session. command: The Command tab enables you to run a line of script to set or modify the current value of a variable or VBScript object in your function library. and diffenece between Analog and Low level 9. QTP Questions Total Answers and Comments: 8 1. Explain Smart identification 7. Explain Parameterisation 6. it should again be saved otherwise it will not be effected when used later Q. What are the pros and cons of using Shared and Per Action repositories? Ans: Per Action Repository is specific to only one QTP script. QuickTest uses the new value that was set in the command. What are the recording mode in QTP in details. Principles of the QTP 8. Explain Synchronization 5. 2006 01:39:21 mahesh RE: QTP Questions hello Member Since: Visitor could u explain batch runner in qtp and when ur working java application . While Shared Repository can be used in which ever Script desired. Explain Output co-relation 3. What is Batch Runner Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A June 20. Defination of Object repository 2.
there are 2 types 1 shared object repository 2 per action object repositry April 17.js so could u please explain March 27.net it is saved as . your files are in the form html pages.vbs files using HTML in to . so.vbs but in java . 2007 07:48:58 vamsi RE: QTP Questions Member Since: Visitor #2 Total Comments: N/A we can embed . 2007 08:28:03 #5 dev1504 Member Since: Visitor Total Comments: N/A What are the recording mode in QTP in details. April 17. 2007 08:21:27 dev1504 Defination of Object repository Member Since: Visitor #3 Total Comments: N/A Store the information of object.we r writing library files so in this which script is used bcz in .js files. 2007 08:24:39 dev1504 Explain Parameterisation Member Since: Visitor #4 Total Comments: N/A Using Parameterisation when you want to look same functionality with different output. and diffenece between Analog and Low level Use anolog recording when exact mouse coordinate is required & do low level recording when QTP does not recagnize the object . Devendra April 17.
Basically the runtime objects are changing. problem while recording one object in QTP Total Answers and Comments: 3 I am working on Java Based project. medical(e. Can anybody suggest what to do/ how to use Regular Expression there Thanks anr Regards Gautam . Q. QTP is not recognising the object even after adding that object in the OR. But while I am recording.April 17. 2007 06:04:16 aashvarma #7 Testing Expert Member Since: April 2007 Total Comments: 3 RE: QTP Questions :exception handling? hai this z aash removing unwanted messages on screen while running the script..c. April 20.g) operations. 2007 06:09:47 aashvarma #8 Testing Expert Member Since: April 2007 Total Comments: 3 RE: QTP Questions:diff between analog n low level recording In analog we record mouse operations like digital signatures and in low level recording we record satelite. 2007 08:29:54 dev1504 Principles of the QTP There are 2 principles of QTP 1 Key driven 2 Playback Member Since: Visitor #6 Total Comments: N/A April 20.
Page("Select a Flight: Mercury"). This is the recording of the script.Page("Welcome: Mercury Tours").This is query I have a very basic doubt.. Q. You must identify the object(s) that change dynamically by using some other property rather than name or value that change. I recorded a script in mercury website tours. I will be grateful to You if u can explain it to me a bit in details. This is the script I recorded. QTP | Question 409 of 449 | parametrize the name field in QTP question Total Answers and Comments: 1 Print | Send To Friend I am a new learner in Qtp and Practising it ..Page("Welcome: Mercury Tours"). I will be thankful to u if u can help me.Page("Find a Flight: Mercury"). I wanted the script to login in Once and add the users.12 Browser("Welcome: Mercury Tours").Click 98.Click 55..Page("Book a Flight: ..2 Browser("Welcome: Mercury Tours").Set "sjsai70" Browser("Welcome: Mercury Tours"). I am finding that the Test Object property and the runtime-object properties are totally different.com. But every time it logged in and added the users from the data table .Page("Welcome: Mercury Tours").Image("SignIn").Click 52.Page("Welcome: Mercury Tours").Descriptive Programming.Image("findFlights"). I had tried with that but not 100% successful.WebEdit("password"). Browser("Welcome: Mercury Tours").Activate Browser("Welcome: Mercury Tours").Sync Window("Microsoft Outlook"). Ans: OR hello chanakya Thanks a lot for responding to my question. i tried it with the local sheet it did it work..WebEdit("userName").18 Browser("Welcome: Mercury Tours"). when I did it with Global it worked . My Email ID is gautam. I wanted to parametrize the name field.SetSecure "4619dd02052b5530abe5ef1ffb5c278b5d051064" Browser("Welcome: Mercury Tours"). QTP EXPERTS answer my query.sarmah@tcs.Image("reserveFlights"). Actually When i am looking at the properties in OR with Object Spy.
0.Select "Bland" Browser("Welcome: Mercury Tours").Image("backtoflights").meal").Set "j" Browser("Welcome: Mercury Tours").Page("Book a Flight: Mercury").Click Ans: Parameterize the name field in QTP in mainly 3 types 1.Image("buyFlights"). Dynamic in Datatable Step 1: First of all we will create parameter for name field like "UName" This parameter should be created in ActionSheet Step 2: After that connect the parameter to the name field through the Keyword View Step 3: After select the Keyword view we should select the Value column in Keyword view and press the icon of the value column right side.Select "Vegetarian" Browser("Welcome: Mercury Tours"). Step 4: after that we got parameter box in that we will select Parameter option in that we select Data Table and select parameter in value list box and press ok button it automatically effect in the expert view in the name field line like "Datatable("Uname".Mercury").0.Click 70. Method Argument 3.WebList("pass.WebList("pass.Page("Welcome: .meal").Page("Flight Confirmation: Mercury").Set "shailaaja" Browser("Welcome: Mercury Tours").WebEdit("passFirst0").Page("Book a Flight: Mercury").WebEdit("passLast0")."Action1").Page("Book a Flight: Mercury").Page("Book a Flight: Mercury"). Datatable 2.Browser("Welcome: Mercury Tours").7 Browser("Welcome: Mercury Tours").
2 Automation Scripts in Load Runner 8. Sort by Date asc / desc Show Page [ 1 ] July 11. Or please explain the procedure for reusing automation scripts of QTP to Load testing purpose using Load Runner.Mercury Tours"). Total Answers and Comments: 4 More details on Question: I was trying to call the QTP Scripts from Load Runner Controller Scenario.Page("Welcome: Mercury Tours").*) options in drop down box. So that i can all QTP Scripts. There. Local data sheet(For each script u can create ur own data table) 2.2 Automation Scripts in Load Runner . Is there any options available to handle more than one DataTable Simultaneously in QTP Ans: Datatable is divided into two types.WebEdit("userName"). 2006 01:55:16 #1 divesh Member Since: Visitor Total Comments: N/A RE: How to use QTP 8.SetSecure "4619dd02052b5530abe5ef1ffb5c278b5d051064" Q... GUI Scripts. How to use QTP 8. Astra Tests and All Files(*. Do I need to install QTP on Load Runner Server also to see this option.Set Datatable("Parametername"."Action1") Same as Password also Browser("Welcome: Mercury Tours"). Global datasheet(For the entire application u can use only one global datasheet.2 Automation Scripts in Load Runn. I only see options for Vuser Scripts. 1.WebEdit("password"). Hi .) Q. I am facing the same issue how to use QTP 8.1 for Load Testing Purpose.
.2 scripts will be compatible with load runner .. Do we need special lisence to run QTP scripts. Salaskar Member Since: Visitor Total Comments: N/A RE: How to use QTP 8.... thanks divesh October 31. Salaskar December 15. there is a spcial patch from mercury should be purchased for which the qtp 8. 2006 14:44:49 #3 Satyajeet Member Since: Visitor Total Comments: N/A RE: How to use QTP 8. Hi You can select "All Files" in Files of type combo box and select QTP script file with extension ".2 Automation Scripts in Load Runn.usr" I hope this will help you Thanks & Regards Deepali R.1 for Load Testing Purpose..2 Automation Scripts in Load Runn. Did you have any solution for that if yes could you please forward to me it would really appreciable.2 Automation Scripts in Load Runn. 2006 09:40:24 #2 Deepali R.8.Â I am currently getting error "you don't have proper license to run" April 08. 2007 14:21:38 #4 arihan sinha Member Since: Visitor Total Comments: N/A RE: How to use QTP 8.
. May 05. right click and select RunfromStep command. Some one posted like to execute the command RunFromAction but the command doesn't exist... 2006 03:20:45 Ravi Konka Member Since: Visitor RE: How to run only one action when more than one acti. which you wanna run from the Action list in the Action Tool bar and then select the first line of the script.. To execute your script instead of Run use RunFromAction. Print | Send To Friend QTP | Question 31 of 449 | How to run only one action when more than one action exist in the Test.Q. 2007 05:13:57 debleena23 Member Since: April 2007 RE: How to run only one action when more than one acti. Then Right Click and select "Run From Step".... Q. Select the action... #3 Total Comments: 8 Select the particular action and click on the position form where you want to run the script. Thanks.. 2006 05:52:45 Brahma Sagar Gunda #2 Testing Expert Member Since: May 2006 Total Comments: 3 RE: How to run only one action when more than one acti. Total Answers and Comments: 3 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A April 17... how to read text box value into local variable of VBScript? . Brahma sagar April 18.
. 2007 07:38:02 dvbrao1 #2 Testing Expert Member Since: December 2006 Total Comments: 17 RE: how to increase the execution speed of QTP scripts. how to increase the execution speed of QTP scripts? Total Answers and Comments: 3 Sort by Date asc / desc Show Page [ 1 ] #1 March 30..webedit(b1). Hi Go to Tools>Options>Run>select Fast Nag January 04... 2007 05:56:03 swanand_rk Testing Expert Member Since: January 2007 Total Comments: 9 RE: how to read text box value into local variable of . var = browser(browser)... 2006 10:28:00 nagasenan Testing Expert Member Since: March 2006 Total Comments: 4 RE: how to increase the execution speed of QTP scripts.Total Answers and Comments: 1 Sort by Date asc / desc Show Page [ 1 ] #1 March 31..page(a1).getroproperty("value") Q.
2007 03:40:31 msusmitha Member Since: November 2006 RE: how to increase the execution speed of QTP scripts. Use the function called GetROProperty ("cols") So if you use x=JavaTable("Table Name").. bye Q. 2007 07:02:26 Santosh Menon Member Since: Visitor RE: How to count the number of columns in the java tab.hi with using descriptive programming also u can do fast the execution. Q.... its the optimisation we call just decreasing the input and producing the quality. How to count the number of columns in the java table Total Answers and Comments: 1 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A May 15. . hi #3 Total Comments: 19 reduce the lines of script. writing the good testcase means which is finding the correct error.. bhadra April 04. Santosh. without using the object repository ie discriptive programming.GetROProperty("cols") x will be the number of columns in the Java table.
set "sddfdffsdsds" Solution : Keep the entire code in a function declaration as below Function FunctioName() #3 Total Comments: N/A .WebList("sdsd"). Can you get me link. 2006 01:18:03 srinivas potnuru Member Since: Visitor RE: how to comment a block in QTP 8.2 There is some other way round to comment a block of statements for example u want to block the following code: Browser("dfdf").how to comment a block in QTP 8.set "ssdsds" Browser("dfdf").2 Total Answers and Comments: 7 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A May 09.WebEdit("ddfdffd").Page("sdf").select 2 Browser("dfdf"). 2006 02:36:16 Prasanth Member Since: Visitor RE: how to comment a block in QTP 8. where i can get more questions on QTP June 07.Page("sdf").2 there is no way to comment a block in qtpso only the way to comment a block is putting a single apostrophe in front of each line of the block May 10. 2006 13:24:57 sreedhar Member Since: Visitor RE: how to comment a block in QTP 8.Page("sdf").2 #2 Total Comments: N/A Thanks for the comment.WebEdit("dfd").
Example: If False Then Window("Notepad"). but it will not execute them.Page("sdf"). Use the following example to comment out a code block To comment out a block of code use an If-Then structure.WinEditor("Edit"). any syntax errors in the block will be reported during run time.WebList("sdsd"). 2006 01:14:30 maniz Member Since: Visitor RE: how to comment a block in QTP 8. Let me know if it works for you.SetCaretPos 0.WinEditor("Edit").WebEdit("ddfdffd"). REM for adding comment at the end of code #4 Total Comments: N/A 3.Type micReturn End If Note: QuickTest Professional will still read the lines within the if structure.Type "Hello This is a test.2 Regarding your issue following are the things you can try: 1.Page("sdf").WinEditor("Edit").set "sddfdffsdsds" End Function This is an indirect way of commenting a block of statements. Therefore.WebEdit("dfd"). ‘ for commenting out a statement 2.set "ssdsds" Browser("dfdf"). .Page("sdf").select 2 Browser("dfdf"). where the expression is 0 or False.0 Window("Notepad"). June 22.Browser("dfdf")." Window("Notepad").
2 The way that u have given is for QTP 9.2 #7 Total Comments: N/A In QTP 9. It doesnot work for QTP 8. . Select the block of code 2. Right click on it and select comment Block Now it will comment the block of code with single comment line but at a time. 2006 01:43:07 rupesh Member Since: Visitor RE: How to automate Java Application? I got error obje. Q. March 30. 2007 02:43:09 #6 joydeep_b77 Member Since: March 2007 Total Comments: 1 RE: how to comment a block in QTP 8..1. 2007 02:27:52 Rashmi Ranjan Parida Member Since: Visitor RE: how to comment a block in QTP 8. If any query.2 #5 Total Comments: N/A Please follow the following steps to comment a block of code in QTP 1. 2007 14:58:49 anurag Member Since: Visitor RE: how to comment a block in QTP 8.2 May 18. How to automate Java Application? I got error object not found .2 you can comment block of statements by selecting the statements and right click and comment it..March 29. pls get back to me.JavaTree (EXTree) Total Answers and Comments: 3 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A April 04.
.Local sheet 2...this indicates which technology we r using marked on that. 2006 04:28:24 pavanraj #2 Testing Expert Member Since: March 2006 Total Comments: 5 RE: How to automate Java Application? I got error obje. in that we have 1. Regards Pavan April 20. How does QTP Intentfies if page has 10 buttons with same name & value Ans: ...e EXCEL SHEET.Winrunner ). There is one more possibility that If u don't add properties of an object in repository( in QTP ) or GUI map file( in Winrunner ) then also it wil show error saying that object not found. Before u start automation on Java application make sure that u installed Java Add-in for any testing tool ( say QTP..Global sheet Q. 2007 05:13:51 aashvarma #3 Testing Expert Member Since: April 2007 Total Comments: 3 RE: How to automate Java Application? I got error obje. hai. u r automate a java application u need to addin manager. how many data tables are there? Ans: there is only one datatable in QTP i.finally go for recording or any other method of scripting ( say descriptive )... Q. So in this case make sure that ur object properties are there in repository/GUI map file. And set some properties for particular object before u automate. Hi.ensure that the java plug in added April 04.
For this question I will just suggest an example. February 28. Let there be ten or hundread buttons their will be many unique properties to identify a button uniquely. As per my knowldege every object in a page will the windowid in unique and by selecting the windowid property in the assistive properties or in the smart brain will help in identifing the objectings.. Then all these buttons will have some similar properties and every button will have atleast one unique property. and/or by using smart brain...RE: How does QTP Intentfies if page has 10 buttons wit. #2 Total Comments: N/A Fine... Even one can use this property in the mandatory properties list or smart brain.. 2007 19:55:55 TheScientist Member Since: Visitor RE: How does QTP Intentfies if page has 10 buttons wit. If u r aware how qtp idetifies the objects then u must have known about how it learns the properties of the objects by using mandatory properties. so how will u run the same test case there? or u have to change ur code. the button will not be at same x and y coordinates so with the help of x and y coordinates QTP can identify them uniquely March 05. #4 Total Comments: 1 if u change ur monitor from 15" to 17" then x y coordinates will change. March 06.. 2007 04:38:28 gardekp Member Since: February 2007 RE: How does QTP Intentfies if page has 10 buttons wit. Let us think there are 10 buttons in a page. 2007 00:59:24 prashanth Member Since: Visitor RE: How does QTP Intentfies if page has 10 buttons wit. For example. so there must be some other way than x y coordiantes.. #3 Total Comments: N/A If all the properties are the same (even assistive) then QTP uses ordinal identifier such as index of the object in the page. . assistive properties.
March 27. #5 Total Comments: N/A When there are same objects with ame name than qtp identifies it with the help of smart identification. -Mulls Q. How do you schedule a test in QTP or QC [Quality center] Ans: We can schedule test execution in Quality Center only. Anybody plz correct If I am wrong. 2007 07:11:42 aravind Member Since: Visitor RE: How does QTP Intentfies if page has 10 buttons wit.. #6 Total Comments: N/A If all the properties are the same (even assistive) then QTP uses ordinal identifier such as index of the object in the page. To do this first you need to go test Lab module there you will find "Execution Flow" tab. it uses either index or location property value to identify objects. I am sending sample code how to use parameterization using Descriptive Programming. How can you use parametrization using Descriptive programming? Ans: Hi. I hope we cann't schedule a test run in QTP.Run "D:Program FilesMercury InteractiveQuickTest Professionalsamplesflightappflight4a. 2007 04:25:06 saurabh Member Since: Visitor RE: How does QTP Intentfies if page has 10 buttons wit. How do you insert data to Excel file form a table Ans: By using import function Right click on the data table and click on the import from file Q. SystemUtil.. How do you retrieve substring from another string in QTP Ans: use "Instr" function Q.exe" . first go through assistive properties . In that tab you can specify a date and time to schedule your test. then towards ordinal identifier Q... This is Ijaz.March 13.
the dropdown list item) by its name. The problem with the QTP (free version downloaded from the net) is that it doesn't identify the objects at all other than the window object.. Is there any code for that?Can any one solve my problem plz.Set "mercury" Dialog("text:=Login").and the name might not be the primary property. my ID is ijaz.. My project is an Desktop Application developed in Java. Desktop Application developed in Java problem Hi I am New to Qtp tool. At the record time it captures the data from the combo box but while running the script QTP is unable to open/recognise the Drop down combo box to select the data.. How to pick the data from the drop down list box..dtGlobalSheet) Dialog("text:=Login").com Q. Try using a differant property.i(n this case.if u dont understand the object repository..WinEdit("attached text:=Pass.WinButton("text:=OK").gettext() OR if all the above not working then we have to add java addin in QTP Q. Go to the object repository and fidn that object and look at its properties on the right side.gadiwan@rediffmail. Livetek Ans: Ok..do it ASAP. We have got a project to be automated using QTP.*").Dialog("text:=Login").thats ur only hope and hurry up....Set DataTable("ID".u cant do nothin with QTP lemme know if u need more help OR Hi.. I am really running out of time..Close It's Working Fine. your script might be calling the object. The first two properties could be the primary.When you recorded.WinEdit("attached text:=Agent. The application however has been designed using C/ C++ as told by the client..This is praveen Yarlagadda. Or Try descriptive programming. . parent window("login"). Thanks.*"). Learn about descriptive programming and learn a lot about object repository.*"). Reply if not working. could you please try to use this syntax.Click Window("text:=Flight..child window("combobox"). C++ project Testing in QTP problem Hi.
If you try writing your own code ex. . 3.y co-ordinates and click methods of QTP. Raghu Ans: Hi Raghu.And create bd copnnective object like. You don't need any addins for C++ applications . and checkdbcfonnection.etc Â by capturing objects into repository or use descriptive programming it will work.( create DSN from control panel). Is there a separate add-in for learning the objects in this scenario? Also if there is no need for the additional add-ins can you please let me know some feature of QTP which will help me in identifying the objects? This is needed on an urgent basis as the client has already given us the project to start!!!! Thanks in advance. 2. 4. As I'm also working on a c++ application I have this problem when recording. set dbconnect= createobject("ADODB>connection").Write a program using filesystem objects in qtp."LogFile". Regards.Window("").Make this set of statements as function and give it a name eg. How do I connect to database (Access in my case) from QTP? yes u can connect through DSN.Dialog("").Let me know if you need any more help.When record playback is done all the actions are in terms of x . Ans: Q. Chaitanya Q.open is true or not.Capture the output values and other information from the application during runtime. but when I write my code its working fine. 2006 03:00:08 dhivya Member Since: Visitor RE: How do you write Log Files in QTP 1.send these values to this function during runtime. How do you write Log Files in QTP Total Answers and Comments: 5 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A April 26.
May 09.In functions write as . Member Since: Visitor #4 Total Comments: N/A i am familiar with the basic functionality now i want to learn advanced topics please provide me to get right material Ritu .. 2006 11:53:19 Ramakrishna Rao Member Since: Visitor RE: How do you write Log Files in QTP Can you provide one sample script for this? #3 Total Comments: N/A May 11.... pass these values to this file in function Note: You can also write this function externally and it should be saved as . Store all values in a variable b.Could anyone send me the script for this Question. "How do you write Log Files in QTP?" May 09..5. create sepreate . and add this function in "Test-->settings-->Resource" and call this function by its name in Qtp .. 2006 02:41:11 Ritu QTP advanced topics help i am getting an assigment on QTP. i have to prepare on my own..txt file c. 2006 06:21:37 iliaz Member Since: Visitor RE: How do you write Log Files in QTP #2 Total Comments: N/A Plz.vbs. a..
ensure that the java plug in added April 04.close set objfile=nothing set objFSO=nothing End function #5 Total Comments: N/A hi log files used to show the results to the client ..JavaTree (EXTree) Total Answers and Comments: 3 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A April 04. 2007 06:45:55 venkat Member Since: Visitor RE: How do you write Log Files in QTP Log file is used for debugging.. . function writelog(strlog) dim objFSO dim objFile set objFSO=createobject("scripting.. 2006 01:43:07 rupesh Member Since: Visitor RE: How to automate Java Application? I got error obje. How to automate Java Application? I got error object not found ..writeline strlog objfile.opentextfile("path") objfile.June 03.FileSystemObject") set objfile=objfso. 2006 04:28:24 pavanraj #2 Testing Expert Member Since: March 2006 Total Comments: 5 RE: How to automate Java Application? I got error obje.write 8-append Q. at the end of the path we should give the symbols like 1-read 2.client can believe by seeing the results produced after execution of the scripts in log files .
There is one more possibility that If u don't add properties of an object in repository( in QTP ) or GUI map file( in Winrunner ) then also it wil show error saying that object not found..Winrunner ).this indicates which technology we r using marked on that.. u r automate a java application u need to addin manager.2(Repeat) Total Answers and Comments: 7 Sort by Date asc / desc Show Page [ 1 ] #1 Total Comments: N/A May 09.. And set some properties for particular object before u automate.. how to comment a block in QTP 8.2 there is no way to comment a block in qtpso only the way to comment a block is putting a single apostrophe in front of each line of the block .Hi. Regards Pavan April 20. So in this case make sure that ur object properties are there in repository/GUI map file. hai.. 2007 05:13:51 aashvarma #3 Testing Expert Member Since: April 2007 Total Comments: 3 RE: How to automate Java Application? I got error obje. 2006 13:24:57 sreedhar Member Since: Visitor RE: how to comment a block in QTP 8.. Before u start automation on Java application make sure that u installed Java Add-in for any testing tool ( say QTP. Q.finally go for recording or any other method of scripting ( say descriptive ).
2006 01:18:03 srinivas potnuru Member Since: Visitor RE: how to comment a block in QTP 8. 2006 01:14:30 maniz Member Since: Visitor RE: how to comment a block in QTP 8.WebEdit("ddfdffd").select 2 Browser("dfdf").2 Regarding your issue following are the things you can try: #4 Total Comments: N/A . Can you get me link.WebList("sdsd").Page("sdf").2 #2 Total Comments: N/A Thanks for the comment.set "sddfdffsdsds" Solution : Keep the entire code in a function declaration as below Function FunctioName() Browser("dfdf"). #3 Total Comments: N/A June 22.set "ssdsds" Browser("dfdf").Page("sdf").2 There is some other way round to comment a block of statements for example u want to block the following code: Browser("dfdf").WebEdit("ddfdffd").set "sddfdffsdsds" End Function This is an indirect way of commenting a block of statements.Page("sdf").WebEdit("dfd").Page("sdf").Page("sdf"). where i can get more questions on QTP June 07.select 2 Browser("dfdf").WebEdit("dfd").Page("sdf"). 2006 02:36:16 Prasanth Member Since: Visitor RE: how to comment a block in QTP 8.WebList("sdsd").set "ssdsds" Browser("dfdf").May 10.
March 30.Type micReturn End If Note: QuickTest Professional will still read the lines within the if structure. If any query. pls get back to me." Window("Notepad"). but it will not execute them.WinEditor("Edit").Type "Hello This is a test. ‘ for commenting out a statement 2.1. 2007 02:43:09 #6 .SetCaretPos 0. Let me know if it works for you. Right click on it and select comment Block Now it will comment the block of code with single comment line but at a time. Use the following example to comment out a code block To comment out a block of code use an If-Then structure.WinEditor("Edit"). Example: If False Then Window("Notepad"). where the expression is 0 or False. Therefore.WinEditor("Edit"). any syntax errors in the block will be reported during run time. March 29.0 Window("Notepad"). REM for adding comment at the end of code 3. Select the block of code 2. 2007 02:27:52 Rashmi Ranjan Parida Member Since: Visitor RE: how to comment a block in QTP 8.2 #5 Total Comments: N/A Please follow the following steps to comment a block of code in QTP 1.
However. Ideally it should add new object to the existing parent page(flight confirm mercury). applicable to more than one release of one application. you can use the functions that VBScript provides (i. What is Key Word driven Testing? What is the differance built in variables and User defined variables? Ans: What is Key Word driven Testing? Software test scripts are conventionally composed ad hoc by a coder. Some software development tools help automate testing by recording tests that are run. if ever. allowing "playback" of the test routines. an entire test routine is rarely.e.2 #7 Total Comments: N/A In QTP 9.joydeep_b77 Member Since: March 2007 Total Comments: 1 RE: how to comment a block in QTP 8. I am trying to add object from repository dialog box.* to the title and select the check box Q. What is the differance built in variables and User defined variables? a function is a block of instructions that affects the data a script is handling. it creates new page(flight confirm mercury_2) and adds the new object under it. It doesnot work for QTP 8.2 you can comment block of statements by selecting the statements and right click and comment it.2 The way that u have given is for QTP 9.2 May 18. Data-driven testing adds some modularity by keeping test input and output values separate from the test procedure. 2007 14:58:49 anurag Member Since: Visitor RE: how to comment a block in QTP 8. Keyword-driven testing breaks the test procedure into logical components that can then be used repeatedly in the assembly of new test scripts. How to do that is Go to Object repository->Select the Object in the repository-->In the Object repository window you will find "Configure Value" item to the right side-->In that U will findTwo fields with name Constant and Parameter-->Beside Constant fields u will find an ikon in white colour-->Click on that->The title of the page gets displayed in a new dialog box called Constant value options-->Just add '. In a script.1. how to overcome this problem Ans: Just make the page a regular expression. built-in functions ) or you can . Q. but the procedure itself is still in a monolithic script..*' at the last position to the title and check the regular expression Check box OR make it a regular expression by going to object repository-->select the title of page-->clink on white coloured icon present beside the constant field in the right side of object repository window-->add .
OR There are 2 types of Environment variables.. TestName.xml format and uploaded in the Test Settings -> Environment -> User Defined -> File ....Built-in & User-Defined Built-in variables are such as : TestIteration.e... user-defined functions).create unique functions (i. User-defined variables are developed by the users in the . OR Keyword-driven Testing Keyword-driven testing breaks the test procedure into logical components that can then be used repeatedly in the assembly of new test scripts.I analyze two popular built-in functions that let users provide input: MsgBox and InputBox.. MsgBox displays a dialog box in which users can click buttons to provide input. InputBox displays a dialog box in which users can type text to provide input.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.