Showing posts with label Mann. Show all posts
Showing posts with label Mann. Show all posts

Thursday, 5 July 2012

SCRUM ROLE : THE SCRUM TEAM


Scrum teams do not include any of the traditional software engineering roles such as programmer, designer, tester, or architect. Everyone on the project works together to complete the set of work they have collectively committed to complete within a sprint. Scrum teams develop a deep form of camaraderie and a feeling that "we're all in this together".

A typical Scrum team is 5-9 people. Rather than scaling by having a large team, Scrum projects scale through having teams of teams. 

Although not the only thing necessary to scale Scrum, one well-known technique is the use of a "Scrum of Scrums" meeting. With this approach each Scrum team proceeds as normal but each team identifies one person who attends Scrum of Scrum meetings to coordinate the work of multiple Scrum teams. These meetings are analogous to the Daily Scrum Meeting, but do not necessarily happen every day. In many organizations, having a Scrum of Scrums meeting two or three times a week is sufficient.

Wednesday, 4 July 2012

SCRUM ROLE : SCRUM MASTER


The ScrumMaster is responsible for making sure a Scrum team lives by the values and practices of Scrum. The ScrumMaster is often considered a coach for the team, helping the team do the best work it possibly can. The ScrumMaster can also be thought of as a process owner for the team, creating a balance with the project's key stakeholder, who is referred to as the product owner.

The ScrumMaster does anything possible to help the team perform at their highest level. This involves removing any impediments to progress, facilitating meetings, and doing things like working with the product owner to make sure the product backlog is in good shape and ready for the next sprint. The ScrumMaster role is commonly filled by a former project manager or a technical team leader but can be anyone.

The ScrumMaster is also often viewed as a protector of the team. The most common example is that the ScrumMaster protects the team by making sure they do not over-commit themselves to what they can achieve during a sprint due to pressure from an overly aggressive product owner. However, a good ScrumMaster also protects the team from complacency.

Many who are new to the ScrumMaster role struggle with the apparent contradiction of the ScrumMaster as both a servant-leader to the team and also someone with no authority. The seeming contradiction disappears when we realize that although the ScrumMaster has no authority over Scrum team members, the ScrumMaster does have authority over the process. Although a ScrumMaster may not be able to say, “You’re fired,” a ScrumMaster can say, “I’ve decided we’re going to try two-week sprints for the next month.”

The ScrumMaster is there to help the team in its use of Scrum. Think of the help from a ScrumMaster as similar to a personal trainer who helps you stick with an exercise regimen and perform all exercises with the correct form. A good trainer will provide motivation while at the same time making sure you don’t cheat by skipping a hard exercise. The trainer’s authority, however, is limited. The trainer cannot make you do an exercise you don’t want to do. Instead, the trainer reminds you of your goals and how you’ve chosen to meet them. To the extent that the trainer does have authority, it has been granted by the client. ScrumMasters are much the same: They have authority, but that authority is granted to them by the team.

A ScrumMaster can say to a team, “Look, we’re supposed to deliver potentially shippable software at the end of each sprint. We didn’t do that this time. What can we do to make sure we do better the next sprint?” This is the Scrum- Master exerting authority over the process; something has gone wrong with the process if the team has failed to deliver something potentially shippable. But because the ScrumMaster’s authority does not extend beyond the process, the same ScrumMaster should not say, “Because we failed to deliver something potentially shippable the last sprint, I want Tod to review all code before it gets checked in.” Having Tod review the code might be a good idea, but the decision is not the ScrumMaster’s to make. Doing so goes beyond authority over the process and enters into how the team works.

Thursday, 28 June 2012

Scrum Role : Product Owner

When working with Scrum the product owner is typically a project's key stakeholder. It is important that this person has a vision of what they wish to build and that he or she is able to convey that vision to the scrum team. This is key to successfully beginning any agile software development project. Product owner's do this through in part through the product backlog, which is a prioritized features list for the product.

The product owner is commonly a lead user of the system or someone from marketing, product management, or anyone with a solid understanding of users, the market place, the competition, and of future trends for the domain or type of system being developed. This of course varies tremendously based on whether the team is developing commercial software, software for internal use, hardware, or some other type of product. The key is the person in this role needs to have a vision for what is to be built.

