Posted on Leave a comment

How to Include Scroll Element into View with Selenium

Sometimes, you are required to perform a test action on an element that is not present in the viewable area of a webpage. What do you do in such a situation? With Selenium, you cannot perform a scrolling action directly. However, this can be achieved with two methods:

  1. Use of JavaScript Executor
  2. Use of actions class to control the HTML DOM element

Method 1: Use of JavaScript Executor

Selenium can execute commands in JavaScript with the help of the execute_script() method. For the JavaScript solution, we have to pass true value to the method scrollIntoView() to identify the object below our current location on the page.

Code Implementation with Javascript Executor can be found below:

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.JavascriptExecutor;
public class ScrollToViewJs{
   public static void main(String[] args) {
      System.setProperty("webdriver.chrome.driver",
      "C:\\Users\\ghs6kor\\Desktop\\Java\\chromedriver.exe");
      WebDriver driver = new ChromeDriver();
      String url = " https://testup.io/documentation/";
      driver.get(url);
      driver.manage().timeouts().implicitlyWait(12, TimeUnit.SECONDS);
      // identify element
      WebElement l=driver.findElement(By.xpath("//*[text()='Book Onboarding Session']"));
      
// Javascript executor
      ((JavascriptExecutor)driver).executeScript("arguments[0].scrollIntoView(true);", l);
      Thread.sleep(800);
      driver.quit();
   }
}

Method 2: Use of actions class to control the HTML DOM element

While working with the Actions class to scroll to view, we have to use the moveToElement() method. This method shall perform mouse movement till the middle of the element.

Code implementation with Action class can be found below:

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.interactions.Action;
import org.openqa.selenium.interactions.Actions;
public class ScrollToViewActions{
   public static void main(String[] args) {
      System.setProperty("webdriver.chrome.driver",
      "C:\\Users\\ghs6kor\\Desktop\\Java\\chromedriver.exe");
      WebDriver driver = new ChromeDriver();
      String url = " https://testup.io/documentation/;
      driver.get(url);
      driver.manage().timeouts().implicitlyWait(12, TimeUnit.SECONDS);
      // identify element
      WebElement l=driver.findElement(By.xpath("//*[text()='Book Onboarding Session']"));
      // Actions class with moveToElement()
      Actions a = new Actions(driver);
      a.moveToElement(l);
      a.perform();
      driver.quit();
   }
}
Posted on Leave a comment

How to run Javascript in Selenium using Python

Javascript is the only programming language that can be used for both frontend and backend development, hence it is safe to say that it is the “programming language of the web” as 100% of responsive websites use Javascript. We use Selenium to do automated testing of web apps or websites or to just automate the web browser. However, the Selenium testing framework is built with Java, C#, Ruby, and Python.

For specific test case scenarios like automatic scrolling and waiting on page load, there is a need for us to write custom Javascript code within Selenium. To achieve this, we typically have to use Python to run Javascript within the Selenium webdriver using the Javascript executor method. The Document Object Model communicates with the elements on the page with the help of Javascript. Selenium executes the Javascript commands by taking in the argument in the execute_script method (the commands to be executed are passed as arguments to the method).

Upon page load, sample code to create the alert “Page Loaded successfully” can be found below:

from selenium import webdriver
driver = webdriver.Chrome(executable_path="C:\\chromedriver.exe")
driver.implicitly_wait(0.5)
driver.get("https://testup.io/documentation/")
# to scroll till page bottom
driver.execute_script("window.scrollTo(0,document.body.scrollHeight);")from selenium import webdriver
driver = webdriver.Chrome(executable_path="C:\\chromedriver.exe")
driver.implicitly_wait(0.5)
driver.get("https://testup.io/documentation/")
# to scroll till page bottom
driver.execute_script("alert('Page Loaded successfully')")

Asynchronous Javascript

Asynchronous Javascript functions typically use the “async” and “await” keywords to categorize functions as asynchronous and wait for the function to run respectively. Async Javascript is typically used for API calls to a database or general CRUD functions.

To run asynchronous Javascript functions in Selenium, you would need to run the executeAsyncScript() method which takes in both the Javascript function you would like to run and the specific wait time by which the function is expected to have been run. This wait time is usually less than 5 seconds (or 5000 milliseconds).

