TechGig Webinar by Ashu Chandra - Test Execution and Reporting
Overview
Overview
- Test Bed Preparation
- Environment where to test - ensure we have the rite version or the app server/database/application (AUT - app under test)
- Execute Tests
- Analyze unexpected behavior - this is when we see a difference in the expected result and actual result
- How to drill down
- What to look for
- not every unexpected behavior is a bug
- report bugs
- When we get a bug we should report the bug in crisp and clear way to dev
- so that dev can recreate it quickly
- bug lifecycle
- What stages does a bug go through
- exit criteria (when to stop testing)
- how much should we test
- report test findings
- best practices
Test Bed Preparation
- Ensure you have required hardware/operating system
- availability of qa environment of interface applications
- If there are intermediate systems we should check their requirements too
- setup environment as per supported platform (DB version, app server version etc)
- SUT installation from version control
- usually we shouldn't accept requirements which aren't version controlled
- we should know what we are testing
- prepare master data required as per test suite
- normally data is created once and we usually export it to a dump file
- we should take care of all the criteria to create our test data
Execute Tests:
- Execution of test cases can be done:
- manually
- automated test tools like qtp, selenium, watir
- we can also use a combination of the above too
- the tests which are part of the core functionality are good candidates for autoamtion as there will be minimal changes to the tests
- Execute documented test cases
- Most important ones first - why
- becoz we should identify the most imp to business first so that dev can work on the fixes to the bugs created first and they have more time to work on such high imp
- Exploratory testing
- Apart from what we documented we should also go for exploration
- execution on the fly - gets the creativity of the manual tester out
- Define and execute the test case at the same time
- useful when you get new information
- discovering a new failure that requires investigation
- in real world we keep getting information abt the AUT during the test execution phase only thus exploratory testing is helpful for such requirements
- baseed on the bugs discovered from documented tests, the tester gets a hunch of which areas are test prone
- We should try finding more and more bugs but then we should also stick to our test timelines
- along with sticking with timelines we should also
Analyze unexpected behavior
- Tips for analyzing unusual behavior
- reproduce - test it again; on other supported platforms (browser/os)
- one should test the bug or recreate it at least thrice before filing it
- isolate - test it differenly
- try to pin point which exact scenario isn't working
- see which area is failing
- generalize - test it differently
- compare - review results of similar tests
- was it working before?
- document clearly - crisp sequence of steps, include screenshot, attach application/server logs(as applicable)
- review - be sure
- Why bugs can be un-reproducible
- intermittence (in specific workflow, with specific data)
- thus we should log in as many details as possible with the bug
- inconsistent test/dev environment
- we should be well aware of the similarities and differences in the two environments should be known
Bug Reporting
- Importance of bug reporting
- tangible output of testing
- describes failure mode in SUT (system under test)
- communication to developers
- will communicate the details of when/how/where we got the bug
- in today's business world, the tester and the dev aren't in the same geographically distribued - thus in such scenario, it is very important that the bug reporting is proper
- possible that dev and tester are from different organization too (third party testing) - thus bug reporting should be formal here
- Quality indicators for good bug report
- clear to management
- bug report isn't just for dev
- managers senior levels take a look at it
- mostly depicts the progress the team is making
- actionable by development
- the whole objective of bug reporting is that the dev will have a good idea of what's at hand, their action items
- move quickly from opened to closed
- with the details given in the bug, the dev should be able to quickly recreate it
- also should be able to pinpoint where the app is going wrong
- by given such a bug report the tester is working constructively towards team's success
- report format - typical list can be more
- problem title - brief summary or one liner
- description
- steps to reproduce
- enumerating the steps
- give exact paths - no assumptions
- testing environment
- jot down all details of the environment
- actual results
- we encountered while executing the tests
- expected results
- what were we expecting from the test
- severity - based on the customer's risk
- we decide as testers on what the severity is
- priority - urgency to fix
- usually given by the dev
- apart from above we can attach screenshot along with various logs
- severity
- 0 - critical crash
- 1 - functionality not working as designed. no workaround exist
- 2 - functionality working but work around exists
- 3 - cosmetic issue not a functional issue
- priority
- priority 1 - high : immediate fix needed
- priority 2 - medium
- priority 3 - low
- when severity is high priority is high - mostly true : in some cases like a crash of app is a high severity but then this is happening in a feature which is rarely used thus this is of low priority
- bug reporting tool
- Bugzilla
- QC
- Use tools against excel sheets becoz, reports, search, editing is easier in tools than in excel - automatic emails/response updates given when using tools
bug life cycle
exit criteria - when to stop testing
- exit criteria is defined during test planning stage
- typical test exit criteria:
- all identified test cases executed
- no critical and major bugs open
- prioritize testing so that whenever you stop testing, you have done the best testing in the time available
- this will ensure that even when you are asked to stop testing abruptly, the time given was best utilized
- what we mean by important test case is that we follow a 80-20 rule: which means that this feature is used 80% of time or 80% of users use this feature for sure
test reporting - concepts
- testing produces very valuable information
- should be communicated effectively
- test report covers
- current quality
- how many features are working as they were designed
- test progress
- how many features were test complete
- test efficiency
- not a good sign when more bugs are found during the end of test cycle
- how effectively the testing time utilized properly - prioritizing is helpful here
- sometimes we overwork during releases to complete the testing - becoz build which were given weren't proper - all this can be worked out if we plan properly
- coverage
- where more bugs were found
- which module is stable compared to others
test reporting format
- project overview
- types of testing done(system, performance, stress)
- bug tracking (inflow, outflow, open(cumulative))
- this gives me an idea how quickly the bugs were caught, how quickly the caught ones were fixed, how quickly the fixed ones were closed
- defect analysis (module/priority/severity/build release)
- which area were more bugs
- which module had more severe bugs
- helps in prioritizing future builds/bugs
- lots of bugs but mostly cosmetic - this will help us know that there is no reason for alarm
- invalid and un-reproducible bugs
- we should track these as it will help us get know the areas where the tester should improve on
- thumb rule 5 - 10% of invalid bugs is acceptable
- it doesn't mean we shouldn't have any
- when in doubt if its a bug or not, best solution is to file the bug - so that we don't miss it
- observations about the release
- don't give an opinion abt the quality
- let the data talk
- thus put your observations in the form of data - like 20 severity 1 bugs found etc
- more such bugs the more time it takes to test the bug
- recommendations
- recommend that test manager recommends if we should go for a release or not
- giving details on how the TM is supporting his/her decision
- many a times quality is considered as causes for delays to release - but we should consider them as ppl who are testing it in and out and giving constructive
best practices of test execution and reporting
- find the scary bug first
- test area with high risk first
- finding a high severity bug in the last week of testing isn't good for the project at all
- crisp communication of findings
- capture findings clearly with relevant details
- we have dashboards now coming with the tools - we can use them
- circulate these findings to appropriate parties
- this should be done at required intervals
- adapt to evolving circumstances
- number of bugs cannot be predicted
- external dependencies (delayed build, change in priorities etc)
- we should be ready to plan at short notices because of the issues found
- change in resources/priorities can happen which aren't in control
- thus again prioritizing is very effective to utilize the time frame available
- work towards early resolution of blocking issues
- blocker is a bug which doesn't allow us to initiate the test itself
- thus blocker blocks all the other workflow related to it
- we can always skip this part and test the rest but then when we leave/skip a blocker workflow it appears as a grey area for us
- so its always good to resolve the blocker as soon as possible
tester's job isn't just to be the gate keeper for quality but we should be proactive - gain the confidence of dev and manager and show that we are also working for quality of the product
Extra Points Discussed during questions:
- Test Coverage Tools: depends on the code on which your app is written
- 100% test Coverage - its not possible in real time based on various aspects involved - so many error paths - time available - environmental - objective should be that the core functionality
- Can there be a scenario where exit criteria changes? - Management level decision, where compromises are done...
- Ideally priority of a bug should be decided by? - this decision is part of the tester's screen when logging the bug
NOTE: Please note that these are my notes and it contains modifications to the content given on the source site. Also, for any content which was used directly from the source, all the copyrights at source apply too!
Comments