Posts

Hers is How You Can Integrate Percy with Selenium Python Tests

Step by step tutorial to Integrate Percy with Selenium Python Tests Setup @percy/cli (currently only available from NPM). This package handles all of the processing and interactions with Percy's API: npm install --save-dev @percy/cli   Install the Python package for Percy-Selenium: pip install percy-selenium   Step 1: Import the percy snapshot function from the percy_selenium package into your test in order to begin taking snapshots of your Selenium tests. # At the top of your test file(s) from percy import percy_snapshot Step 2: You can now add visual tests to your current testing framework: from selenium import webdriver from percy import percy_snapshot browser.get('http://localhost:8000') browser.implicitly_wait(10) new_todo_input = browser.find_element_by_class_name('new-todo') percy_snapshot(browser, 'Empty Todo State') Step 3: Lastly, use the percy exec command to enclose your test runner command. In order to receive snapshots from your Python Seleni...

Running Mobile Web Tests with Selenium WebDriver

Image
Many of you have been interested in learning how to create a very simple Selenium /Appium script for the mobile web test since the Basics of Mobile Web Testing blog attracted a lot of attention. Here, I'll give you a quick tutorial on how to create a straightforward test for your website using actual hardware and browsers. Let's begin with the script that follows the example below. I will be using Python, If you don't already have Python installed and configured, get it done as we will be using it only. The imports must be completed first, followed by the creation of a simple function for log output. import os import sys import time from time import sleep from selenium import webdriver ## ## More help on writing tests: ## => http://selenium-python.readthedocs.org/latest/navigating.html ## def log(msg): print (time.strftime("%H:%M:%S") + ": " + msg) Establish the URL for device access as the first actual step. Use the following URL to access Bitbar Te...

What are CSS Animations?

  CSS Animations is a module of CSS that lets you animate CSS properties over time, using keyframes. A keyframe animation's behavior can be modified through its timing function, duration, number of repetitions, and other features. With Animate.css , you can produce cross-browser animations for your web projects. Ideal for highlighting home pages, sliders, and attention-guiding hints. CSS Animations are simple, yet powerful animations for web pages. In this post, we explain the concept behind CSS Animation , what they are and how to use them to enhance your website. CSS Animations are added to your web pages using CSS. They are particularly useful for adding a bit of extra visual interest to your website, and can be used to animate objects, text, or entire sections of your website.  Various properties you can use in CSS Animations: The properties you can use to animate CSS are background-color, border-color, border-style, border-width, color, font-size, font-weight, line-hei...

A Comprehensive Tutorial on Regression Testing

A hassle-free, fully working application is difficult to create and release. Before the final deployment, it must undergo many sorts of testing. App or web testing helps to uncover faults and gaps that are in conflict with the actual requirements while ensuring that the product is functioning as intended or designed. Regression testing will be our whole emphasis in this article. This post will serve as a comprehensive how-to for learning regression testing concepts at the novice level. Everything will be covered, including what regression testing is, its advantages, why it is necessary, how to conduct this testing, and much more. Therefore, let's begin. What is Regression Testing? Regression testing is a testing method used to ensure that an application's present functionality is not affected when its code is modified, enhanced, or updated. That entails rerunning any previously run test cases that are affected by the code modifications. Regression testing is mostly used by tes...