An example code implementation to sleep a browser after 5 seconds of visiting Testup.io can be found below:

import java.util.concurrent.TimeUnit;       

import org.openqa.selenium.JavascriptExecutor;      
import org.openqa.selenium.WebDriver;       
import org.openqa.selenium.firefox.FirefoxDriver;       
import org.testng.annotations.Test;     
            
public class JavaSE_Test {              

    @Test       
    public void Login()                     
    {       
                
        WebDriver driver= new FirefoxDriver();          

        //Creating the JavascriptExecutor interface object by Type casting      
        JavascriptExecutor js = (JavascriptExecutor)driver;     
                
        //Launching the Site.       
        driver.get("https://testup.io/ /");           
     
          //Maximize window     
          driver.manage().window().maximize();      
                
          //Set the Script Timeout to 20 seconds        
          driver.manage().timeouts().setScriptTimeout(20, TimeUnit.SECONDS);            
             
          //Declare and set the start time      
          long start_time = System.currentTimeMillis();         
                   
          //Call executeAsyncScript() method to wait for 5 seconds      
          js.executeAsyncScript("window.setTimeout(arguments[arguments.length - 1], 5000);");           
                
         //Get the difference (currentTime - startTime)  of times.      
         System.out.println("Passed time: " + (System.currentTimeMillis() - start_time));                   
                            
    }       
}

Posted on Leave a comment

No code Automated Testing for React Application (Case Study)

Introduction

React is the most popular JavaScript framework on the internet. According to a survey by statista.com, 36% of web developers use React to develop web and mobile applications. React is currently being used in websites of popular brands such as Netflix, Google, Facebook, Quora, Instagram, Gitlab, and Yahoo.

React has also been referred to as the “future of frontend development” because it is easy to learn, deploy, and leverages Flux design pattern to manage client and server side interaction which is different and more effective than the old Model-View-Controller (MVC) design pattern. Hence, it is projected that more web and mobile applications will be developed with this frontend framework in the future.

There’s no doubt that testing plays a major role in the efficient development of web and mobile applications written with React. With Testup’s Automated testing, developers can save time and stress writing tests for all the features of their web and mobile application, no coding required.

In this article, we would be using Testup to perform Automated Testing for a React-based web application.

Testing a React-based Web application (Netflix)

Netflix, the world’s most popular movie-streaming platform was built with React. You can confirm this by simply searching for and installing the React Developer Tools extension for Google chrome.  Visit https://netflix.com and you will see the React icon appear as active. That is an indication that React was used to build Netflix as seen in Figures 1a and 1b.

Figure 1a
Figure 1b

Now let’s get started with testing the web application.

Step 1: Set Up the Test

Signup or Login to your Testup account. Click on Go to App, which is displayed at the top right-hand corner of the page. Then, click Create Project; afterward, click Create Test. Complete the necessary details requested under the Settings tab. These include the website’s URL and the name of the test case. For this test, the name of my test case would be ‘Testing Netflix Website’ and the website URL will be https://netflix.com.

Figure 2

After this, click Edit to begin the testing. The testing page appears as follows; with the Netflix website loaded on the left-hand side while the Actions list is on the right-hand side. The editor menu appears at the top.

Figure 3

Step 2: Start Testing

Recording a test usually starts with a check to see if the website was properly loaded. To do this, you can select an anchor area on the website and click play as check. However, because Netflix website has a disclaimer popup that shows upon load, we would be testing our anchor area with that. Click/drag on the close icon then click play as check as seen in figure 4.

Figure 4

Notice that the disclaimer popup closes after this has been done as seen in Figure 5 below

Figure 5

Now let’s check if the text input field and buttons on the page are working. To do this, we select click/drag on the text input field.

Afterwards, we can enter a value in the text input field by typing an email address, say jamiu@testup.io, and pressing the Enter key in the Editor Menu above.

Figure 6

We notice that the page then changes to the next page of the onboarding process as shown in Figure 7 below. This indicates that the text input field is active and is working.

Figure 7

