Build Strong Edge Test Cases

build strong edge test casesBuild Strong Edge Test Cases

If you are a software engineer, there is a lot of effort in software testing.  With management demanding more and more quality, there is a strong push to create efficient test cases which prevent defects occurring in production.   In my 15+ years of software testing, I have found that most organizations do a very good job in covering your happy path scenarios.   I have however found that creation of negative test cases and development of edge test cases are very limited.   The main reason for this is that there is often very little time but more importantly, a lack of creativity to build these scenarios.

Creating strong edge test cases requires a very creative mind.  Sure, you need to be able to understand how the system works, but you also need to think outside the box and ask the hard questions in your test case workflows.  If you only go by a rigid set of requirements and never deviate outside of that you aren’t going to find any edge scenarios.  Building strong edge test cases requires solid application knowledge.  For example, it is important to know what will happen when the same user tries to access the same information and perform an update on it.  Will the record get locked?  Which person will update the record?  These are the types of questions that have to be answered.  Here are some additional potential edge scenarios:

  • Have a user login and disable the user to see what happens
  • Have two users try to update the same record
  • Disable the connection between the application and database
  • Have the same user try to login from two different computers

There are many more possibilities when building edge scenarios.  Over a period of time, you can begin to identify these edge test cases a lot easier, and you will begin to see tendencies which will cause these conditions.  Chances are pretty great that if the application will allow you to do something, your business user is going to try it.  These edge scenarios are also the ones that the development team is not typically going to think about, so they often will not program for it, and it will really require some thinking on their part.  These edge test cases will often stir up a lot of controversy, because these are often things that are not spelled out in the requirements.  Some of them will usually result in some significant frustration from a business perspective because it can cause a lot of uncertainty and could impact downstream processes because it wasn’t identified.

Edge test case can also typically be negative scenarios.  They could be automated, but they may not be the best candidates, because they are often complex in nature.  These are the types of things that requires deep thinking and creativity.  The testers that are the most creative, will always strive to get to the edge of coverage and push beyond in order to prevent business users from finding defects.   The good thing about edge testing is that you can perform these types of test in waterfall, agile or other SDLC cycles.

5 Step Install Robot Framework Ride using PIP

software testingIf you would like to learn how to 5 step install robot framework ride using PIP I can provide a simple process and get it installed quickly.  You have probably already installed Python, and most people use pip to make it super easy.  I have outlined the 5 steps below to install robot framework ride using pip.

 

RIDE is a lightweight and intuitive editor for Robot Framework test data.  If you would like to learn more information about the RIDE framework click here.

5 Step Install Robot Framework Ride using PIP

Step 1: Find Install location

Go to the location where you have installed Python.

Step 2: Copy the path of the folder location.

Step 3: Type cmd to open the command line

Step 4: Type cd and paste the path of the directory.

Step 5: Type pip install robotframework -ride and press Enter

5 Step Install Robot Framework Ride using PIP

That is it.  The 5 Step Install Robot Framework Ride using PIP.

 

5 Step Install PYWIN32 using PIP

software testingIf you would like to learn how to install pywin32 using pip I can provide a simple 5 step process and get it installed quickly.  You have probably already installed Python, and most people use pip to make it super easy.  I have outlined the 5 steps below to install pywin32 using pip.

 

If you have not configured Selenium with Eclipse click here.

Python extensions for Microsoft Windows Provides access to much of the Win32 API, the ability to create and use COM objects, and the Pythonwin environment.  If you want to learn more about the benefits of pywin32 click here.

5 Step Install PYWIN32 using PIP

Step 1: Find Install location

Go to the location where you have installed Python.

Step 2: Copy the path of the folder location.

Step 3: Type cmd to open the command line

Step 4: Type cd and paste the path of the directory.

Step 5: Type pip install -U pywin32 and press Enter

5 step install pywin32 using pip

 

That is it.  The 5 Step Install PYWIN32 using PIP has been installed successfully using PIP.

 

Install wxPython GUI Toolkit for Using PIP

