Chrome Extensions are fun to build and very powerful, thanks to the expansive API Google provides. This talk will explore techniques for structuring and testing your extension projects, using tools such as Grunt, Browserify and Venus.js. A quick refresher of major extension development concepts will be also be reviewed.
Actually testing is as important as development and we all want to write code that works. So, why not test our front-end code?
To do that we can use some tools as Selenium, Jasmine but I will explain QUnit because it's used in Drupal8 testing.
QUnit is a powerful, easy-to-use JavaScript unit testing framework. It's used by the jQuery, jQuery UI, jQuery Mobile projects, also by Drupal, and is capable of testing any generic JavaScript code.
Session presented at Drupalcamp Gotemburg 2013 where I explained how to include QUnit testing in our Drupal projects.
So you've heard about Selenium, but what's it really all about? Maybe you've tried writing some tests, but soon found yourself frustrated trying to get them to work reliably. If you are interested in using this great tool to do integration testing for your websites and help automate your testing, this is the talk for you! We'll look at all the kinds of things you can do in Selenium, how to approach your testing, and use a live site as an example of building a complete suite of tests that will ensure clean, bug-free site updates.
Ever want to automate your web testing with Selenium? Usually it works well, but then there are times where it seems to be brittle and unreliable. Sometimes, your company might want to stop using this (and stop the automated test effort!).
How can we prevent Selenium tests from becoming Shelfware? Selenium based tests can in fact be reliable and should actively be used in the regression test effort.
Key Takeaways; Alan Ark shares techniques he uses to turn sick test automation codebases into a reliable workhorse. Techniques include AJAX-proofing, use of the Page Object model, and pop-up handling.
Chrome Extensions are fun to build and very powerful, thanks to the expansive API Google provides. This talk will explore techniques for structuring and testing your extension projects, using tools such as Grunt, Browserify and Venus.js. A quick refresher of major extension development concepts will be also be reviewed.
Actually testing is as important as development and we all want to write code that works. So, why not test our front-end code?
To do that we can use some tools as Selenium, Jasmine but I will explain QUnit because it's used in Drupal8 testing.
QUnit is a powerful, easy-to-use JavaScript unit testing framework. It's used by the jQuery, jQuery UI, jQuery Mobile projects, also by Drupal, and is capable of testing any generic JavaScript code.
Session presented at Drupalcamp Gotemburg 2013 where I explained how to include QUnit testing in our Drupal projects.
So you've heard about Selenium, but what's it really all about? Maybe you've tried writing some tests, but soon found yourself frustrated trying to get them to work reliably. If you are interested in using this great tool to do integration testing for your websites and help automate your testing, this is the talk for you! We'll look at all the kinds of things you can do in Selenium, how to approach your testing, and use a live site as an example of building a complete suite of tests that will ensure clean, bug-free site updates.
Ever want to automate your web testing with Selenium? Usually it works well, but then there are times where it seems to be brittle and unreliable. Sometimes, your company might want to stop using this (and stop the automated test effort!).
How can we prevent Selenium tests from becoming Shelfware? Selenium based tests can in fact be reliable and should actively be used in the regression test effort.
Key Takeaways; Alan Ark shares techniques he uses to turn sick test automation codebases into a reliable workhorse. Techniques include AJAX-proofing, use of the Page Object model, and pop-up handling.
How many times have your Selenium test suites run beautifully on one browser, only to fail when run in any other browser? This is an extremely common problem faced when incorporating cross-browser tests into your test runs. Not all browser drivers are created equally, but that doesn’t mean you can’t create a robust suite of cross-browser tests.
This presentation shares strategies for making cross-browser tests invincible. It focuses on topics such as using as choosing the best locators for all browsers, explicit vs. implicit waits and how to leverage cloud-based testing tools.
This presentation was given at SeleniumConf London in November 2016.
Workshop: Functional testing made easy with PHPUnit & Selenium (phpCE Poland,...Ondřej Machulda
Annotated slides for phpCE workshop on November 3, 2017.
Workshop repository: https://github.com/OndraM/selenium-workshop-phpce
The workshop covered:
- setting up local development environment (using Docker)
- practical examples of functional tests implementation
- exploring possibilities of Selenium WebDriver
- parallel test execution using Steward
- hands-on Page Object design pattern
- dealing with asynchronous elements of web-pages (AJAX, JavaScript)
- general tips & tricks how to keep a maintainable suite of functional tests in a long-term
TiConnect: Memory Management in Titanium appsTim Poulsen
Slides from my presentation at the 2014 ConnectJS / TiConnect conference in Atlanta. I cover tips and background info on managing memory and performance in your Titanium apps.
Mobile Web Test Automation: to the Desktop! - Alexander Bayandin - Mobile Tes...Badoo
What does it usually look like when people do Mobile Web Test Automation? They write a couple of tests, run them on different desktop browsers, and then only after that, try to run on emulators/simulators. The final step is adapting and fixing the tests for browsers on real devices.
Luckily, we developed our tests for Mobile Web on real devices. But some time ago we decided to run on Desktop as well.
Why? What were the benefits for us? How do we have both Appium and Selenium tests in one repository? And what challenges did we face? I'll discuss this, as well as many other things, in my talk.
Better End-to-End Testing with Page Objects Model using ProtractorKasun Kodagoda
This presentation focuses on implementing Page Objects Model using Protractor for AngularJS apps for more maintainable, reusable and flexible end-to-end testing for your project. The presentations was done at 99X Technology as a Tech Talk session done by Team Finale.
an introduction to the programming best practices for javascript and Titanium mobile
(cross platform programming seminar at university of pisa, july 2012)
UI Testing Best Practices - An Expected JourneyOren Farhi
This slide focus on the good reasons for writing unit tests for testing ui.
Much like you're testing ui manually, you can have simple minimal code doing that for you.
Rick Blalock: Your Apps are Leaking - Controlling Memory LeaksAxway Appcelerator
Developing large-scale Titanium apps can be tricky. Although Titanium manages memory on the native level for developers, care and attention on memory management and profiling techniques must be used in order to ensure their javascript is optimial. Attendees will learn how to detect memory leak / retention issues caused by client-side code. They will learn how to utilize tools and techniques such as Instruments / DDMS, proper architectural patterns, and more to produce performant apps.
Appcelerator's Rick Blalock leads this session for developers who have a a strong grasp of Titanium but want to learn how to profile and improve the apps they build.
In this presentation I consider the nature of current state of "crowdsourcing" designs, and pose that the management of information can be a potent form of collaborative participation with "civic media."
"Civic media is any form of communication that strengthens the social bonds within a community or creates a strong sense of civic engagement among its residents. Civic media goes beyond news gathering and reporting." - http://civic.mit.edu/
I base my thoughts on experiences with http://haiti.ushahidi.com.
Source is on github: http://github.com/unthinkingly/ICCM-2010-Presentation
How many times have your Selenium test suites run beautifully on one browser, only to fail when run in any other browser? This is an extremely common problem faced when incorporating cross-browser tests into your test runs. Not all browser drivers are created equally, but that doesn’t mean you can’t create a robust suite of cross-browser tests.
This presentation shares strategies for making cross-browser tests invincible. It focuses on topics such as using as choosing the best locators for all browsers, explicit vs. implicit waits and how to leverage cloud-based testing tools.
This presentation was given at SeleniumConf London in November 2016.
Workshop: Functional testing made easy with PHPUnit & Selenium (phpCE Poland,...Ondřej Machulda
Annotated slides for phpCE workshop on November 3, 2017.
Workshop repository: https://github.com/OndraM/selenium-workshop-phpce
The workshop covered:
- setting up local development environment (using Docker)
- practical examples of functional tests implementation
- exploring possibilities of Selenium WebDriver
- parallel test execution using Steward
- hands-on Page Object design pattern
- dealing with asynchronous elements of web-pages (AJAX, JavaScript)
- general tips & tricks how to keep a maintainable suite of functional tests in a long-term
TiConnect: Memory Management in Titanium appsTim Poulsen
Slides from my presentation at the 2014 ConnectJS / TiConnect conference in Atlanta. I cover tips and background info on managing memory and performance in your Titanium apps.
Mobile Web Test Automation: to the Desktop! - Alexander Bayandin - Mobile Tes...Badoo
What does it usually look like when people do Mobile Web Test Automation? They write a couple of tests, run them on different desktop browsers, and then only after that, try to run on emulators/simulators. The final step is adapting and fixing the tests for browsers on real devices.
Luckily, we developed our tests for Mobile Web on real devices. But some time ago we decided to run on Desktop as well.
Why? What were the benefits for us? How do we have both Appium and Selenium tests in one repository? And what challenges did we face? I'll discuss this, as well as many other things, in my talk.
Better End-to-End Testing with Page Objects Model using ProtractorKasun Kodagoda
This presentation focuses on implementing Page Objects Model using Protractor for AngularJS apps for more maintainable, reusable and flexible end-to-end testing for your project. The presentations was done at 99X Technology as a Tech Talk session done by Team Finale.
an introduction to the programming best practices for javascript and Titanium mobile
(cross platform programming seminar at university of pisa, july 2012)
UI Testing Best Practices - An Expected JourneyOren Farhi
This slide focus on the good reasons for writing unit tests for testing ui.
Much like you're testing ui manually, you can have simple minimal code doing that for you.
Rick Blalock: Your Apps are Leaking - Controlling Memory LeaksAxway Appcelerator
Developing large-scale Titanium apps can be tricky. Although Titanium manages memory on the native level for developers, care and attention on memory management and profiling techniques must be used in order to ensure their javascript is optimial. Attendees will learn how to detect memory leak / retention issues caused by client-side code. They will learn how to utilize tools and techniques such as Instruments / DDMS, proper architectural patterns, and more to produce performant apps.
Appcelerator's Rick Blalock leads this session for developers who have a a strong grasp of Titanium but want to learn how to profile and improve the apps they build.
In this presentation I consider the nature of current state of "crowdsourcing" designs, and pose that the management of information can be a potent form of collaborative participation with "civic media."
"Civic media is any form of communication that strengthens the social bonds within a community or creates a strong sense of civic engagement among its residents. Civic media goes beyond news gathering and reporting." - http://civic.mit.edu/
I base my thoughts on experiences with http://haiti.ushahidi.com.
Source is on github: http://github.com/unthinkingly/ICCM-2010-Presentation
Automated UI testing done right (DDDSydney)Mehdi Khalili
Many teams try Automated UI Testing and many fail. Automated UI Testing is hard: the tests take a lot of time to write and tend to be brittle and hard to maintain. In this session I will provide you with some practical advice on how to and how not to write your tests introducing you to some UI testing ideas, patterns and frameworks that will help you write your tests faster while making them less brittle and easier to maintain.
This is an action packed session for testing enthusiasts.
Paris Web - Javascript as a programming languageMarco Cedaro
How to setup up a stable javascript continuous integration environment and why you need it. Through a real life example, the talk explains all the benefits of having a development process that brings real control over javascript codebase. A deep analysis of developer and webapps needs and of the tools that fit those requirements.
Lightening Talk I gave at Inaka in April 2014.
I was in charge of investigating test-driven development for our iOS mobile team. Since I realized it was such a big concept, after having gathered enough information and having played with it enough, I decided to introduce my fellows on the topic by presenting it in a formal talk with slides. The aim was teaching them a different way of developing, which, for us, at that moment, was completely new and controversial.
My talk at CodeFest 2017 in Novosibirsk, Russia. I talk about the benefits of adding a app crawler to your build process. In todays Agile world it's becoming difficult to keep up with the amount of manual and exploratory testing with shorter and shorter sprint iterations. It's time to put machines to work and help take some of the load off of us!
How Gozengo Implemented a Continuous Deployment Culture from Day OneSauce Labs
A case study in setting up a Continuous Deployment process and culture at Gozengo, a small startup, and how they made the decision to implement Continuous Deployment from day one and what they learned along the way.
Why Your Selenium Tests are so Dang Brittle, and What to Do About ItJay Aho
If you are writing automated through-the-GUI tests for a web application, you are in danger of creating tests that are more expensive to maintain than they are worth. With well-factored Selenium RC tests running in Junit or TestNG, you can keep your abstraction layers or "Lingos" -- small bounded bits of slang for discrete parts of the object model -- separate, thereby reducing the maintenance costs of your tests, and improving your sanity.
This presentation is from a technical track webinar on:
•How and why automated web app code gets so dang brittle
•Why the expressiveness, readability, and fluency of your test code is so important to its maintenance cost
•Some basic, useful OOD patterns for writing very expressive web app tests using Selenium RC, in Java and in C#/.NET
•Some useful OOD principles to guide your design decisions, like keeping modules small, the SRP, DRY, "Lingos", and "Lingual Design"
•Some OOD principles worth violating, frequently, when writing automated test code, because it's just very different from application code
•How and why to prefer element locators like Id and Value attributes to xPath; how to keep xPath least brittle
•An introduction to Domain Specific Languages (DSLs) built on top of Selenium RC, using FitNesse
•An introduction to "fluent" Selenium RC testing using Scala
Prerequisites include experience with Java or C#, and ideally some basic OOD familiarity (inheritance, composition, encapsulation, polymorphism).
To view or download a replay of the event (WMV format), which included live demonstrations, please visit: http://www.pillartechnology.com/content/webinardetail/id/16
Joel Arvidsson, Klarna. What You See is What You Get – a case for visual testingIT Arena
Experienced software engineer, currently working mainly in JavaScript and React Native. Passionate about open source and building delightful mobile experiences
Speech Overview:
Components are commonly tested with snapshots of the rendered DOM. While it’s beneficial when working with untested legacy systems, often it’s a high noise and high maintenance approach that easily lets regressions slip by. It’s now considered bad practice having it as the single testing strategy.
Loki is a visual testing tool that has similar benefits as snapshot testing in that it’s quick and easy to get started, but fewer of the downsides – refactors are not flagged as regressions and discerning desirable from unintended changes is much easier. Last year it gained a place in the ThoughtWorks Tech Radar and has since matured to support advanced use cases with massive parallelization using lambdas.
The talk outlines successful strategies for visual testing in general, pitfalls to avoid and how to get started in under a minute
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
30. ACTUALLY...
There are many kinds of
automated tests
http://www.flickr.com/photos/60648084@N00/1360619915/
31. UNIT TESTS
* For individual functions
* The cutest test.
http://www.flickr.com/photos/donsolo/2900765675/in/set-72157594163175020/
32. INTEGRATION TESTS
* For groups of related
functionality
* More relevant and
(almost) fun to write
http://www.flickr.com/photos/donsolo/399501571/in/set-72157594163175020/
33. ACCEPTANCE TESTS
* Highest level
testing.
* Basically user
stories.
* “Accepted” as in
“get fired if they
don’t work”
http://www.flickr.com/photos/donsolo
43. HOORAY FOR USER STORIES!
Strive to pass good user-centered tests.
http://www.lukeredpath.co.uk/blog/developing-a-rails-model-using-bdd-and-rspec-part-1.html
52. why:
It’s a Firefox plugin for testing.
Turns your actions into test code.
Let’s you edit test code in the browser.
Let’s you export to lots of languages.
54. why:
It’s a Firefox plugin for testing.
Turns your actions into test code.
Let’s you edit test code in the browser.
Let’s you export to lots of languages.
56. why:
It’s a Firefox plugin for testing.
Turns your actions into test code.
Let’s you edit test code in the browser.
Let’s you export to lots of languages.
60. Now: Record and Playback
• Intelligent field selection will use IDs, names, or
XPath as needed
• Autocomplete for all common Selenium
commands
• Walk through tests
• Debug and set breakpoints
• Save tests as HTML, Ruby scripts, or any other
format
Totally takes 5 seconds, man
65. SPEAK SELENESE
open
opens a page using a URL.
click/clickAndWait
performs a click operation, and
optionally waits for a new page to
load.
verifyTitle/assertTitle
verifies an expected page title.
verifyTextPresent
verifies expected text is
somewhere on the page.
66. VERIFY PAGE ELEMENTS
is ...
1. an element is present somewhere on the page?
2. specific text is somewhere on the page?
3. specific text is at a specific location on the page?
67. GOTCHAS
• clickAndWait is usually
required
• type usually requires you
to click somewhere else first
• it’s slow
• brittle if the UI is changing
rapidly
68. HARD PART’S JUST FINDING IT
Good thing you have so many options ...
• find elements by name
• find them by id if they have it
• or with CSS selectors if you understand the cascade
• Xpath is like a buzzsaw (a little more expensive)
• link text as a last resort (since it changes often)
75. Selenium-RC leverages the full power of
programming languages, creating tests that
can do things like
• read and write external files,
• make queries to a database,
• send emails with test reports
• practically
anything else a user can do
with a normal application ...
76. RC can where IDE can’t
• condition statements
• iteration
• logging and reporting of test results
• error handling, particularly unexpected errors
• database testing
• test case grouping
• re-execution of failed tests
• test case dependency
• capture screenshots on test failures
77. WAIT, WHAT ABOUT TEST-
DRIVEN DEVELOPMENT?
If you click around the app to build a test,
that can’t be testing before development.
78. RIGHT.
You actually should write them beforehand, by hand, just like
you would unit tests. It’s not so scary.
• NUnit for C#
• Junit for Java
• Selenium gem for Ruby
82. WHAT IT MEANS
• Run your unit tests first locally (because they’re fast).
• Checking in your changes triggers the continuous
integration server running your Selenium tests (slow
because they are in the browser).
• Cruise Control gives you a web-based heads up when you
fail or pass tests.
• Joy.
83. THANKS!
:)
Chris Blow
http://unthinkingly.com
User Experience @ Meedan.net