Although the product owner prioritizes the product backlog, during the sprint planning meeting the team selects the amount of work they believe they can do during each sprint and how many sprints will be required. The product owner does not get to say, "We have four sprints left, therefore you must do one-fourth of the product backlog this sprint." The product owner's job is to motivate the team with a clear, elevating goal. Team members know best what they are capable of and so they select which user stories from the top of the product backlog they can commit to delivering during any sprint.

In return for the scrum team's commitment to completing the selected user stories from the top of the product backlog, the product owner makes a reciprocal commitment to not throw new requirements at the team during the sprint. Requirements are allowed to change (and change is encouraged) but only outside the sprint. Once the team starts on a sprint it remains maniacally focused on the goal of that sprint.

Monday, 28 May 2012

How to Improve Software Testing Process / Practice

Improving the testing process is not the responsibility of test team only. It is a joint effort of Development & Testing team and Management to understand the health of existing testing process and identify the necessary measures to improve it.

Points for Software Testers:

  1. Try to understand the logic behind the screen and try to break that logic. Understand the internal workings of code from developers during lunch time or tea breaks.
  2. Analyse test results thoroughly. Try to identify root cause from functional perspective.
  3. Break the application into smaller functional modules.
  4. First write test cases for valid conditions, then cover invalid conditions.
  5. While writing test cases, refer design documents as well.
  6. As soon as you complete the test case writing, share test case with development team. It could result in time saving.
  7. During test case writing phase, group test cases using impact analysis. It will help in effective regression testing in less time.
  8. If you are new tester for a old development team, have a look on old bug reports of modules / project where development worked previously. Generally developers, repeat similar mistakes.
  9. Test the application for both implicit as well as explicit requirements.
  10. Never communicate bugs verbally. For any critical / show stopper bugs, have an immediate discussion & then document via mail and share it to relevant stack holders.

Thursday, 10 May 2012

Difference Between System Testing and End to End Testing

System Testing: In System testing, we will test the functional, performance and usability of the software. This includes stress, usability and performance testing. For Example, if we are testing a web application, we will check if the website is performing correctly as per the software requirements or not.

End to End Testing:  End to end testing means testing the flow of the functionality of the software from start point to end point. For Example, checking whether the functionality of web application from starting to end.

Wednesday, 9 May 2012

Severity and Priority of Defects

Generally we have to set the Severity and Priority level for a Defect. Severity level will be set by the Testing Team and the Priority level will be set by the Development Team.

Severity : Severity means how much severe is the particular defect in the application (i.e.) how it affects the functionality of the application.

Severity levels: Trivial, Minor, Major, Critical, Block

Priority : Priority means the importance and urgency to fix the defect by the developers (i.e.) which defect should be fixed first and which should be fixed in later versions.

Priority Levels: Low, Medium, High, Urgent, Immediate.

The Severity and Priority levels must vary depends upon the company and the defect tracking tool used by the company.

Some E.G:

Low Priority: Spelling mistakes, grammatical errors, Textual Errors, Orphan pages, broken links, GUI errors,

High Priority: Wrong Functionality, Applications Crashes, Errors.

Monday, 7 May 2012

Practical Differences in Verification and Validation


No
Verification
Validation
1
Verification is a STATIC testing procedure.
Validation is DYNAMIC testing procedure.
2
It involves verifying the requirements, detailed design documents, test plans, walkthroughs and inspections of various documents produced during the development and testing process.
Validation involves actual testing of the product as per the test plan (unit test, integration test, system test and acceptance test etc).
3
It is a PREVENTIVE procedure.
It is a CORRECTIVE procedure.
4
Are we building the product RIGHT?
Are we building the RIGHT product?
5
It involves more than two to three persons and is a group activity.
It involves the testers and sometimes user.
6
It is also called Human testing, since it involves finding the errors by persons participating in a review or walk through.
It is also called Computer testing, since errors are found out by testing the software on a computer.
7
Verification occurs on Requirements, Design and code.
Validation occurs only on code and the executable application.
8
Verification is made both in the Executable and Non Executable forms of a work product
Validation is done only on Executable forms of a work product.
9
Verification finds errors early in the requirement & design phase and hence reduces the cost of errors.
Validation finds errors only during the testing stage and hence cost of errors reduced is less than Verification.
10
An effective tool for verification tool is a Checklist.
Various manual and automated test tools are available for Validation.
11
It requires cooperation and scheduling of meetings and discussions.
It is to check that the product satisfies the requirements and is accepted by the user.
12
Verification tasks include:
1) Planning
2) Execution
Validation tasks include:
1) Planning
2) Test Development
3) Test Execution
4) Test Maintenance
13
Verification activities include:
1) Requirements Verification
2) Functional design verification
3) Internal Design Verification
4) Code Verification
Validation activities include:
1) Unit testing
2) Usability testing
3) Function testing
4) System testing
5) Acceptance testing
14
Verification deliverables (work products) are:
1) Verification test plan
2) Inspection report
3) Verification test report
Validation deliverables are:
1) Test plan
2) Test Design Specification
3) Test Case Specification
4) Test Procedure Specification
5) Test log
6) Test incident report