If you are starting to learn how to use wxPython GUI Toolkit for Python so that you can get a jump start on developing test scripts using Python with Selenium.  You have probably already installed Python, and most people use pip to make it super easy.  I have outlined the steps below that are needed to get it up and running.

 

If you have not configured Selenium with Eclipse click here.

If you want to learn more about the benefits of the wxPython click here.

Install wxPython GUI Toolkit for Python

Step 1: Find Install location

Go to the location where you have installed Python.

Step 2: Copy the path of the folder location.

Step 3: Type cmd to open the command line

Step 4: Type cd and paste the path of the directory.

 

Step 5: Type pip install -U wxPython and press Enter

Install wxPython GUI Toolkit for Python

 

That is it.  The wxPython GUI Toolkit for Python has been installed successfully using pip.

If you would like to learn more about Selenium click here.

 

Install Python Robot Framework for Selenium using PIP

Install Java and Selenium WebDriverIf you are starting to learn how to use Selenium with Python it is a great idea to download a framework so that you can get a jump start on developing test scripts using Python with Selenium.  You have probably already installed Python, and most people use pip to make it super easy.  I have outlined the steps below that are needed to get it up and running.   This is the first time I have installed pip so you will be able to see the process from beginning to end.

 

If you have not configured Selenium with Eclipse click here.

If you want to learn more about the benefits of the Robot framework click here.

Install Python Robot Framework for Selenium using PIP

Step 1: Find Install location

Go to the location where you have installed Python.

Step 2: Copy the path of the folder location.

Step 3: Type cmd to open the command line

Step 4: Type cd and paste the path of the directory.

 

Step 5: Type pip install robotframework and press Enter

robot framework installed successfully

That is it.  The Python Robot Framework for Selenium has been installed successfully using pip.

If you would like to learn more about Selenium click here.

 

Big Changes in Selenium 4

Selenium 4Selenium 4 Alpha Download Available

If you are looking for Selenium 4 Alpha version, you can find it here.  While it is not recommended to use an Alpha version for full implementation, it will let you see what new changes are there and it will help you figure out what changes you will need to make moving forward and understand the benefits,

Selenium 4 Official Release Date

As of now, there hasn’t been an announcement on when Selenium 4 will officially be released.  Once we know that, we will provide the updated date.

Selenium 4 Changes

Here are some of the major changes that will happen in Selenium 4

  1. W3C Selenium WebDriver standardization- The goal is to have Selenium WebDriver completely standardized.   There are other tools and products that use WebDriver so this is a must have.  Specifically mobile testing tools like Appium and iOS Driver heavily rely on it.  With the change coming in Selenium 4, the test will now be able to directly communicate without using API encoding/decoding using the W3C protocol.
  2. Selenium IDE Support for Chrome-There will be much more advanced capabilities with the new update.  There will be a completely new way using a new plug-in to Selenium 4.  There will also be a new CLI Runner that will leverage NodeJS and have the following capabilities:
    • WebDriver playback
    • Parallel execution
  3. Improved Selenium Grid-While Selenium Grid is very powerful in that it allows tests to run in parallel, it is very difficult to initially setup and configure.  In Selenium Grid, the hub acts like a server and it controls which tests are run.  The node are the test machines where the Selenium test scripts are run.  With Selenium 4, there will be improved changes related to the hub.
  4. Improved Selenium Grid UI-Selenium 4 will have an improved user experince with a much richer UI.
  5. Improved Debugging/Logging capability-It is important for the automated engineers to have as much detail as possible when it comes to logging and debugging of issues.  Selenium 4 promises to provide that in order to accelerate resolution of script issues.
  6. Selenium 4 Documentation– The documentation hasn’t been updated since Selenium 2.0.  Documentation is critical and it is important that it is updated so that automated test engineers will not have to wonder how to use Selenium 4.

I hope this information has been helpful.  I will be thrilled to see the new Selenium 4 version when it is officially released.  For now, you can download Selenium 4 Alpha version from the link provided above.  Once the official version is released, you will be able to download it from the SeleniumHQ website.