2. Kush o’ ky djal??
• Kush? – Ilir Sadik Kosumi
• Qka? (titujt)
1. “Njeri”
2. “Senior” Software Tester (QA)
3. PhD. n’lëminë e sarkazmit
4. Proud Gamer
5. Edhe plot tituj tjer’ që s’i nxen sllajdi (...qe spo m’bin n’men)
• Qa ka t’kryme? – Inxhinieri Mekanike, n’Teknik – UP
• Social
– Twitter: @ilirkosumi
– Goodreads: https://www.goodreads.com/user/show/26042912-ilir-kosumi
– GitHub: https://github.com/illyric
– Steam: http://steamcommunity.com/id/illyricanking
• Fjalia e urtë e preferuar:
“ If A is success in life, then A = x + y + z
x is work,
y is play, and
Z is keeping your mouth shut. ”
– Albert Einstein
3. Unë jom k’tu për me fol, ju jeni për me
ndegju!1
1 Po rrej!
4. No one in the brief history of computing has
ever written a piece of perfect software.
― Andrew Hunt,
The Pragmatic Programmer: From Journeyman to Master
5. What is Software Testing
(and why it rocks)?
• Most people think it’s just running test (by
executing software). This is one part of testing,
but not the big picture!
• Process: Testing is a process rather than a single
activity.
• Software testing shows the presence of bugs. It
does not show that there are none. (1st testing
principle in the Holy book of ISTQB Foundation
Level Sylabus)
• Testing Software is sometimes fun (esp. when you
find critical bugs)
10. Regression Testing – Long live test
automation!
• Regression testing is a way of re-testing what
you already know should work (because there
was an update in the system-under-test that
might have affected the stuff you tested it in
the past which you knew did work back then)
• Manual regression testing is the most boring
task in Software Testing!
• As a software tester, test automation saves
not only my day but also my nerves...
11. Selenium
• Selenium ≠ testing tool
• Selenium is more like an open-source
community where everyone can contribute,
an organization (like Mozilla), a philosophy
etc.
• WebDriver = open-source testing tool that
automates/simulates user interactions with
the werb-browser
12. A brief history of Selenium
(na ishte njehere...)
• Started in 2004 at
ThoughtWorks in Chicago
• Jason Huggins – first started
selenium
• Selenium 1 (RC)
• Selenium 2 (WebDriver)
• The name, Selenium, was
selected because selenium
mineral supplements serve
as a cure for mercury
poisoning, Huggins
explained.*
*http://www.techworld.com/news/apps/open-source-selenium-web-app-test-suite-to-support-iphone-and-android-3272444/
13. Selenium 1 (RC - Remote Control)
• UI automation library, allowing developers and
testers to automate their interactions with a Web
Application Under Test (WAUT) by providing
them with the necessary libraries, supported in
multiple languages, to program.
• Generic JavaScript named Selenium Core to drive
the WAUT on a browser
• Selense commands
• Same-Origin Policy ☹
15. Selenium 2 (WebDriver)
• WebDriver has come into existence for the
following reasons:
– Give a better control on the browser by
implementing browser-specifi
implementations.
– To give a better programming experience to the
developer by adhering more
closely to the object-oriented programming
fundamentals
18. Download WebDriver
• Download all jar files and add include them in
your project classpath as .jar dependencies
• If you use maven, you can add the maven
dependencies to get WebDriver
19. Maven dependencies2
• All dependencies:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.46.0</version>
</dependency>
• Browser-specific dependencies (ex. Firefox Driver):
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>2.46.0</version>
</dependency>
2 Thanks to Modest for presenting maven: http://prijug.org/?p=12&lang=en
20.
21. Googling “Google” (manually)
• TC1 – Googling Google:
– Precondition:
• User has internet access
• User has an internet browser (preferably Firefox, or Chrome... In this example we are using
Firefox)
– Steps
1. Launch Firefox
2. Navigate to “http://www.google.com/”
3. Enter “the Google search engin” in the search textbox and search
– Expected results:
• User will see the correct spelling of the word “engine” preceded by “Showing results for the
Google search”
• User will see “Google Search - Wikipedia, the free encyclopedia” as the first search result
• The title of the Firefox browser window will show “the Google search engin – Google
Search”
• User will see on the left side a side-meny with the title “Google” and a brief description of
the company