I would also like to test if the scroll bar of the Netflix website works. To do this, I click/drag on the scrollbar on the far right side of the website. The line between the two circles shows where I am scrolling from to where I wish to scroll to as seen in Figure 8.

Figure 8

Afterwards I click on play it or wait for the action to be played automatically. Notice that the view changes from one part of the website to another. Hence, we can verify that the scroll bar for the website works as there is a navigation to another part of the website as seen in Figure 9.

Figure 9

Step 3: Automate the Test

Finally, you can get previously executed tests to run automatically. To do this, navigate to the Editor Menu and click on the Play button and then press the replay icon button. All previously executed test will then execute on their own automatically.

Figure 10

Conclusion

To perform testing in React applications, developers often use 3rd party dependencies such as Mocha or Jest. However, for most React developers, testing code is usually a very boring, time-consuming, and stressful process. This is because it deviates from the design and implementation of user interface components which is the fun part of frontend development. With Automated Testing, you can bypass the downtime of testing and still make your coding experience fun.  Fortunately, tools like Testup offers an affordable option without compromising the quality of the test. Getting started is easy, and you can start with a free trial; click here to get started.

Posted on Leave a comment

7 Ways Automated Testing can Help You Save Time and Money

Introduction

One of the worst things that can happen to a web or mobile application is for it to be riddled with bugs upon deployment. This will limit the application’s ability to solve the problems for which it was built. But that’s not all, it will also negatively impact user experience and trust in your brand, making you lose users to competitors. However, there is one way forward, Testing!

Testing is the process of trying out the features of your application before deployment and they are majorly two types: Manual Testing and Automated Testing. Manual Testing involves an individual downloading or accessing the application, clicking on buttons, checking out features to see if they work, and navigating through pages to confirm if they are well linked. It is worthy of note that this method of testing is prone to inaccuracy due to human error or negligence.

Automated Testing, on the other hand, is a process that involves using an automation tool to execute test case suites and predefined actions on a software application. The testing tool takes real outcomes and compares them with the expected result to generate detailed test reports. This method is the most effective way of testing as it is fast, more reliable, and efficient.

In this article, we would be sharing ways through which Automated Testing can help you save time and money.

1. Grows User Retention

Users have a low tolerance for faulty applications. According to an article by TechCrunch, 88% of people say they would abandon an app if they encountered bugs or glitches. Results also show that most apps are buggy because they went through Manual Testing which was unable to properly spot possible bugs and errors before deployment.

With Automated Testing, there’s a significantly lower chance of encountering a bug or app failure. This is because Automated Testing is more meticulous and less prone to human error such as fatigue or loss of interest during testing. With Automated Testing, you get to keep your users and reduce your churn rate, thus helping you grow revenue.

2. Builds Confidence in Your Brand

Most of the apps in App stores are buggy. According to a survey by Compuware, 56% of app users say they have experienced one form of error or the other while using an app. They also said this led to them losing confidence in the app’s reputation and brand, prompting them to give bad reviews of the App.

Through Automated Testing, you can significantly reduce the chances of your app ever getting a bad review. This is because you will be able to detect bugs much earlier before deployment and fix them before making your app available online or in the App store.

3. Encourages Focus on Developing More Features

Automating your app testing gives your engineering/software team more time to be creative, think outside the box and come up with new, exciting features that will keep your users hooked. This is because less time is spent on testing. Furthermore, it boosts the confidence of the engineering/software team, giving them the necessary wherewithal to explore new ideas without fear of building a feature that could break the app.

4. Improves User Experience

The major reason anyone would want to use your app is that it solves a particular problem they currently face. A fundamental part of user experience is how well your app can solve the problems faced by your users. Above all else, this would be the factor that determines whether users come back to use your app or switch to a competitor.

With Automated Testing, you can ensure that your users do not experience an app failure that would compound their problem rather than help them solve it. This helps you increase the number of transactions and activities on your app, thus resulting in more revenue.

5. Encourages users to talk about your App

