Exforsys

Online Training

need qtp material

This is a discussion on need qtp material within the Testing Tutorials forums, part of the Articles and Tutorials category; I am fairly new to testing, and i have a background of SAP(functional side) can anyone please help me ...


Go Back   Exforsys > Articles and Tutorials > Testing Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2006, 11:18 PM
Junior Member
 
Join Date: Oct 2006
Posts: 1
pavim is on a distinguished road
need qtp material

I am fairly new to testing, and i have a background of SAP(functional side)
can anyone please help me in sending the testing material of manual and qtp to madala_kavi@yahoo.co.in ?
Thank u in advance.

pavim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-14-2007, 05:50 AM
kalyansantosh's Avatar
Member
 
Join Date: Feb 2007
Location: Hyderabad
Posts: 91
kalyansantosh is on a distinguished road
Send a message via Yahoo to kalyansantosh
Q. What are test objects?
Test objects are objects created and maintained by QTP in its object repository. Each test object
has a name and a set of properties to uniquely identify the actual object in the application.
Q. how does QTP identifies the objects during the script run?
During script run QuickTest searches for a run-time object that has the similar description of the
test object in the object repository.
Q. How can i check the properties of an object in an application without using check
points? For Example how will you check whether a button is enabled?
Answer: GetROProperty method is used to retrieve the properties of the object in an application.
It is very useful method and can be used to retrieve almost any of the property that can be seen
while spying the object with object spy.
For Example
‘To get whether button is enabled or not.
Val = Browser("QA Friends").Page("QA Friends").WebButton("Login").GetROProperty("disabled")
‘To get whether a checkbox is on or off.
Val = rowser("QA Friends").Page("QA Friends").WebCheckBox("Test").GetROProperty("Value")
Q. How can I modify the properties values of test objects in Object Repository during run
time?
A. You can use SetTOProperty method of test object.
Object(description).SetTOProperty Property, Value
The values of test object properties are used to identify the objects. Sometimes the properties of
the object in the application change dynamically. For example text of a link in a webpage is the
username used to login to that page.
Text property is used by test object to identify the link. So in order to identify the actual object we
can manipulate the value of “text” property of link using SetTOProperty.
Q. How do you synchronize your scripts in QTP?
A. For waiting until navigation of web page completes we can use Sync method.
For waiting until an object appears we can use Exist method.
For waiting until a property of object changes we can use WaitProperty method.
You can set browser navigation timeout in:
Click Test > Settings menu
Select web tab in Test Settings window.
Enter the timeout in Browser Navigation Timeout text box.
You can set global object sychrozization timeout in:
Click Test > Settings menu
Select Run tab in Test Settings window.
Enter the timeout in Object Synchronization Timeout text box.
Q Where can you write user defined functions that are accessible by all scripts?
A. We can write user defined function in .vbs file. This file can be loaded by adding the file as
follows:
Click Test > Settings menu
Select Resources tab in Test Settings window and add the file.
Alternatively you can also load the file through script using
ExecuteFile “absolute or relative path of file”
For Example: ExecuteFile “C:\Test.vbs”
Q What are regular expressions?
A. Regular expressions used for identifying objects and text strings with varying values. You can
use regular expressions for defining the property values of an object, creating checkpoints with
varying values etc.
Example:
For example if the caption on the button in an application changes dynamically and can be
anything which starts with “Hello” (It can be Hello XYZ, Hello AB13 and so on)
You can go object repository and change the value of name property of the button object to
“Hello.*”
Here “.” means any single character and “ * ” means 0 or more occurances of preceding
character. So .* means 0 or more occurances of any character.
There are many other regular expression characters:
For Example: Regular expression test[0-9] matches test0, test1, test2…… to test9.
Regular expression abc[789] matches abc7, abc8, abc9
Q. Different ways to parameterize tests?
A. Test, action or component parameters – for using values from other action in your
test.
Data Table parameters – for creating data driven test based on values in data table.
Environment variable parameters – For using values of environment variable.
Random number parameters – For using random numbers as values in our test or
component.
Q. What can you do if values of object properties in an application are changing
constantly?
A. We can try using alternatives like regular expressions, Changing description of test
objects in object repository during run time, using descriptive programming and so on.
Q. What can you do if objects are not identified by QTP?
A. 1) For standard windows environment you can try object mapping user defined
classes to standard classes.
2)You can find whether any addins are available for given environment.
3) check if any other reliable alternativies are available like using keyboard shortcuts,
using automation object model of application if available and so on.
Q. What is descriptive programming?
A. Descriptive programming allows you to work with objects that are not stored in object
repository.
two types of programmatic descriptions.
1) listing the set of properties and values that describe the object directly in a test
statement.
2) Add collection of properties and values to a Description object, and then enter the
Description object name in the statement.
Q. How will you access database from QTP?
A. You can use ActiveX Data Object for accessing the content of database. You can
create connection object, recordset object and then execute query. And access the values
of query in recordset.
Example
Set objConn= CreateObject("ADODB.connection")
Set objRecSet = CreateObject("ADODB.recordset")
objConn.open strConString 'strConString is database connection string.
objRecSet.open strQuery,objConn 'strQuery is SQL query to execute.
__________________
Kalyansantosh
Sr QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2007, 07:22 PM
Junior Member
 
Join Date: Aug 2004
Posts: 5
kishhari
Basic QTP Tutorial in zip file

He Guys,
I am attaching Basic QTP Tutorial For ur Refrence ....Take a look

Last edited by admin; 02-16-2007 at 09:47 AM. Reason: Please do not upload copyright meterail.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-29-2007, 09:19 PM
Junior Member
 
Join Date: Mar 2007
Posts: 1
pulse7315 is on a distinguished road
Thanks for the link. Keep posting
Quote:
Originally Posted by kishhari View Post
He Guys,
I am attaching Basic QTP Tutorial For ur Refrence ....Take a look
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-06-2007, 05:32 AM
Junior Member
 
Join Date: May 2007
Posts: 5
swapna5avari is on a distinguished road
pls poide me qtp maerial
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
oracle material ksuresh Oracle Apps 2 03-01-2007 06:41 AM
Oracle Apps. 11i Study Material And FAQ's sadashiv Oracle Apps 2 03-01-2007 06:34 AM
Urgent - WinRunner user guide material priyapp Testing Tutorials 3 02-16-2007 03:37 AM
CCIE SEC lab study material! cciecrazy CISCO Certification 2 04-27-2006 09:04 PM
Core java material mallakishore Java Tutorials 2 07-04-2005 10:33 AM


All times are GMT -4. The time now is 03:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.