====================================================
Tutor: Rahul Shetty
Reference: UDEMY
Course: Cypress - Modern Automation Testing from Scratch +
Frameworks
Content: Programming language - JAVASCRIPT
====================================================
1. Course URL: https://www.udemy.com/course/cypress-tutorial/
2. Document prepared by: Rajat Verma
a. https://www.linkedin.com/in/rajat-v-3b0685128/
b. https://github.com/rajatt95
c. https://rajatt95.github.io/
--------------------------------------------------
Softwares:
1. Programming language - Javascript
2. Node JS
3. IDE - Visual Studio Code
--------------------------------------------------
1. Learnings from Course (UDEMY - RS - Cypress)
a. Links:
i. https://nodejs.org/en/download/
ii. https://code.visualstudio.com/download
iii. https://www.npmjs.com/
iv. https://developer.mozilla.org/en-US/docs/Web/JavaScript
b. Javascript fundamentals for Automation Testing
i. Variables declaration and assignment
1. typeof()
ii. Decision making
1. If-Else
iii. Loops
1. For
2. While
3. Do While
iv. Keywords
1. var
2. let
1
3. const
v. Arrays and operations
1. push()
2. pop()
3. unshift()
4. indexOf()
5. includes()
6. slice()
7. filter()
8. map()
9. sort()
10. reverse()
vi. Functions
1. Custom
2. Anonymous
vii. String
1. length
2. charAt()
3. slice()
4. indexOf()
5. split()
6. trim()
7. parseInt()
8. toString()
viii. Javascript Object
1. Properties
a. Single value
b. As Anonymous function
ix. Classes and Objects
1. Same clas
2. Different class
a. Export the class
b. Import it and create the object of that class
x. OOPS
1. Inheritance
=================================================================
2
-----------------------------------------
========21_Learn JavaScript Fundamentals from Scratch for
Automation==========
-----------------------------------------
1. Javascript fundamentals for Automation Testing
a. File Extension - .js
b. How to run/execute the program - node 01_HelloWorld.js
i. 01_HelloWorld.js is the file name
2. Programs:
a. Hello World:
i.
ii.
—------------------
3
—------------------
b. Declaring variable:
i. Variables in Javascript are loosely coupled
1. Variables can hold the value of any type of data
2. Variables can define the nature of value at runtime
ii. var is a keyword in Javascript
iii. From ES6 engine,
1. Two more keywords came in the picture
a. let
b. const
iv.
v.
—------------------
4
—------------------
c. Type of
i. There is nothing like float, double in Javascript
1. 16, 16.89, 166666666.8 -> these are numbers
ii.
iii.
—------------------
5
—------------------
d. Mathematical Operations
i.
ii.
—------------------
e. Value Re-Assignment
i.
ii.
—------------------
6
—------------------
f. If-Else
i.
ii.
—------------------
7
—------------------
g. Loop - While
i.
ii.
—------------------
h. Loop-Do While
i.
ii.
—------------------
8
—------------------
i. Loop - For
i.
ii.
—------------------
j. Arrays
i.
9
ii.
—------------------
k. Array Operations:
i.
ii.
10
iii.
iv.
v.
—------------------
11
—------------------
vi.
vii.
viii.
12
ix.
x.
—------------------
13
—------------------
l. Functions
i.
ii.
—------------------
m. Anonymous function
i.
ii.
—------------------
14
—------------------
n. String
i.
ii.
—------------------
15
—------------------
o. Javascript Object
i.
ii.
16
iii.
iv.
17
v.
vi.
18
vii.
—------------------
p. Class and Object in same class
i. This concept is introduced from ES6 engine
ii.
—------------------
19
—------------------
q. Class and Object in different class
i.
ii.
r. OOPS
i. Inheritance
—------------------
20
=======================================================================
1. To connect:
a. https://www.linkedin.com/in/rajat-v-3b0685128/
b. https://github.com/rajatt95
c. https://rajatt95.github.io/
=======================================================================
21