Sign in

Automation Test Engineer by Profession, Traveller by the Weekend

What are HTTP status codes?

HTTP status codes are response codes that are returned by web servers along with responses indicating whether a request sent by the client was processed successfully or not.

There are five classes of HTTP status codes available.

1xx: Informational - Request received, continuing process
2xx: Success - The action was successfully received, understood, and accepted
3xx: Redirection - Further action must be taken in order to complete the request
4xx: Client Error - The request contains bad syntax or cannot be fulfilled
5xx: Server Error - The server failed to fulfill an apparently valid request

1xx Informational

100 Continue

The client SHOULD continue with…


We learned how to set up Appium in the last Blog, in this one we will write our first test using Appium for Android and later for an iOS device in the upcoming blog.

Below is Appium Architecture

Required Softwares

Appium Setup

https://krishnachetan.medium.com/setup-appium-on-mac-1e06f1178427

IntelliJ Idea ide

Let's start by creating a new project, we will be using the IntelliJ idea IDE for this project

  1. Select New Project.

An example to Fetch the daily petrol price using Python, pandas, BeautifulSoup

Imports

import requests
import pandas as pd
from bs4 import BeautifulSoup

Extract data from the Website

def getdata(url):
r = requests.get(url)
return r.text


htmldata = getdata("https://www.goodreturns.in/petrol-price.html")
soup = BeautifulSoup(htmldata, 'html.parser')

Declaring required Variables

# Declare string var
# Declare list
mydatastr = ''
result = []

Searching for the variable in HTML data and storing

for table in soup.find_all('tr'):
mydatastr += table.get_text()

mydatastr = mydatastr[1:]
itemlist = mydatastr.split("\n\n")
for item in itemlist[:-5]:
result.append(item.split("\n"))

Calling DataFrame constructor on the list using pandas

df = pd.DataFrame(result[:-8])

Saving to Excel using pandas and printing rates in console

df.to_excel("Petrol.xlsx")
print(df)

Console Output


Jenkins is The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying, and automating any project.

Step 1: Install Homebrew.

Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.

Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

Homebrew complements macOS (or your Linux system). Install your RubyGems with gem and their dependencies with brew.

Type following command in terminal to install Homebrew

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Step 2: Install Jenkins

Once Homebrew is installed, you can run the following command which will download and install the current Long-term support (LTS) version of Jenkins.

brew install jenkins-lts

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store