Test Case Design - Effectiveness and Efficiency

A test that exercises the software in ways that we know will work proves nothing.

We know that if we run the same test twice we learn very little second time round. If we know before we run a test, that it will almost certainly work, we learn nothing. If we prepare a test that explores a new piece of functionality or a new situation, we know that if the test passes we will learn something new - we have evidence that something works. If we test for faults in code and we try to find faults in many places, we increase our knowledge about the quality of the software. If we find faults, we can fix them. If we do not find faults, our confidence in the software increases.

Effective Tests: When we prepare a test, we should have some view on the type of faults we are trying to detect. If we postulate a fault and look for that, it is likely we will be more effective. In other words, tests that are designed to catch specific faults are more likely to find faults and are therefore more effective.

Efficient Tests: If we postulate a fault and prepare a test to detect that, we usually have a choice of tests. We should select the test that has the best chance of finding the fault. Sometimes, a single test could detect several faults at once. Efficient tests are those that have the best chance of detecting a fault.

By: Mann Bhammar
      Test Analyst

Friday, 4 May 2012

Object Identification in QTP

Generally for every object 20-25 properties description are available in QTP, it recognizes object uniquely using 2 or 3 important one.

QTP has default object identification configuration for every environment, if we feel that configuration is not sufficient for recognizing objects in our application, we can configure some more.

There are three type of Object Identification:
  1. Normal Identification: Mandatory and Assistive Properties
  2. Smart Identification: Base Filter and Optional Filter Properties
  3. Ordinal Identifier: Location, Index and Creation Time (Only for Browser).
1. Normal identification:

First of all the QTP learns all the mandatory properties whether these are enough to identify the object uniquely. If it still can’t identify the object then it looks for assistive properties. Ordinal Identifier is used when mandatory and assistive properties are failed to identify the object.

2. Smart Identification:

Smart identification is an optional feature, if we feel normal identification is not sufficient for any object, and then we configure Smart Identification for that object, in order to avoid Ordinal Identifier.
After normal identification if QTP is not satisfied then it goes to smart identification. In smart identification 2 types of properties available, first QTP learns all base filter properties at a time and thinks whether these properties are sufficient for identifying the object uniquely. If it feels sufficient, then it stops learning otherwise it goes Optional Filter Properties and learns one by one. Still it feels not satisfied finally it goes to Ordinal Identifier.

3. Ordinal Identifier: For more information on ordinal identifier click here....


By: Mann Bhammar
      Test Analyst

Wednesday, 2 May 2012

Regular Expressions in QTP

Regular expressions enable QTP to identify objects and text strings with varying values. You can use regular expressions only for values of type string.

It can be used when:

  • Defining the property values of an object in dialog boxes or in programmatic descriptions.
  • Parameterizing a step.
  • Creating checkpoints with varying values.
We can define a regular expression for a constant value, a Data Table parameter value, an Environment parameter value, or a property value in Descriptive programming. 

We can define a regular expression in standard checkpoint to verify the property values of an object; we can set the expected value of an object's property as a regular expression so that an object with a varying value can be verified.

We can define the text string as a regular expression, when creating a text checkpoint to check that a varying text string is displayed on our application, For XML checkpoints we can set attribute or element values as regular expressions. 

In QTP, when working with Regular Expressions and varying object descriptions can be handled by using Descriptive Programming.

