Skip to main content

Exploratory Testing - Charters

I recently read a presentation on exploratory testing by +Elisabeth Hendrickson on exploratory testing, and it came with an interesting solution to Exploratory Testing, one that offers enough guidance, but isn't a test case. The slides are available here.

I'll take the pieces that I strongly agree with, and discuss them here.

Firstly, defining what exploratory testing is. This is very important, I believe that a number of people view exploratory testing as just randomly using the application under test and trying to break it in any manner possible when in actual fact it should be much more than that, in order to actually be useful. It should be:
  • Targeted
  • Structured
  • Well defined
In order to execute some exploratory testing, I think there needs to be some knowledge of the system under test, how it should behave, and the dependencies of the systems. The tester learns about the system as they begin testing, this information can be fed into the next test, and so on. The difficulty comes in reviewing what is being tested, however, I think this can be achieved with chartered exploratory tests.

I first read about Chartered exploratory tests in the slides that I have linked to above, I really liked the idea behind them, and to me they really make sense as an effective and time efficient manner in testing a system.

To summarise (for those who haven't read the slides above), a chartered exploratory test is made up of the following:

Explore - this is what is being explored under test
With - This is what is going to be used to test the item that is being explored
To Discover - What it is that the test is attempting to find out about the item under test

And now, for an example, we have a PBI that has come in, that means a change to the jQuery library. Each page of the website requires retesting. So for example, the product page (it's the asos website that's under test):

Explore the Product Picture widget on the Product Page with the error console open
With general usage 
To discover any java-script errors are displayed

Explore the Add To Bag and Save For Later functionality on the Product Page with the error console open
With different combinations of Size/colour
To discover any java-script errors are displayed

Explore the recommendations functionality on the Product Page with the error console open
With general usage 
To discover any java-script errors are displayed

I'm sure you can immediately see the benefits of this, as opposed to just:

Exploratory testing of the product page.

As the tester knows that they have to interact with the widgets  with the error console open, otherwise the widgets might behave to the user as they should, but be throwing javascript errors in the background, which the error console will log, and which might have been missed if there was no charter.

This gives the user enough guidance, to generally use the product page, things like those that are highlighted below:

So things like Add To Bag, The Search, Any scroll that uses Javascript, The pictures and the Zoom functionality.

I would feel pretty confident that exploratory testing that is completed using the above charter would catch any Javascript Error that might be hiding in the page.

This, I think you'll agree is far quicker, and more efficient than writing a manual test that tests all of the above.

In designing Charters for Exploratory Testing, you still need to sit down with developers and come up with what the changes are, anything that is likely to break, and then think outside that box in order to come up with a targeted, structured and well defined charter.

I do however think that a new tester could come in and immediately pick up the charters and do their testing around them, with little background knowledge.


Comments

  1. Is there a easy way of documenting these kind of exploratory tests on the fly? and possibly include them in test case documents. I am guessing the answer is use specflow, but that could mean overkill because usually these tests are done quickly one after another. Any thoughts?

    ReplyDelete
    Replies
    1. I would suggest just create them as normal test cases in whatever Test Case Management tool you use (i'm using Microsoft Test Manager currently). This makes it easy to pass/fail the test, and raise bugs against the test case, obviously if you raise a bug it's important to put the steps to recreate in the bug, as the test case itself wouldn't specify exactly what is needed to recreate the bug.

      Delete
    2. Ok. I have not used any sort of test management tool before at all. I Still write test cases in excel sheets. Can you write a post in the future explaining benefits of using one? :)

      Delete
    3. Sounds like a very good idea! I'll let you know when it's done!

      Delete
  2. After reading thru your post on "value of certifications" I enjoyed reading this article. I have been practicing exploratory testing for about 5 years now and I would definitely recommend it to any tester.

    I like the way your have developed your charters. Did you then time box your testing session? Also did you capture notes, bugs, observations when testing in your session sheet? If not I would definitely recommend you to do so.

    ReplyDelete
    Replies
    1. To be honest, this was only used as an example, but yes, it would have been good to timebox the session and like you say, capture notes, bugs etc too :)

      Delete
    2. Hi Sharath ! I’m not much familiar with ‘Exploratory Testing’ methodology, interested to learn its approach. Please help me out to understand “time box of testing session”, capture notes etc

      Delete

Post a Comment

Popular posts from this blog

Coding something simple.... or not! Taking a screenshot on error using Selenium WebDriver

I recently wrote a little function that takes a screenshot at the end of a test if it has errored. What sounded very simple at the start turned out to be quite a bit of work, and quite a few lines of code to handle certain scenarios! It's now over 50 lines of code! I'll start with what I had at the beginning, this was to simply take a screenshot in the working directory, we are using SpecFlow and Selenium to run the tests, so we are going to check if the ScenarioContext.Current.TestError isn't null, if it is, then using Selenium, take a screenshot (note the below code is a simplified version of what I had at the beginning). [AfterScenario]         public static void TakeScreenShotOnError()         {             if (ScenarioContext.Current.TestError == null) return;             var screenshotDriver = Driver as ITakesScreenshot;             if (screenshotD...

How to manage resources within new teams?

Working where I work we are constantly spinning up new teams to take on new workloads as business come up with new demands and new features they want developed and tested. The problem with this is how do we ensure the work of the newly spun up team is of sufficient quality. One method is by taking people from other established teams and placing them on the new team. This works great for the new team, but unfortunately it will oftenl eave the established team lacking in a resource whilst they try and fill the gap left by the person who has left. We are seeing this often with our offshore teams, it can be damaging to the team structure and the teams velocity, but try as I might, I can't think of another way around it. It's far easier to take 1 person from a team that is established than it is to build a whole new team from scratch. At least by leaving the core of a team in place, you should be guaranteeing that the new team are aware of any coding standards or any QA standard...

Considerations when creating automated tests

We recently released to a number of teams our automated regression pack that has been worked on over the past few months. This regression pack tests legacy code, but contains a large number of tests.  As a bit of background, a number of teams are working on new solutions whilst some are still working on legacy code. With this in mind we constructed an email with a list of guidelines when creating new tests that need to be added to this regression pack.  I figured that these can be quite broad so should apply for any organisation, so thought it would make an interesting blog post...  So here goes,  when creating automated tests, it's important to consider and adhere to the following: - Think about data . The tests need to retrieve or set the data they need without any manual intervention - This should help them be more robust and easier to run without manual intervention. - The tests need to be idempotent - By making it so that each test is standalone and does...