Because many apps are buggy, an app that does what it says it does and works without bugs will stand out in the marketplace. This alone could even be enough marketing for your business in the form of word of mouth.  And with this form of marketing comes a significant boost in sales and revenue. For instance Dropbox, a Google Drive competitor grew to become a $10 billion app majorly based on Word-of-Mouth alone. Getting the goodwill of your users also builds brand loyalty, scalability, retention rate and reduces the chances of your users jumping ship to use a competitor.

6. Faster release of App to market

Automated Testing saves you a lot of time. According to the Software Development Life Cycle (SDLC), software testing is the 5th Phase and it typically takes between 1-2months if performed manually by the QA and testing team. However, with Automated Testing, you can complete the Testing phase of the Software Development Life Cycle in days, not months hence giving your app a faster time to market.

If your app is developed to solve a novel problem, this could be the difference between you having a First Mover Advantage over your competitors and gaining market share without worrying about whether your app is bug-free or not.

7. Improved Return on Investment

Most times, the reason businesses are skeptical about using Automated Testing is because it is more expensive than Manual Testing, and this is reasonable in the short-term. However, the long-term benefits of using Automated Testing greatly supersedes the short-term benefits of saving cost by performing Manual Testing. This is because Automated Testing saves a lot of time, energy and gives you a bug-free version of your app. Furthermore, Automated Testing encourages scalability – enabling you to reach more users and grow revenue over a short period.

Conclusion

It is quite obvious that the benefits of Automated Testing greatly outweigh that of Manual Testing. So if you want to build scalable, bug-free apps faster, Automated Testing is the way to go. However, it is worthy of note that the success of your Automated Testing depends largely on the tool you choose to perform the test. There are so many out there that it can be very difficult to choose the one that is best for you.

Testup is a Visual Automation Testing Tool that makes it extremely easy to test your application. It is easy to set up, does not require coding, and can handle complex testing scenarios. You can get started with a free trial of Testup by clicking here.

Happy Testing!

Posted on Leave a comment

Comprehensive list of Robotic Process Automation (RPA) Tools (2021)

Introduction

Robotic Process Automation(RPA) tools are mainly associated with the configuration of task automation. There are numerous RPA tool vendors, and choosing one could be overwhelming. However, following this well researched list is a good place to start. This list features 10 popular RPA tools in no particular order.

Logo UiPath www.uipath.com

UiPath RPA is a high-level platform dedicated to providing seamless automation of data entry on any web form & desktop application. It supports Excel and provides SAP and Citrix integration.

What’s the user interface of the tool?Web, Desktop
What’s the automated system under test?Android, IOS
Programming Style?HTML, Flash, AJAX, PDF, Java and Silverlight
What’s the price range?$3990/year/user
Is there a free trial?Yes

Logo Automation Anywhere www.automationanywhere.com

Automation Anywhere is the leading Robotic Process Automation (RPA) platform. The enterprise-grade solution combines sophisticated RPA, AI and embedded analytic technologies to create software bots to automate and manage front and back office tasks.

What’s the user interface of the tool?Web, Desktop, Enterprise Applications (Salesforce, Microsoft Excel, G Suite), Mobile app
What’s the automated system under test?Android, iOS
Programming Style?Python and Java
What’s the price range?$9000 /user/year
Is there a free trial?Yes

Logo Appian www.appian.com

Appian provides a software development platform that combines intelligent automation and enterprise low-code development to rapidly deliver powerful business applications.

What’s the user interface of the tool?Web, Desktop, Mobile
What’s the automated system under test?Android, iOS
Programming Style?Java
What’s the price range?$60/month/user
Is there a free trial?Yes

Logo Pega Platform www.pega.com

According to its vendor, Pega Robotic Process Automation (RPA) enables organizations to automate those tedious, time-consuming manual tasks.

What’s the user interface of the tool?Web, Desktop
What’s the automated system under test?Android, iOS
Programming Style?Java
What’s the price range?$90/month/user
Is there a free trial?Yes

Logo blueprism www.blueprism.com

Blue Prism Intelligent RPA can automate and perform mission critical processes, designed to allow users the freedom to focus on more creative, meaningful work.

What’s the user interface of the tool?Web
What’s the automated system under test?Web and different applications
Programming Style?Java
What’s the price range?Price not provided by vendor
Is there a free trial?Yes

Logo nintex www.nintex.com