E.G:  Let assume in my Gmail Account I have one unread mail into my Inbox(2) and once I read one mail now it is Inbox(1). In this scenario we will use Regular Expression as shown in script.

'DP for Inbox(2)

cm_d("text").value = "Inbox.*"     ‘.* is used as Regular Expression

If Link(cm_d).Exist(2) Then
    Link(cm_d).Click
            else
            msgbox "Link not present"
End If

By Mann Bhammar
     Test Analyst

Tuesday, 1 May 2012

When to use Descriptive Programming in QTP ?????

  • When object (properties) are dynamic. Ex: “Logout << Username >> or You are Signed in as << User >>
  • When Object Repository is getting very large.
  • When you don’t want to use Object Repository. As the OR is being shared and used by other scripts, and you don’t want to change the properties in shared OR.
  • When there is no object repository. Ex: When the application is still in development and we are building an automation framework parallel to the SDLC.
  • When same objects repeat in every page. Ex: Links like Logout, Help, Contact FAQ’s are present in every page of your web application and adding these repetitive objects to repository is not a good option.
By: Mann Bhammar
      Test Analyst

Functional (Black Box) Testing and Structural (White Box) Testing

Functional Part is a software testing approach in which: 
  • This is done by Testers.
  • Functional Testing is also known as Black Box Testing or behavioural testing.
  • The tester will have a user perspective in mind.
  • It focuses on the functional part of the application.
  • He doesn’t know how the program works in back end.
  • He will only concentrate in input and output of the application or product.
  • The tester acts as if he/she is the final user of the program.
On other hand Structural Part, is a software testing approach in which: 
  • Structural Testing is also known as white-box testing or Glass Box testing.
  • The tester will have a developer perspective in mind or this is done by Developer.
  • Sometime tester acts as a developer of the program who knows the internal structure of the program very well.
  • He or she will know how the program works behind the scene, with knowing the Internal Knowledge of the product /Application.
  • Its main focus is on the structural part means in coding/programming part.
  • Structural is mainly focused on internal code whereas functionality is verified with respect to SRS. 
Please also refer below table for more understanding.
Differences between Black Box Testing and White Box Testing:

Criteria
Black Box Testing     
White Box Testing


Definition       
Black Box Testing is a software testing method in which the internal structure/ design/ implementation of the item being tested is NOT known to the tester    
White Box Testing is a software testing method in which the internal structure/ design/ implementation of the item being tested is known to the tester.
Levels Applicable To 
Mainly applicable to higher levels of testing: Acceptance Testing and System Testing
Mainly applicable to lower levels of testing: Unit Testing & Integration Testing
Responsibility
Generally, independent Software Testers        
Generally, Software Developers
Programming Knowledge
Not Required 
Required
Implementation Knowledge
Not Required 
Required
Basis for Test Cases   
Requirement Specifications   
Detail Design

By: Mann Bhammar
       Test Analyst

Saturday, 28 April 2012

Ordinal Identifier in QTP

Ordinal identifier is the one of the most important property of any object. You can see this property at right side of object repository window in QTP. Press Ctrl+R to open object repository window.

The ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with an otherwise identical description (objects that have the same values for all properties specified in the mandatory and assistive property lists). This ordered value enables QTP to create a unique description when the mandatory and assistive properties are not sufficient to do so.

In addition, even if QTP learns an ordinal identifier, it will use the identifier during the run session only if the learned description and the Smart Identification mechanism are not sufficient to identify the object in your application. If QTP can use other identification properties to identify the object during a run session, the ordinal identifier is ignored.

QTP can use the following types of ordinal identifiers to identify an object:

  • Index. Indicates the order in which the object appears in the application code relative to other objects.
  • Location. Indicates the order in which the object appears within the parent window, frame, or dialog box relative to other objects.
  • CreationTime. (Browser objects only.) Indicates the order in which the browser was opened relative to other open browsers.


By: Mann Bhammar
      Test Analyst

Tuesday, 24 April 2012

What are the drawbacks of record and playback method in QTP? And what is the solution to overcome these drawbacks?

