Theme #11: Agnoster

To use the agnoster theme you have to install some fonts. Otherwise you will see some question marks where symbols are supposed to go. Here are the steps to install:

  1. git clone https://github.com/powerline/fonts
  2. cd fonts
  3. ./install.sh
  4. Open iTerm2->Preferences->Profiles->Change Font-> 12pt Meslo LG S DZ Regular for Powerline
ZSH_THEME="agnoster"

--

--

Step into NodeJS

Install Node it easy to install by go to Nodejs website then download and install it

Check node version :

$ node --version

Check npm version :

$ npm --version

Initial project by :

$ npm init

Install uuid dependencies :

$ npm install uuid

“nodemon” is program use to auto-update and restart every time that we save the code and we can install it by follow command below.

$ npm install -D nodemon

We can delete “node_modules” out from project before deploy to host and If download project we need to run “npm install” to install all dependencies back

--

--

Create project.

Example when create Cypress automation for Web “https://automationteststore.com/

>npm init
...Initial project detail....
>npm install cypress --save-dev>npm cypress open
...Initial cypress structure
-"cypress/integration" delete "example" folder-"cypress/integration" create folder "automation-test-store"-"cypress/integration" create file "login.js"

Code Structure

/// <reference types="Cypress" />describe("Test login via web AutomationTestStore", () => {   it("Should be able to sign up", () => {      //cypress code   });});

Diable XHR Log

Cypress X-Path

>npm install -D cypress-xpath

Random string for user and password

let randomString = Math.random().toString(36).substring(2);const email = "auto_" + randomString + randomString + "@gmail.com";const password = "Password1";// const securityAnswer = "Hello world";

--

--

Step 1: In terminal type below

sudo vi ~/.profile

Step 2: make all export value set as below

Edit : Press “i”

Save : Press “ESC” then type “:wq” then hit enter

Apply change : type “source ~/.profile”

Check Java Change : type “java -version”

Navigate to UIAutomatorViewer folder as below

cd ~/Library/Android/sdk/tools/bin/

Then type “uiautomatorviewer” then programe will shown.

--

--