Nintex RPA automates repetitive, manual business processes. From projects in Excel to CRM systems, Nintex RPA enables enterprises to leverage trained bots to quickly automate mundane tasks more efficiently.

What’s the user interface of the tool?Web
What’s the automated system under test?Web and different applications
Programming Style?no code
What’s the price range?$85/month
Is there a free trial?Yes

Logo Electro Neek www.electroneek.com/

ElectroNeek lets you automate hundreds of attended and unattended processes and run them concurrently at no cost, paying only for developer seats.

What’s the user interface of the tool?Web, Desktop
What’s the automated system under test?Web and different applications
Programming Style?JavaScript and Python
What’s the price range?$5400/year
Is there a free trial?Yes

Logo Zapier www.zapier.com/

Zapier’s integration platform allows the automation of daily tasks that involve using two or more applications.

What’s the user interface of the tool?Web
What’s the automated system under test?Web and different apps
Programming Style?No code
What’s the price range?$0 – $599/month
Is there a free trial?Yes

Logo MS Power Automate flow.microsoft.com

According to Microsoft, Power Automate allows anyone with knowledge of the business process to create repeatable flows that when triggered leap into action and perform the process for them. Power Automate became more robust in May 2020 when Microsoft acquired Softomotive. With the acquisition, WinAutomation, the most powerful and intuitive platform for Windows automation became a part of Power Automate.

What’s the user interface of the tool?Web
What’s the automated system under test?Web and different apps
Programming Style?No code
What’s the price range?$15 – $500/month
Is there a free trial?Yes

Posted on Leave a comment

Why did Automated Testing Disappoint so many Companies?

Introduction

To guarantee the quality of products, it is important that product development companies embrace testing. That’s not all, the way this test happens is also crucial. Over the years, manual testing has proven to be an approach laden with so many cons than pros. A way forward out of this is test automation. With test automation, companies have an incredible opportunity to increase the efficiency and coverage of software and product testing. Among many other benefits, test automation reduces time, gets rid of human error, reduces expenses, and provides better insights for product improvement.

However, just like every technological solution, test automation comes with its complexities. Therefore, if not implemented properly, it can bring disappointment. In this article, we will explore the possible reasons why test automation may fail you and thereafter provide a viable solution that you can leverage on, moving forward.

Test Automation Failed You: Why?

Setting unrealistic Expectations

Expecting 100% automation is practically impossible. Therefore, the beginning of the failure of test automation is when a team sets their expectations so high that they cannot be achieved. As much as possible, expectations should be realistic. This fundamental axiom also applies to test automation.

Use of a Poor Test Automation Tool

If we start counting the number of test automation tools available today, we will lose count. The market is flooded with too many tools than you can imagine. For this reason, it becomes difficult to separate the quality ones from the noisemakers. However, while it may be difficult, it is not impossible. The most important factor to consider when choosing a test automation tool is your testing needs and primary goals. The reality is that every tool has its unique capabilities and your team needs to focus on finding the one that effectively aligns with your needs and requirements. Generally, we recommend Testup as a viable and affordable no-code test automation tool. Later in this piece, we will highlight the reasons why you may want to consider using Testup.

Disregard for Parallel Execution

One reason why some companies fail at test automation is that they get themselves caught in complex test suites that take forever to execute. In such a situation, test cases that are on queue end abruptly after timeout. Ultimately, the quality of the test gets compromised. In a nutshell, what this implies is that sequential execution of test cases offers nothing but a fast way to fail at test automation. A proven strategy is to embrace parallel execution as this allows multiple tests at the same time.

Buggy Test Environment

It’s often said that proper prior planning prevents poor performance. Every action in this world requires proper planning. This is even truer when it comes to test environments. If what you have is a buggy test environment, that’s already a turn-off for your test operations and a disappointment is inevitable. Therefore, you need to test on a staging environment to ensure that your code works perfectly well before proceeding to the production pipeline.

Ignoring Important Test Reports and Metrics

