Day 02
Day 02 : 13th July
- DDF Project Overview
- Thumb rules of Automation :
- Efficiency - Faster than human, using lesser resources
- Reusability - Make once, reuse manytimes, with little or no changes.
- Accuracy - We have confidence on the Automation Tool/FW.
- U need to learn a lot of coding. However, very specific areas.
- Instead of topic based learning, learn coding through the need.
- CODING 101 :
- Learn to READ CODE. Meaning.
- Make small EDITS. Customize.
- Write larger Code.
- Repeat.
- Coding Syntax Error : Cannot understand your writing.
- RunTime Errors : Didnt expect. Happened while running the code.
- JAR - Java Archived Resource (Reusbale Function Library)
- For each type of app, there could be a related JAR created by the User Community.
- Every Java program needs a main method. Says where to start.
- Curl Brackets define a Block of code.
- Art of coding is to Think like a Computer, before you make it run. Run it in the mind.
DDF1 : Get all URL’s and Titles for all courses. Validate.
- Let us build for 3 courses. We can add the others later using a PATTERN.
- Element Identification
- Basic Methods (for survival)
- Id, name, linktext, xpath …
- findElement : finds a single element matching the properties.
- Need to identify those key element property attributes
- BY class
Locator Strategy comprises the following values.
- ID
- Name
- Class Name
- Tag Name
- Link Text
- XPath
Absolute VS Relative xPaths.
Where to do?
What to do?
DDF2 : Execute Functional TC’s (Signin, Register etc) with different User Data/Credentials
0 comments