1. What is Retesting?
Ans: If u do all the test procedures once u make any new change or add a new functionality is Regression testing whereas in Retesting
U will do testing for only the Changed Scenarios.
2.What documents we need/refer to make a test plan?
Ans: Most required SRS documentation
Real time question: We can refer only LLD for clear information About Requriements,Then what is the use of refering SRS doc in V model, Plz can u make diff
Srs is Software requirement specification, which contains the detailed description of wat the user expects the application or software to perform . Lld is nothing but logic design/ code of control flow & data flow in the software or appplication.
In order to detect defects at the early stages of software development cycle . Testers has to be provided with both srs and lld.
3.What is Test Bed?
Ans:An execution environment configured for testing. May consist of specific hardware, OS, network topology, configuration of the product under test, other application or system software, etc. The Test Plan for a project should enumerated the test beds(s) to be used.
4.What is Software Requirements Specification?
Ans:A deliverable that describes all data, functional and behavioral requirements, all constraints, and all validation requirements for software
5.Difference between smoke testing and sanity testing?
Ans:Smoke Testing is non-exhaustive software testing, ascertaining that the most crucial functions of a program work, but not bothering with finer details. Sanity Testing is a cursory testing,it is performed whenever a cursory testing is sufficient to prove the application is functioning according to specifications. This level of testing is a subset of regression testing. It normally includes a set of core tests of basic GUI functionality to demonstrate connectivity to the database, application servers, printers, etc.
6.What is Soak Testing?
Ans:Running a system at high load for a prolonged period of time. For example, running several times more transactions in an entire day (or night) than would be expected in a busy day, to identify and performance problems that appear after a large number of transactions have been executed.
7.What is exactly the technical definition of a build
Ans:The application under test is known as Build.
OR
The executable software which is under testing.
8.What is Scalability Testing?
Ans:Performance testing focused on ensuring the application under test gracefully handles increases in work load.
9.What is Release Candidate?
Ans:A pre-release version, which contains the desired functionality of the final version, but which needs to be tested for bugs (which ideally should be removed before the final version is released).
10.What is Ramp Testing?
Ans:Continuously raising an input signal until the system breaks down.
11.What is Quality System?
Ans:The organizational structure, responsibilities, procedures, processes, and resources for implementing quality management.
12.What is Quality Policy?
Ans:The overall intentions and direction of an organization as regards quality as formally expressed by top management.
13.What is Quality Management?
Ans:That aspect of the overall management function that determines and implements the quality policy.
14.What is Quality Control?
Ans:The operational techniques and the activities used to fulfill and verify requirements of quality.
15.What is Quality Circle?
Ans:A group of individuals with related interests that meet at regular intervals to consider problems or other matters related to the quality of outputs of a process and to the correction of problems or to the improvement of quality.
16.What is Quality Audit?
Ans:A systematic and independent examination to determine whether quality activities and related results comply with planned arrangements and whether these arrangements are implemented effectively and are suitable to achieve objectives.
17.What is Quality Assurance?
Ans:All those planned or systematic actions necessary to provide adequate confidence that a product or service is of the type and quality needed and expected by the customer.
18.What is Monkey Testing?
Ans:Testing a system or an Application on the fly, i.e just few tests here and there to ensure the system or an application does not crash out.
19.What is Metric?
Ans:A standard of measurement. Software metrics are the statistics describing the structure or content of a program. A metric should be a real objective measurement of something such as number of bugs per lines of code.
20.What is Localization Testing?
Ans:This term refers to making software specifically designed for a specific locality.
21.What is Independent Test Group (ITG)?
Ans:A group of people whose primary responsibility is software testing.
21.What is Gorilla Testing?
Ans:Testing one particular module, functionality heavily.
22.What is Gray Box Testing?
Ans:A combination of Black Box and White Box testing methodologies, testing a piece of software against its specification but using some knowledge of its internal workings.
23.What is Functional Specification?
A document that describes in detail the characteristics of the product with regard to its intended features.
24.What is Functional Decomposition?
Ans:A technique used during planning, analysis and design; creates a functional hierarchy for the software.
25.What is Exhaustive Testing?
Ans:Testing which covers all combinations of input values and preconditions for an element of the software under test.
26.What is Equivalence Partitioning?
Ans:A test case design technique for a component in which test cases are designed to execute representatives from equivalence classes.
27.What is Equivalence Class?
Ans:A portion of a component’s input or output domains for which the component’s behavior is assumed to be the same from the component’s specification.
28.What is Endurance Testing?
Ans:Checks for memory leaks or other problems that may occur with prolonged executionwhat is testing
Testing involves operation of a system or application under controlled conditions and evaluating the results (eg, ‘if the user is in interface A of the application while using hardware B, and does C, then D should happen’). The controlled conditions should include both normal and abnormal conditions. Testing should intentionally attempt to make things go wrong to determine if things happen when they shouldn’t or things don’t happen when they should. It is oriented to ‘detection’. (See the Bookstore section’s ‘Software Testing’ category for a list of useful books on Software Testing.) • Organizations vary considerably in how they assign responsibility for QA and testing. Sometimes they’re the combined responsibility of one group or individual. Also common are project teams that include a mix of testers and developers who work closely together, with overall QA processes monitored by project managers. It will depend on what best fits an organization’s size and business structure.
29.What is Depth Testing?
Ans:A test that exercises a feature of a product in full detail.
30.What is Dependency Testing?
Ans:Examines an application’s requirements for pre-existing software, initial states and configuration in order to maintain proper functionality.
31.What is Defect?
Ans:Non conformance to requirements or functional / program specification
32.What is Debugging?
Ans:The process of finding and removing the causes of software failures.
33.What is Cyclomatic Complexity?
Ans:A measure of the logical complexity of an algorithm, used in white-box testing.
34.What is Conversion Testing?
Ans:Testing of programs or procedures used to convert data from existing systems for use in replacement systems.
35.What is Component?
Ans:A minimal software item for which a separate specification is available.
36.What is Code Coverage?
Ans:An analysis method that determines which parts of the software have been executed (covered) by the test case suite and which parts have not been executed and therefore may require additional attention.
37.What is Cause Effect Graph?
Ans:A graphical representation of inputs and the associated outputs effects which can be used to design test cases.
38.What is Breadth Testing?
Ans:A test suite that exercises the full functionality of a product but does not test features in detail.
39.What is Branch Testing?
Testing in which all branches in the program source code are tested at least once.
40.What is Boundary Value Analysis?
Ans:BVA is similar to Equivalence Partitioning but focuses on “corner cases” or values that are usually out of range as defined by the specification. his means that if a function expects all values in range of negative 100 to positive 1000, test inputs would include negative 101 and positive 1001.
41.What is Boundary Testing?
Ans:Test which focus on the boundary or limit conditions of the software being tested. (Some of these tests are stress tests).
42.What is Binary Portability Testing?
Ans:Testing an executable application for portability across system platforms and environments, usually for conformation to an ABI specification.
43.What is Baseline?
Ans:The point at which some deliverable produced during the software engineering process is put under formal change control.
44.What is Basis Set?
Ans:The set of tests derived using basis path testing.
45.What is Basis Path Testing?
Ans:A white box test case design technique that uses the algorithmic flow of the program to design tests.
46.What is Basic Block?
Ans:A sequence of one or more consecutive, executable statements containing no branches.
47.What is Backus-Naur Form?
Ans:A metalanguage used to formally describe the syntax of a language.
48.How do you debug an ASP.NET Web application?
Ans:Attach the aspnet_wp.exe process to the DbgClr debugger.
49.Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Ans:The tracing dumps can be quite verbose. For applications that are constantly running you run the risk of overloading the machine and the hard drive. Five levels range from None to Verbose, allowing you to fine-tune the tracing activities.
50.What’s the difference between the Debug class and Trace class?
Ans:Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.
51.what is test case? how test case is written. example.
Ans:It is a input condition with expected result to a small work unit.
Based on Business requirements and Functional requirements testcase is return.
For ex: A pen
1.To check wether pen is writing properly or not.
2.To check wether ink is there in the refill.
3.Verify pen cap is there or not.
etc.
52.What we do when the Requirements are continuously changed?
Ans:When ever the requirements are continuously changing, we will do agile testing.
53.In an application if I enter delete button it should give an error message "Are you sure u want to delete?" but the application gives msg as "are u sure?"is it a bug?And if it a bug how you rate severity?
Ans:First we have to make sure what the actual error message should be from the specifications document. If it is not clearly mentioned, then the bug to be reported should have a severity as "low" with suggestion attached.. If it is clearly mentioned in the specifications document, then its severity should be "medium" with reference attached.
54.What do you mean by review? How many reviews are there in manual testing? please explain those?
Ans:
REVIEW
review is verification process without EXECUTION
static technique
bug prevention techique
Ex:- peer review, walkthrough,inspection
TYPES
1. TECHNICAL REVIEW
2. MGMT REVIEW
55.Test cases for shirt button?
Ans:
verify color of button
verify size of button
verify holes size in button
56.WHAT IS UCD ?
Ans:UCD means USE CASE DOCUMENT, it is the diagrametic represantation of requirements given by B.A
57.What is the maximum possible value of reliability?
Ans:To estimate\" peakload\" test eng,s are perfirming stess test
under coustomer expected configuration and more than customer expected load
58.When should you begin test plan
Ans:After the preparation of SRS document by PM and PL.
59.What is benchmark testing?
Ans:Benchmark testing is a normal part of the application development life cycle. It is a team effort that involves both application developers and database administrators (DBAs), and should be performed against your application in order to determine current performance and improve it.
60.How many test cases can we write for a scenario?
Ans:we cant say the exact maximum no. but we can write 1 positive testcase and 1 negative testcase at minimum
61.What are the key challenges of testing?
Ans: To Find out uncover bugs.not notice even by client side
tell me some typical bugs you encountered in yyour last assinment give some examples
Example: In this quetion my answer is if we are testing the web page.if we are click one link, that link is not displayed related web page this is one bug.and another one is links are not working this is also one bug.
62.What is thread Testing?
Ans:A testing technique used to test the business functionality or business logic of the AUT in an end-to-end manner, in much the same way a User or an operator migyht interact with the system during its normal use.
63.How to write simple test cases for login page?
Ans:
enter valid id and valid pass word it should open expected page
enter valid and invalid password it should show \" enter valid pass word\"
enter invalid id and valid pass word it should show \" for got your user id\"
enter invalid id and invalid pass word it should show\" please enter valid pass word\"
leave user id blank and valid pass word it should show \"enter valid id\"
enter valid id and pass word blank it should show \" enter valid pass word\"
both of fields leave blank and click on Ok it should show \" forgot ur pass word\"
apply BVA for both user id and pass word
apply ECP for both user id and pass word
64.what is PATCH and abbrivate it
Ans:Patch is nothing but a software which contains supported addtional features OR may be the fix for bugs. This patch is loaded and verify the new features and bug fixes
65.How much interaction with users should testers have and why there shoud be interaction within client
Ans:Client can provide their requirements and feedback to the under development project and helps to tester get known to client inputs(actual data) .
66.what is scenario? tell me with a simple example.
Ans:Test scenarios is nothing but combination of test cases
ex: if you take for a login window in that we have user name and password click on ok button this is one scenario.
67.In an application if I enter delete button it should give an error message "Are you sure u want to delete?" but the application gives msg as "are u sure?"is it a bug?And if it a bug how you rate severity?
Ans:First we have to make sure what the actual error message should be from the specifications document. If it is not clearly mentioned, then the bug to be reported should have a severity as "low" with suggestion attached.. If it is clearly mentioned in the specifications document, then its severity should be "medium" with reference attached.
68.what is the role of bug traking system?
Ans:The Bug tracking system is used to know the status of bugs that oocurs during the test execution.The tools like mantis,testdirector,bugzilla are used for defect tracking.
69.How can we do database testing?
Ans:TO conduct database testing the testengineers are following bellow issues:
1) verification of data entered by the users through application at back end.
2)verification of database design
3)verifing the data integrity
4)verification of SQL scripts.
Monday, July 28, 2008
Thursday, July 24, 2008
Advanced Topics Virtual Object Configuration in QTP
Virtual object configuration is a process of making the QTP tool to Treat an user defined object or a specific area as a specific object.
• Whenever QTP is not recognizing the object, then we Force QTP to recognize that object as a specific object
• Making the QTP to understand a button on the screen.
** Once we created virtual object , it will be available to All Tests except we delete it.
Example :
1. Open the virtual object application ( a window with colorbutton shape)
2. Activate menu item , select Virtual Objects option
3. Select the option New virtual Object
4. Virtual Object wizard will appear, click on Next
5. Select the standard class that nearly match to your object ( say button )
6. Click Next
7. Mark the object on the AUT screen, Height and width will be captured
8.Click Next
9. Select the option for parent of the virtual object
10. Select Next
11. Specify the name (button) and collection name ( Button_collections)
12. Click OK
13. Put the tool under recoding mode
14. Click on the area you selected as button and any area on the screen
15. Stop recording
16. Analyze the results
Virtual Object Manager : Which is a feature provided by QTP used for creating and maintaining the virtual objects.
• Whenever QTP is not recognizing the object, then we Force QTP to recognize that object as a specific object
• Making the QTP to understand a button on the screen.
** Once we created virtual object , it will be available to All Tests except we delete it.
Example :
1. Open the virtual object application ( a window with colorbutton shape)
2. Activate menu item , select Virtual Objects option
3. Select the option New virtual Object
4. Virtual Object wizard will appear, click on Next
5. Select the standard class that nearly match to your object ( say button )
6. Click Next
7. Mark the object on the AUT screen, Height and width will be captured
8.Click Next
9. Select the option for parent of the virtual object
10. Select Next
11. Specify the name (button) and collection name ( Button_collections)
12. Click OK
13. Put the tool under recoding mode
14. Click on the area you selected as button and any area on the screen
15. Stop recording
16. Analyze the results
Virtual Object Manager : Which is a feature provided by QTP used for creating and maintaining the virtual objects.
Advanced Topics Input & Output Parameters in QTP
Input & Output Parameters :-
Input parameter is a concept provided by QTP which is used for Passing some value into the action and getting some value from the action while calling that action.
One has to declare the desired number of input and output parameters at the action that is about to be called in order to pass and get the value.
Function :- is used for Passing and Getting value from a function.
• We need to Return the value to the function name itself.
• Function has a limitation that we can catch or get only one value at time
Example :
Function file
Function add(a,b): function name is add
Total = a + b : adding to values to Total
add = Total : Retuning the result to the function name it self
End function
Main Test file
var = add(10,20) : passing value to function
Action :- is used to pass Two values and return One value
Example :
1. Open the cal application
2. Add the cal application’s object properties to Object Repository
3. Activate menu item Step
4. Select the option Action properties
5. Select Parameters tab
6. Declare the input parameters values by clicking (+) add button
7. Give the name (a) , Type ( number) and some default number
8. Similarly Give the name (b) , Type ( number) and some default number
9. Declare the output parameters by clicking (+) add button
10. Give the name (a) and Type ( number)
11. Click on OK
12. Write the script as below
' setting the input parameter to val1
VbWindow("Form1").VbEdit("val1").Set parameter("a")
' setting the input parameter to val2
VbWindow("Form1").VbEdit("val2").Set parameter("b")
VbWindow("Form1").VbButton("ADD").Click
' getting the value of Result and passing to var1
var1=vbwindow("Form1").VbEdit("res").GetROProperty("text")
' passing that var1 to Output parameter c
parameter("c")=var1
Make this test as re-usable
13. Activate menu item Step
14. Select the option Action properties
15. Select the check box Reusable action
16. Click on OK
17. Save it say (myTest) ( no extension is required)
18. Open the new test
Call that saved re-usable action
19. Activate menu item Insert
20. Select the option Call to Existing action
21. Browse that saved test (myTest)
22. Click on OK
An external action will be added to current test
23. select the action1 from actions list
24. now test pane will have the following code
RunAction "Action1 [myTest]", oneIteration
Replace the above code as below
' oneIteration = one time it will execute
' 100 = passing this value into val1 thru input parameter (a)
' 200 = passing this value into val2 thru input parameter (b)
' r1= getting the output value by outputparameter ( c)
RunAction "Action1 [myTest]", oneIteration,100,200,r1
msgbox r1
25. run the test
26. Analyze the results
Input parameter is a concept provided by QTP which is used for Passing some value into the action and getting some value from the action while calling that action.
One has to declare the desired number of input and output parameters at the action that is about to be called in order to pass and get the value.
Function :- is used for Passing and Getting value from a function.
• We need to Return the value to the function name itself.
• Function has a limitation that we can catch or get only one value at time
Example :
Function file
Function add(a,b): function name is add
Total = a + b : adding to values to Total
add = Total : Retuning the result to the function name it self
End function
Main Test file
var = add(10,20) : passing value to function
Action :- is used to pass Two values and return One value
Example :
1. Open the cal application
2. Add the cal application’s object properties to Object Repository
3. Activate menu item Step
4. Select the option Action properties
5. Select Parameters tab
6. Declare the input parameters values by clicking (+) add button
7. Give the name (a) , Type ( number) and some default number
8. Similarly Give the name (b) , Type ( number) and some default number
9. Declare the output parameters by clicking (+) add button
10. Give the name (a) and Type ( number)
11. Click on OK
12. Write the script as below
' setting the input parameter to val1
VbWindow("Form1").VbEdit("val1").Set parameter("a")
' setting the input parameter to val2
VbWindow("Form1").VbEdit("val2").Set parameter("b")
VbWindow("Form1").VbButton("ADD").Click
' getting the value of Result and passing to var1
var1=vbwindow("Form1").VbEdit("res").GetROProperty("text")
' passing that var1 to Output parameter c
parameter("c")=var1
Make this test as re-usable
13. Activate menu item Step
14. Select the option Action properties
15. Select the check box Reusable action
16. Click on OK
17. Save it say (myTest) ( no extension is required)
18. Open the new test
Call that saved re-usable action
19. Activate menu item Insert
20. Select the option Call to Existing action
21. Browse that saved test (myTest)
22. Click on OK
An external action will be added to current test
23. select the action1 from actions list
24. now test pane will have the following code
RunAction "Action1 [myTest]", oneIteration
Replace the above code as below
' oneIteration = one time it will execute
' 100 = passing this value into val1 thru input parameter (a)
' 200 = passing this value into val2 thru input parameter (b)
' r1= getting the output value by outputparameter ( c)
RunAction "Action1 [myTest]", oneIteration,100,200,r1
msgbox r1
25. run the test
26. Analyze the results
Advanced Topics Regular Expression in QTP
1. Regular Expressions :-
During execution some times QTP may not identify the objects due to the regular changes in its properties values. To over come this situation one need to replace the corresponding Constant value in the object repository with a suitable regular expressions.
Example : To send number of orders thru fax
1.Open the flight application
2.Put the tool under recording mode
3.Open an existing order by clicking on open order icon
4.Activate the menu item file
5.Select the option Fax Order
6.Give dummy fax number (say 999-999-9999)
7.Click on Send button
8.Fax will be sent as if its sent.
9.Stop recording Now if you want to send number of orders thru FAX
10.Open the data table
11.Change the 1st column name as ‘order_no’
12.Give the order numbers you want to send fax ( say 8,3,1)
Now change the edit box script where you enter order id in such way that QTP should enter order ids from data table.
' this statment where recorded while trying to open order number 9
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "9"
' update above statement only in the main test script as below
' setting the datatable values into edit field of open order
' order_no is the column name of data table
' 1= global sheet in datatable
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set datatable("order_no",1)
1.Open the object repository
2.Select the Fax order No. in object hierarchy
3.Select the Text property
4.Click on Constant option value button
5.Constant value option window will appear
6.( To search all the files, we use *.* ) in the same way
7.Change the value name with .* extension ( say Fax Order No.*)
8.Select the checkbox Regular Expression
9.Click on OK
10.Click on No button (optional)
11.Click on OK
12.Run the test
13.Analyze the results
During execution some times QTP may not identify the objects due to the regular changes in its properties values. To over come this situation one need to replace the corresponding Constant value in the object repository with a suitable regular expressions.
Example : To send number of orders thru fax
1.Open the flight application
2.Put the tool under recording mode
3.Open an existing order by clicking on open order icon
4.Activate the menu item file
5.Select the option Fax Order
6.Give dummy fax number (say 999-999-9999)
7.Click on Send button
8.Fax will be sent as if its sent.
9.Stop recording Now if you want to send number of orders thru FAX
10.Open the data table
11.Change the 1st column name as ‘order_no’
12.Give the order numbers you want to send fax ( say 8,3,1)
Now change the edit box script where you enter order id in such way that QTP should enter order ids from data table.
' this statment where recorded while trying to open order number 9
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "9"
' update above statement only in the main test script as below
' setting the datatable values into edit field of open order
' order_no is the column name of data table
' 1= global sheet in datatable
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set datatable("order_no",1)
1.Open the object repository
2.Select the Fax order No. in object hierarchy
3.Select the Text property
4.Click on Constant option value button
5.Constant value option window will appear
6.( To search all the files, we use *.* ) in the same way
7.Change the value name with .* extension ( say Fax Order No.*)
8.Select the checkbox Regular Expression
9.Click on OK
10.Click on No button (optional)
11.Click on OK
12.Run the test
13.Analyze the results
Monday, July 14, 2008
QTP 9.2
1. A new feature by name screen recorder is provided which is used for recording the movie of the execution and that can be played back during the result analysis for better understanding
2. One can handle the object repositories dynamically through scripting with the help of an utility object repositories collection
Example:
Repath= “d:\r1.tsr
Repositories collection.remove all( )
Repositories collection.add(repath)
vbwindow("Form1").VbEdit ("val1").set “10”
vbwindow("Form1").VbEdit("val2").Set “20”
vbwindow("Form1").VbButton("ADD").Click
Pos= repositories collection.find(repath)
Repositories collection.remove(pos)
1. Object spy functionality is enhanced in such a weather one can view multiple objects information continuously by keeping the mouse pointer over the object
2. QTP 9.2 is compatible with the following browser
3. Internet explorer 7.0
4. Mozilla fire fox2.0
5. Net space navigation 8.1.0
2. One can handle the object repositories dynamically through scripting with the help of an utility object repositories collection
Example:
Repath= “d:\r1.tsr
Repositories collection.remove all( )
Repositories collection.add(repath)
vbwindow("Form1").VbEdit ("val1").set “10”
vbwindow("Form1").VbEdit("val2").Set “20”
vbwindow("Form1").VbButton("ADD").Click
Pos= repositories collection.find(repath)
Repositories collection.remove(pos)
1. Object spy functionality is enhanced in such a weather one can view multiple objects information continuously by keeping the mouse pointer over the object
2. QTP 9.2 is compatible with the following browser
3. Internet explorer 7.0
4. Mozilla fire fox2.0
5. Net space navigation 8.1.0
QTP 9.1
1.A new feature by name navigate and learn is introduced present in multiple pages or windows continuously by navigating
2.A new feature by name object repository comparison tool is introduced which is used for comparing two shared repositories
3.QTP 9.1 is compatible with windows vista operating system and .net frame 2.0
environment
4.The script editor is made user friendly
5.The company has announced that they will provide license for all the add ins also
2.A new feature by name object repository comparison tool is introduced which is used for comparing two shared repositories
3.QTP 9.1 is compatible with windows vista operating system and .net frame 2.0
environment
4.The script editor is made user friendly
5.The company has announced that they will provide license for all the add ins also
Thursday, July 3, 2008
QTP 9.0
1.Test menu item is renamed as Automation
2.Settings option is moved from test menu item to file menu item
3.Quality center connection option is moved from tools menu item to file menu item
4.Step menu item is removed and all the options present under it are kept in the edit menu item
5.A new menu item window is introduced used for managing the window
6.A new option by name function definition generator is introduced which is used for creating the functions easily
7.New options are provided for commenting and un commenting the block of statements
8.A new option by name check syntax is introduced under tools menu item used for checking the syntax of script
9.Some of the options related to the resources like object repository, recovery scenario manager are moved from tools menu item to a new menu item resources
10.A new menu item resourced is introduced with some new options like object repository manager and associate repositories
11.Object repository manager is used for creating and managing the shared repositories with out having any connection to the test
Anatomy of QTP 9.0:
QTP 9.0 screen can be divided in to 7 parts
1. Test pane
2. Active screen
3. Data table
4. Debug viewer pane
5. Tool Options
6. Information screen
7. Missing resources screen
6.Information screen:
Information pane is used for viewing the syntax related information during the syntax Check
Main change: One can associate one or more shared repositories to an action a part from its local repository
7.Missing resources:
When the test is being open if at all any associate resources like repositories, library files, recovery files are missing then the complete information related to that will be shown in the missing resource pane
2.Settings option is moved from test menu item to file menu item
3.Quality center connection option is moved from tools menu item to file menu item
4.Step menu item is removed and all the options present under it are kept in the edit menu item
5.A new menu item window is introduced used for managing the window
6.A new option by name function definition generator is introduced which is used for creating the functions easily
7.New options are provided for commenting and un commenting the block of statements
8.A new option by name check syntax is introduced under tools menu item used for checking the syntax of script
9.Some of the options related to the resources like object repository, recovery scenario manager are moved from tools menu item to a new menu item resources
10.A new menu item resourced is introduced with some new options like object repository manager and associate repositories
11.Object repository manager is used for creating and managing the shared repositories with out having any connection to the test
Anatomy of QTP 9.0:
QTP 9.0 screen can be divided in to 7 parts
1. Test pane
2. Active screen
3. Data table
4. Debug viewer pane
5. Tool Options
6. Information screen
7. Missing resources screen
6.Information screen:
Information pane is used for viewing the syntax related information during the syntax Check
Main change: One can associate one or more shared repositories to an action a part from its local repository
7.Missing resources:
When the test is being open if at all any associate resources like repositories, library files, recovery files are missing then the complete information related to that will be shown in the missing resource pane
Wednesday, July 2, 2008
Data Base Connection,Oracle connection and SQLServer connection
M.S Access Connection:
Dim con, rs
Set con = createobject("adodb.connection")
Set rs= createobject("adodb,recordset")
con.provider= "microsoft.jet.oledb.4.)0"
con.open "d:\test data.mbd"
rs.open "select * from info", con
Do while not rs.eof
vbwindow("Form1").VbEdit("val1").Set rs.fields("v1")
vbwindow("Form1").VbEdit("val2".set rs.fields("v2")
vbwindow("Form1").VbButton("add").Click
rs.movenext
Loop
Oracle connection:
Con .open “provider =oraoledb.1;server=local host;uid=scott;pwd=tiger;database=testdata;”
SQLServer connection:
Con.open provider= sqloledb.1; server=local host; uid=sa; pwd=; database= test data;”
Dim con, rs
Set con = createobject("adodb.connection")
Set rs= createobject("adodb,recordset")
con.provider= "microsoft.jet.oledb.4.)0"
con.open "d:\test data.mbd"
rs.open "select * from info", con
Do while not rs.eof
vbwindow("Form1").VbEdit("val1").Set rs.fields("v1")
vbwindow("Form1").VbEdit("val2".set rs.fields("v2")
vbwindow("Form1").VbButton("add").Click
rs.movenext
Loop
Oracle connection:
Con .open “provider =oraoledb.1;server=local host;uid=scott;pwd=tiger;database=testdata;”
SQLServer connection:
Con.open provider= sqloledb.1; server=local host; uid=sa; pwd=; database= test data;”
Automation Object Model
Automation object model: (AOM)
Automation object model is a concept provided to automate the operations on QTP through scripting
Dim qtapp
Dim qttest
Set qtapp= create object (“quicktest.application”)
Qtapp.launch
Qtapp.visible
Qtapp.open”d:\aom1”, true
Set qttest=qtapp.test
Qttest.run
Qttest.close
Qtapp.open “d:\aom122”, true
Set qttest= qtapp.test
Qttest.run
Attest.close
Qtapp.quit
Automation object model is a concept provided to automate the operations on QTP through scripting
Dim qtapp
Dim qttest
Set qtapp= create object (“quicktest.application”)
Qtapp.launch
Qtapp.visible
Qtapp.open”d:\aom1”, true
Set qttest=qtapp.test
Qttest.run
Qttest.close
Qtapp.open “d:\aom122”, true
Set qttest= qtapp.test
Qttest.run
Attest.close
Qtapp.quit
Tuesday, July 1, 2008
DATA TABLE METHODS In QTP
Data table methods are used for performing the operations on the runtime data table and Input/Out put Parameters
read more | digg story
read more | digg story
Subscribe to:
Posts (Atom)