It’s surprising that some developers are willing to carry out a test on their product but are too much in a hurry to pay attention to critical test reports. Your guess is as good as ours, a failure of the test automation is imminent in such a scenario. Why carry out a test in the first place if the test reports will eventually get ignored? The best approach is to critically examine test reports to analyse possible faults and errors that lead to test failures. By doing this, you can address such errors and faults and make the test better on the next try. After all, the beauty of failure is the opportunity it offers you to make necessary improvement. Beyond getting a successful test result, a critical analysis of your test reports and metrics also helps you and your team to save time and resources.

Web Elements with Undefined IDs

With a non-computer vision approach to testing, it is compulsory for developers to assign IDs to web elements. Not doing this is a recipe for test failure because it becomes problematic for automated scripts to find the web elements on time. Therefore, to make sure that there is a seamless synchronization of the script, you need to assign IDs to web elements. A better way, however, is to use a test tool with computer vision and which requires no interaction with developers.

Inadequate Understanding of Test Procedure

When the testing tool being used requires human interaction, then, it becomes important for the tester to have a thorough understanding of the test procedure. Otherwise, failure is assured. When this happens, it is even costlier for companies. This is the reason why it is crucial for institutions to assign test automation to those who know how to implement it. Another issue is the inability to identify when test automation is necessary. Fortunately, there are test tools that require little or no human interaction these days especially with the success of codeless test automation tools like Testup and others.

Selecting the Best Test Automation Tool

As stated earlier, we recommend Testup as a robust test automation tool to choose for testing your product or software. Why Testup?

Succinctly put, Testup offers a brand new, computer-vision and codeless testing approach that mimics human actions. As a result, end-to-end tests become easy to maintain and highly understandable. Most test automation tools use a non-computer vision approach which means they require human interaction before they can be effectively used.

Also, code-based testing approaches like Selenium Python requires a developer to create and run the test; this in itself defeats the existence of test-automation in the first place. In addition, the approach is very expensive. Testup solves this challenge as it leverages a no-code approach to test automation.

What’s more? Unlike many test tools, Testup’s visual approach creates an easy to understand, easy to debug and easy to maintain series of actions with clear images.

Conclusion

As you have read in this article, there are great possibilities to fail at test automation if things are not done properly. As we have listed a few reasons why companies get disappointed, we have recommended a viable solution to avoid all possible pitfalls and enjoy the sumptuous benefits of test automation. To get started, check out Testup!

Posted on Leave a comment

No Code Automated Testing for Shopify (Case Study)

Introduction

It’s no longer news that coding skills are becoming less of a barrier to building, launching, and testing a great website or application. Today, no code tools offer businesses the opportunity to achieve sustainable digital transformation. As succinctly put by Forbes, no-code or low-code solutions help in building powerful applications that can help any organization scale, without the need to write any code.

One of the no-code tools shaping the e-commerce world is Shopify. If small businesses can build an online presence by creating a website through Shopify, it also makes a lot of sense for them to have an opportunity to test their websites through a no-code test tool. Testup has now addressed this concern. Therefore, this article will give you a practical guide that you can follow to test your Shopify website. Grab a cup of coffee and enjoy!

Testing a Website Built with Shopify

The first step is to have a website created using Shopify. We have developed that already, and it is named Jamiu Marketplace. The website is shown in Figure 1 below.

Figure 1

Now, let’ get started with testing the website.

Sign up and log in to your Testup account. Click on Go to App, which is displayed at the top right-hand corner of the page. Then, click Create Project; afterwards, click Create Test. Complete the necessary details requested under the Settings tab. These include the website’s URL and name of the test case. After this, click Edit to begin the testing. The testing page appears as follows; with the Jamiu Marketplace on the left-hand side and while a list of checks and inputs are on the right-hand side.

To check if the website is correctly loaded and to allow us to move on to the next action, we will select an anchor area and click play as check. As seen in figure 2, the Testup AI finds every area recorded; therefore, the page is good.

Figure 2

Now, let’s see if the search button is working. To do this, we first need to check that the search input field is visible. Therefore, we select an anchor area for the search button. Then, we schedule a click and play the action. The search field appears. The result is shown in Figures 3 and 4.

Figure 3
Figure 4

Afterwards, we schedule a text input for the search field by typing a search term, say cloth and pressing the play button.