There are following reasons why record and playback method has lots of drawbacks:
  • If the objects in the application are dynamic, then record and playback is not useful. In such case objects will not be identified.
  • If you are recording large application then QTP needs to store more number of objects in object repository. QTP performance may decrease when the object repository becomes too large, due to the number of objects added.  As the object repository increases, more resources are required to recognize the objects, which may decrease performance.
  • Object descriptions redundancy: suppose application has 3 navigation buttons on each page say Cancel, next & back buttons and while you record it stores same object description for all pages you navigated while recording.
  • We cannot insert conditional and loop statements if it is only record and playback. You cannot enhance your script in record mode.

Descriptive programming is way to overcome the drawback of record and playback method.

DESCRIPTIVE PROGRAMMING BYPASS OBJECT REPOSITORY

Descriptive Programming is the way of instructing QTP to identify the objects without object repository. In other word, Programming (VBScript) is done without using the object repository is called descriptive programming. To do this we provide QTP the list of properties & values, that qtp can use to identify the object on which we want to perform the operation.

For example if you have unstable application i.e Properties might change or Name of the Object might change and so on. If these frequent changes are happening in an application then we will go for descriptive programming. 

E.G. 1: ("windowid:=2342143")

E.G. 2: Browser("creationtime:=2").Page("title:=Google Search").Link("text:=Codes").Click

BY - Mann Bhammar
         Test Analyst

Friday, 20 April 2012

Debug Viewer Pane in QTP

Debug Viewer:

The Debug Viewer pane contains three tabs to assist you in debugging your test or function library—Watch, Variables, and Command. To view the Debug Viewer pane, click the Debug Viewer button or choose View > Debug Viewer.


Watch:- The Watch tab enables you to view the current value of any variable or VBScript expression that you added to the Watch tab.

Variables:- During a run session, 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 execute a line of script in order to set or modify the current value of a variable or VBScript object in your test. When you continue the run session, QuickTest uses the new value that was set in the command.


By: Mann Bhammar
      Test Analyst

Wednesday, 18 April 2012

Object Repository: QTP

What is Object Repository in QTP?

It is a storage place of QTP where we can store the objects information and it also acts as interface between the test script and the AUT in order to identify the objects during the execution.

So what is Object?

Object is something, which has structure and properties.
What are the software objects: We call them windows, WebPages, Web Buttons, Edit Boxes, Check Boxes etc.

Types of Objects in QTP: There are four types of objects available in QTP.
  1. Run time objects
  2. Test Objects
  3. Utility Objects
  4. Automation Objects/User defined objects
There are two types of repository available in QTP.

1. Local Repository (.MTR extension)
2. Shared Repository (.TSR extension)

Local Repository: QTP creates a Local Repository for every action automatically during Recording. That cannot be shared among tests. User can add some more objects to Local repository. User can perform rename, delete operations in Local Repository. As it is QTP internal file user no need to sav modification.
Navigation: Once QTP is Launched --> Go to Main Menu-->Resources --> Object Repository (Short KEY Ctrl+R)
Shared Repository: User (Test Engineer) creates shared repository by adding objects. That can be shared among number of tests. Using this method user can perform modification on objects easily.

By: Mann Bhammar
      Test Analyst


What are Keyword & Expert views in QTP?

There are two views in QTP for creating tests, Keyword View & Expert view.
Keyword View:
It’s view which allows you to create tests in modular or table format.
Keyword View is QTP’s default test procedure interface. It displays the automation steps of a test procedure as a descriptive tree of actions and functions. The tree contains columns listing the action or function name, parameters, and comments. This mode is useful for the beginners. This view allows the user to select the objects either from the application or from the Object Repository and the user can select the methods to be performed on those objects. The script is automatically generated. Users can also set checkpoints from the keyword view. Users without technical knowledge may be able to understand the Keyword View, but more experienced users and users needing to perform more complicated actions may need to switch to Expert View.
Expert View:
Expert view is simply enables you to write tests as scripts. It displays the test script in VB script format.
Expert view is an alternative to Keyword view. The Expert View displays the same steps and objects as the Keyword View, but in a different format. But as the name suggests this view is for people who are expert in VB scripting.
In Expert View, QTP allows display and editing of the test’s source code using VBScript. All test actions can be edited here except for the root Global action. Expert View acts as an IDE for the test. It includes many standard IDE features, such as breakpoints.

By: Mann Bhammar
      Test Analyst