Test Automation For Web-Based Applications

Slides:



Advertisements
Similar presentations
Adapted from John Zelle’s Book Slides
Advertisements

Variables and I/O. Types Strings –Enclosed in quotation marks –“Hello, World!” Integers –4, 3, 5, 65 Floats –4.5, 0.7 What about “56”?
Variables and I/O. Types Strings –Enclosed in quotation marks –“Hello, World!” Integers –4, 3, 5, 65 Floats –4.5, 0.7 What about “56”?
Introduction to Python
Chapter 2 Writing Simple Programs
Intro to Python Paul Martin. History Designed by Guido van Rossum Goal: “Combine remarkable power with very clear syntax” Very popular in science labs.
CS 1 with Robots Variables, Data Types & Math Institute for Personal Robots in Education (IPRE)‏
JavaScript, Fourth Edition
Computing with Strings CSC 161: The Art of Programming Prof. Henry Kautz 9/16/2009.
Introduction to Python
2440: 211 Interactive Web Programming Expressions & Operators.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Week 2 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
Lecture 19 - More on Lists, Slicing Lists, List Functions COMPSCI 101 Principles of Programming.
Dictionaries.   Review on for loops – nested for loops  Dictionaries (p.79 Learning Python)  Sys Module for system arguments  Reverse complementing.
CS 1 with Robots Variables, Data Types & Math Institute for Personal Robots in Education (IPRE)‏ Sec 9-7 Web Design.
Variables and Assignment CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Operators and Expressions. 2 String Concatenation  The plus operator (+) is also used for arithmetic addition  The function that the + operator performs.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Creating PHP Pages Chapter 6 PHP Variables, Constants and Operators.
Variables and Constants Objectives F To understand Identifiers, Variables, and Constants.
CST336, Dr. Krzysztof Pietroszek Week 2: PHP. 1.Introduction to PHP 2.Embed PHP code into an HTML web page 3.Generate (output HTML) web page using PHP.
Data Manipulation Variables, Data Types & Math. Aug Variables A variable is a name (identifier) that points to a value. They are useful to store.
CS201 Introduction to Sabancı University 1 Chapter 2 Writing and Understanding C++ l Writing programs in any language requires understanding.
I NTRODUCTION TO PYTHON - GETTING STARTED ( CONT )
1 st Semester Module2 Basic C# Concept อภิรักษ์ จันทร์สร้าง Aphirak Jansang Computer Engineering.
Strings CSE 1310 – Introduction to Computers and Programming Alexandra Stefan University of Texas at Arlington 1.
Strings CSE 1310 – Introduction to Computers and Programming Alexandra Stefan University of Texas at Arlington 1.
String and Lists Dr. José M. Reyes Álamo. 2 Outline What is a string String operations Traversing strings String slices What is a list Traversing a list.
Introduction to Python Lesson 2a Print and Types.
Chapter 3 Using Variables, Constants, Formatting Mrs. UlshaferSept
Chapter 2 Writing Simple Programs
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
Python: Experiencing IDLE, writing simple programs
Introduction to Python Data Types and Variables
Basic operators - strings
Presented By S.Yamuna AP/IT
Selenium WebDriver Web Test Tool Training
University of Central Florida COP 3330 Object Oriented Programming
JavaScript Syntax and Semantics
Web Programming– UFCFB Lecture 19-20
JavaScript.
Section 3.2c Strings and Method Signatures
Test Automation For Web-Based Applications
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Introduction to Python
Data Types, Identifiers, and Expressions
An Introduction to Python
Test Automation For Web-Based Applications
4. sequence data type Rocky K. C. Chang 16 September 2018
PHP.
“If you can’t write it down in English, you can’t code it.”
Introduction to Programming Using Python PART 1
Test Automation For Web-Based Applications
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Variables, Data Types & Math
Test Automation For Web-Based Applications
Variables, Data Types & Math
Class 2.
CS1110 Today: collections.
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Test Automation For Web-Based Applications
Selenium HP Web Test Tool Training
Variables, Data Types & Math
And now for something completely different . . .
Selenium WebDriver Web Test Tool Training
Test Automation For Web-Based Applications
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Python fundamental.
Presentation transcript:

Test Automation For Web-Based Applications Portnov Computer School WebDriver Training Test Automation For Web-Based Applications Presenter: Ellie Skobel

Day 1 Python Basics

Variables Memory locations reserved to store values Variables are dynamically typed Use the equal sign (=) to assign a value to a variable Assign a single value to several variables simultaneously Assign multiple values to multiple variables my_variable = “hello” a = b = c = 22 name, age, height= "Bob", 22, ”5’11"

Variable Naming Variable names are case-sensitive. A variable's name can be any legal identifier (an unlimited-length sequence of Unicode letters and digits) Must beginning with a letter or underscore Variables that start with an underscore (_) are treated as local and private, and cannot be imported from outside the module When choosing a name for your variables, use full words instead of cryptic abbreviations. This will make your code easier to read and understand

Strings Can be concatenated: Can be formatted: Can be indexed: "My name is " + "Jane" "My name is " + name Can be indexed: name = "John” name[2]  "h" Can be sliced: name = "Geraldine" name[1:4]  "era" Can be measured: len(name)  9 Can be formatted: name = "JoHn" name.lower()  "john" name.upper()  "JOHN" name.title()  "John” Can be repeated: name = "Bob" name*3  "BobBobBob" Can be reversed: name = "Geraldine" name[::-1]  "enidlareG

Lists Easy to create: Can be combined: Can be indexed: Can be sliced: my_list = [1,2,3] names = ["Bob", "Eva"] Can be combined: a, b = [1, 2], [6, 7] a + b  [1, 2, 6, 7] Can be indexed: names[1]  "Eva" Can be sliced: my_list = [1,2,3,4,5] my_list[1:4:2]  [2,4] Can be sorted: list = [4,2,6,8,3] list.sort()[2,3,4,6,8] Can be repeated: list = [1,2,3] list*2  [1,2,3,1,2,3] Can be measured: list = ["a","b","c"] len(list)  3 Can be reversed: list = [1,2,3,4] list[::-1]  [4,3,2,1]