The suggestion “Search for ‘Cloth'” appears. WE can select it as an anchor area and click on it. After playing the action the search results for “cloth” appear on the browser page as shown in Figure 5.

This indicates that the search feature on Shopify’s Jamiu Marketplace is working.

Figure 5

Conclusion

Codeless test automation is an opportunity that businesses and organizations need to seize and utilize well as it is already shaping the test automation landscape. Fortunately, tools like Testup offers an affordable option without compromising the quality of the test. Getting started is easy, and you can start with a free trial; just make a single click.

Posted on Leave a comment

No Code Automated Testing for Bubble.io (Case Study)

Introduction

Long before now, test automation tools and frameworks have made testers to spend a significant amount of time on programming. As a matter of fact, most testing automation tools were developed with programming in mind. Unfortunately, testers are not programmers, and it is incredibly time-consuming to make testers go through the rigour of programming to test websites and applications. This led to the question; why not take coding away from testing? In a bid to answering that question, Testup has provided an excellent avenue for testers to enjoy a no-code test automation tool. With Testup, testers can test their websites and applications very fast and without the need to master programming.

Therefore, in this article, we will look at how you can leverage Testup to test websites built with Bubble. As you may already know, Bubble itself is a no-code tool for building sites. Many businesses and organizations are already using Bubble. It will be an excellent opportunity for such businesses to know that they can also test their no-code websites using a no-code test automation tool (Testup).

Testing Website built with Bubble

First, we have developed a website named Jamiu Marketplace using the Bubble no-code tool. The process of building the website is shown in Figure 1, while the completed website is shown in Figure 2.

Figure 1
Figure 2

Testing Bubble’s Jamiu Marketplace

The first step is to register on Testup. Then, log in and click on Go to App which can be seen at the top right-hand corner of the page. After that, click on Create Project, then, click Create Test.

Fill in the necessary details like URL and name of the test case under the Settings tab. Once you have done that, click Edit to start testing.

The testing page will appear as follows (figure 3); with the Jamiu Marketplace on the left-hand side and while a list of checks and inputs are on the right-hand side.

Figure 3

To check if the website is correctly loaded and to allow us to move on to the next action, we will select an anchor area and click play as check. As seen in figure 4, the Testup AI finds every area recorded; therefore, the page is good.

Figure 4

Testing Clickable Buttons

Let’s check if a SIGN UP OR LOG IN clickable button is working. First, we select an anchor area covering the button. After that, click on the selected area; a circle icon with a plus sign will appear on it as shown in figure 5.

Figure 5

Clicking on the play it button will search the circle icon and click it. The result is shown in figure 6, which shows that the SIGN UP OR LOG IN command on Bubble’s Jamiu Marketplace is working.

Figure 6

Now, let’s take the testing a step further by trying to sign up. This means we want to input our email and password.

The text input field is already active. So we can schedule a text input for the email field just by typing the email address and pressing the play button afterwards. The email will appear in the input field. To move to the next text input field we can press enter or tab on the keyboard. The process is shown in figures 7 and 8.

Figure 7
Figure 8

Guess what? We can also test if the password field is working by repeating the same procedures, we followed for the email address. This is shown in figures 9 and 10.

Figure 9
Figure 10

Now, we will select the SIGN UP button as an anchor area; schedule a click and play it. Once we do this, the following page appears (figure 11). Notice that there is a LOG OUT button at the top right corner of the browser page; it means that the account has been created. Perfect! The SIGN UP feature on Bubble’s Jamiu Marketplace is working.

Figure 11

Conclusion

Testup has made it clear that with codeless automation, there is no need for you to understand coding to automate tests on the go and without a waste of time. In essence, we can say that codeless test automation is now within reach. By leveraging Testup, you can test any website or application. Get started here.

Posted on Leave a comment

How to Open a New Tab using Selenium WebDriver

One of the actions that seem a bit hard in automation is opening a new tab with the Selenium WebDriver. However, this should not be hard for you. This article will provide everything you need to know to open new tabs in with the Selenium WebDriver with ease.

What You Should Know

While running a Selenium test, it is possible to have multiple tabs if required just as possible as it is to open new tabs on your web browser. While many pages open new tabs automatically in a single browser window, you will need to know how to in pages that don’t. An example of a page that will open a link in another tab features the target=”_blank”. You will learn how to open multi-tabs using the Selenium WebDriver during testing.

During multi-tabs testing, some of the actions you will need to take include launching your browser, maximizing your browser, creating multi-tabs, switching tabs, executing actions on respective tabs before eventually exiting the browser.

To open a new tab using Selenium WebDriver if it does not open automatically:

  • Use the driver.findElement(By.cssSelector(“body”))
  • Then sendKeys(Keys.CONTROL+”t”)
  • Send Ctrl + t to launch a new tab as you usually do in your browser.

Another alternative method to also open a new tab using Selenium WebDriver is to follow these codes:

driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.google.com/");
String a = "window.open(link,'_blank');"; // replace link with your desired link
((JavascriptExecutor)driver).executeScript(a);

After your new tabs have been successfully created, you will also need to know how to switch or navigate between the numerous tabs you might open. To do this, you can use the driver.switchTo(). Window (<some window>) gives you the freedom to transfer control from your current tab to another while also performing different actions in the tabs.

Moving Forward

By following the steps outlined above, you can easily launch Selenium WebDriver successfully without any hassle. If you face any other issue, you can get in touch with us at Testup; we are willing to h

Posted on Leave a comment

No Code Automated Testing for WordPress (Case Study)

Introduction

Just like any other craft, coding takes months or even years to master. Therefore, it is challenging to make businesses and testers go through a bunch of codes and fix lots of errors in applications. Codeless automation testing tools is the perfect solution to this challenge. In a nutshell, codeless test automation involves making automated tests without the need to write or understand a single line of code. With this, anyone even with no programming skills will be able to test websites and applications seamlessly.

WordPress is a very common codeless tool for building websites. With WordPress, many businesses have built functional websites that have helped in boosting revenue. Won’t it be an excellent opportunity to have a codeless test automation tool to test a website built by a codeless tool like WordPress? Your answer is as correct as ours; it’s a defining moment in the technological world as we now have several codeless test automation tools for this purpose. One of the most amazing among these no code tools is Testup.

Testup is simple to use and user-friendly. It also allows you to maximize test reliability. Read on to see a practical process of how you can use Testup for a website built with WordPress.

Testing a WordPress Website with Testup

To do this testing, we need a website built with WordPress. Therefore, we have developed a website called Jamiu Marketplace using the WordPress no code tool. The website is shown in figure 1 below.

Figure 1

It’s time to test the website using the Testup no code automation tool. First, register on Testup and log in; afterwards, click on Go to App at the top right-hand corner. Then, click on Create Project and subsequently, Create Test.

Under settings, you will be required to fill in details like the URL and name of the test. For our WordPress website, the details have been filled, as shown in Figure 2 below. Let’s name the test ‘WordPress Test’.

Figure 2

After filling the details, the next thing is to click Edit to start testing.

Testing Jamiu’s Marketplace

After clicking Edit, the testing page will appear, as shown in Figure 3. Here, you will see the browser window of Jamiu Marketplace on the left-hand side of the editor. On the right-hand side, you will see a list of checks and inputs.

Figure 3

To check if the website is correctly loaded and to allow us to move on to the next action, we will select an anchor area. Anchor areas can be quickly recorded by selecting a desired area with the mouse. This is shown in figure 4.

Figure 4

Click the play as check button to carry out the check. Afterwards, you can move on the next check. If the Testup AI finds every area you record, then the page is good.

Testing Clickable Buttons

You can also use Testup to test if a clickable button is working. First is to ensure that the particular button is visible on the website. To do this, select an anchor area that covers the button. After that, click on the selected area; a circle icon with a plus sign will appear on it as shown in figure 5.

Figure 5

Clicking on the play it button will search the circle icon and click it. The result is shown in figure 6, which shows that the Learn more command on Jamiu Marketplace is working.

Figure 6

Conclusion

No code test automation is growing at an exponential rate. Having read this article, you will realise that Testup gives every tester a significant relief from the burden of mastering complex testing codes or frameworks. Visit Testup today to get started without any delay.