4 Nisan 2015 tarihinde Kadir Has Üniversitesi'nde yapılan 9. Yazılım Teknolojileri Seminer etkinliğinde Eralp Erat'ın yaptığı TDD (Test Driven Design) sunumu
Test-Driven Development is about approaching software development from a test perspective and knowing how to use the tools (e.g. JUnit, Mockito) to effectively write tests.
Source code examples @...
https://github.com/codeprimate-software/test-driven-development
Test Driven Development - Phương pháp phát triển phần mềm theo hướng viết test trước.
Áp dụng TDD sẽ đem lại cho bạn thiết kế phần mềm trong sáng hơn và quản lý được chất lượng từng dòng code của mình viết ra.
Bài trình bày của bạn Lê Anh tại Meetup của Ha Noi .NET Group.
Chi tiết vui lòng xem tại: http://tungnt.net
A quick paced introduction to "Test Driven Development" (TDD) in an agile environment. The TDD philosophy states that you should develop your tests and then write code to make your tests pass and satisfy user requirements.
San Francisco Software Craftsmanship Meetup
Test Driven Developers Bay Area Meetup
TDD Flow: The Mantra in Action” is a talk + hands-on about the mantra of TDD and its core patterns. Here are some questions for this talk: What is TDD? How to write a good test that fails? How to write code enough to make the test pass? How to remove duplication? How to refactor code? How to create clean code? Is TDD about testing or design? How small should a test be? Should I only write unit tests? Should I estimate TDD? How to use TDD with other agile methods like Scrum, Kanban or BDD? And finally, how to flow in TDD?
Test-Driven Development is about approaching software development from a test perspective and knowing how to use the tools (e.g. JUnit, Mockito) to effectively write tests.
Source code examples @...
https://github.com/codeprimate-software/test-driven-development
Test Driven Development - Phương pháp phát triển phần mềm theo hướng viết test trước.
Áp dụng TDD sẽ đem lại cho bạn thiết kế phần mềm trong sáng hơn và quản lý được chất lượng từng dòng code của mình viết ra.
Bài trình bày của bạn Lê Anh tại Meetup của Ha Noi .NET Group.
Chi tiết vui lòng xem tại: http://tungnt.net
A quick paced introduction to "Test Driven Development" (TDD) in an agile environment. The TDD philosophy states that you should develop your tests and then write code to make your tests pass and satisfy user requirements.
San Francisco Software Craftsmanship Meetup
Test Driven Developers Bay Area Meetup
TDD Flow: The Mantra in Action” is a talk + hands-on about the mantra of TDD and its core patterns. Here are some questions for this talk: What is TDD? How to write a good test that fails? How to write code enough to make the test pass? How to remove duplication? How to refactor code? How to create clean code? Is TDD about testing or design? How small should a test be? Should I only write unit tests? Should I estimate TDD? How to use TDD with other agile methods like Scrum, Kanban or BDD? And finally, how to flow in TDD?
Contents:
Behavior Driven Development (BDD)
Features of BDD
BDD Tools
BDD Framework
Examples of Cucumber/SpecFlow/BDD test
Gherkin – BDD Language
The Problem
Example of Gherkin
The Conclusion
SpecFlow Feature File
Keywords for the Feature File creation
An introduction to unit testing using Visual Studio, C#, xUnit.net, and Moq. What it is, what is isn't, why we don't do it, how to design for testability, what to test, test driven development, unit testing frameworks, mocking libraries, how to get started.
Lets break some code. In this workshop we will be going over some of the fundamental concepts of software testing and take a hands on approach to writing Unit and Integration tests. We will cover topics such as mocking, stubbing, database patching and how this can all fit into a continuous integration environment like Jenkins.
Behavior Driven development is the process of exploring, discovering, defining and driving the desired behavior of software system by using conversation, concrete examples and automated tests.
Contents:
Behavior Driven Development (BDD)
Features of BDD
BDD Tools
BDD Framework
Examples of Cucumber/SpecFlow/BDD test
Gherkin – BDD Language
The Problem
Example of Gherkin
The Conclusion
SpecFlow Feature File
Keywords for the Feature File creation
An introduction to unit testing using Visual Studio, C#, xUnit.net, and Moq. What it is, what is isn't, why we don't do it, how to design for testability, what to test, test driven development, unit testing frameworks, mocking libraries, how to get started.
Lets break some code. In this workshop we will be going over some of the fundamental concepts of software testing and take a hands on approach to writing Unit and Integration tests. We will cover topics such as mocking, stubbing, database patching and how this can all fit into a continuous integration environment like Jenkins.
Behavior Driven development is the process of exploring, discovering, defining and driving the desired behavior of software system by using conversation, concrete examples and automated tests.
Test-Driven Development (TDD) is a software development approach or method in which test cases are developed to specify and validate what the code will do.
The main ideas are -
1. Test cases for each individual function are created.
2. The newly created test cases are run for obvious fail at the very beginning.
3. Then the new code is developed in order to pass the test cases.
4. Make the code simple and bug-free.
5. Avoid duplicate codes for a single functionality.
How TDD works:
1. Add a new test to the test suite.
2. (Red) Run all the tests to ensure the new test fails.
3. (Green) Write just enough code to get that single test to pass.
4. Run all tests.
5. (Refactor) Improve the initial code while keeping the tests green
6. Repeat.
There are two levels of TDD –
1. Acceptance TDD (ATDD) and
2. Developer TDD
Seconda serata di introduzione al Test-Driven Development, tenuta in XPeppers a Trento il 24 Ottobre 2012.
Nelle slide c'è anche la descrizione del coding dojo sullo string calculator che abbiamo svolto assieme.
TDD is now mainstream but a lot people don't know or don't remember what is its purpose. TDD is about software design not testing or catching bug. TDD helps developers to shape and create software with "good" design, what is a "good" design is something that we will discuss in the topic.
The original promise of TDD was that it would assist in guiding the development of clean code, but it often ends up polluting our architecture with excessive composition, is expensive to write, and becomes an obstacle to change, not an aid to refactoring. In this talk, we look at the fallacies of TDD and learn about the key principles that we should be following for mastery of this practice. This talk is intended for those who have been practicing TDD, or who have tried TDD and given up because of shortcomings in the approach they were taught.
TDD is now mainstream but a lot people don't know or don't remember what is its purpose. TDD is about software design not testing or catching bug. TDD helps developers to shape and create software with "good" design, what is a "good" design is something that we will discuss in the topic.
This presentation is simply for motivating developers towards test automation and test-driven development. It discusses lightly unit testing, mocking and integration testing, too.
Want to know the case for Test-Driven Development? Want to know style tips and gotchas for Testing and TDD? Let Alex Chaffee, former Mad Scientist at Pivotal Labs, tell you everything you didn't know you didn't know about testing.
xUnit and TDD: Why and How in Enterprise Software, August 2012Justin Gordon
“A comprehensive suite of JUnit tests is one of the most import aspects of a software project because it reduces bugs, facilitates adding new developers, and enables refactoring and performance tuning with confidence. Test-driven development (TDD) is the best way to build a suite of tests. And the Dependent Object Framework is the best way to test against database objects.” This presentation covers the benefits of TDD along with practical advice on how to implement TDD in complex projects.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
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/
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
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
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/
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.
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
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
3. ORIGIN
Test-Driven Development is a core part of the
agile process formalized by Kent Beck called
eXtreme Programming (XP).
XP originally had the rule to test everything that
could possibly break. Now, however, the
practice of testing in XP has evolved into Test-
Driven Development.“
Do not need to adopt XP in order to practice TDD
and gain the benefit from it. 3
4. INTRODUCTION
Traditional Approach
Test last
Problems with Traditional
Errors in production
Programmer moves onto other projects
Test and code written by different programmers
Tests based on outdated information
Infrequent testing
Fixes that create other problems
4
7. WHAT IS TDD?
TDD is a technique whereby you write your test cases
before you write any implementation code
Forces developers to think in terms of implementer and
user
Tests drive or dictate the code that is developed
“Do the simplest thing that could possibly work”
Developers have less choice in what they write
An indication of “intent”
Tests provide a specification of “what” a piece of code
actually does – it goes some way to defining an interface
Some might argue that “tests are part of the
documentation”
Could your customers/clients write tests?
7
8. WHAT IS TDD?
“Before you write code, think about what it will do.
Write a test that will use the methods you haven’t even
written yet.”
A test is not something you “do”, it is something you
“write” and run once, twice, three times, etc.
It is a piece of code
Testing is therefore “automated”
Repeatedly executed, even after small changes
“TDD is risk averse programming, investing work in the
near term to avoid failures later on”
8
10. WHAT CAN BE TESTED?
Valid Input
In-valid Input
Exceptions
Boundary Conditions
Everything that should be possible break.
10
11. ASPECTS OF TDD
Features
High level user requirements
User story
Customer Tests
Customer identified acceptance tests
Developer Tests
Tests developed during software construction
11
12. METHODOLOGY
Test first – Code last
You may not write production code unless you’ve first
written a failing unit test
12
13. TDD STAGES
Write a test
Compile
Fix compile errors
Run test,
watch it fail
Write code
Run test,
watch it pass
Refactor code
(and test)
13
14. TDD STAGES
The Extreme Programming Explored , Bill Wake describes
the test cycle:
1. Write a single test
2. Compile it. It shouldn’t compile because you’ve not written
the implementation code
3. Implement just enough code to get the test to compile
4. Run the test and see it fail
5. Implement just enough code to get the test to pass
6. Run the test and see it pass
7. Refactor for clarity and “once and only once”
8. Repeat
14
16. WHY DOES TDD WORK?
The (sometimes tedious) routine leads the
programmers to think about details they
otherwise don’t (because they’ve bitten off more
than they can chew)
Specifically, test cases are thought through
before the programmer is allowed to think about
the “interesting part” of how to implement the
functionality
16
17. WHY DOES TDD WORK?
Encourages “divide-and-conquer”
Programmers are never scared to make a change
that might “break” the system
The testing time that is often squeezed out of the
end of a traditional development cycle cannot be
squeezed out.
17
18. ADVANTAGES OF TDD
TDD shortens the programming feedback loop
TDD promotes the development of high-quality
code
User requirements more easily understood
Reduced interface misunderstandings
TDD provides concrete evidence that your
software works
Reduced software defect rates
Better Code
Less Debug Time.
18
19. DISADVANTAGES OF TDD
Programmers like to code, not to test
Test writing is time consuming
TDD may not always work
19
20. EXAMPLE
We want to develop a method that, given two
Integers, returns an Integer that is the sum of
parameters.
20
22. EXAMPLE (CONT.)
Test
Integer i =
new Integer(5);
Integer j =
new Interger(2);
Object o = sum(i,j);
Method
public static Object
sum(Integer i,
Integer j) {
return new
Object();
}
22
23. EXAMPLE (CONT.)
Test
Integer i =
new Integer(5);
Integer j =
new Interger(2);
Object o = sum(i,j);
if (o instanceof
Integer)
return true;
else
return false;
Method
public static Object
sum(Integer i,
Integer j) {
return new
Object();
}
23
24. EXAMPLE (CONT.)
Test
Integer i =
new Integer(5);
Integer j =
new Interger(2);
Object o = sum(i,j);
if (o instanceof
Integer)
return true;
else
return false;
Method
public static Integer
sum(Integer i,
Integer j) {
return new
Integer();
}
24
25. EXAMPLE (CONT.)
Test
Integer i =
new Integer(5);
Integer j =
new Interger(2);
Object o = sum(i,j);
if ((o instanceof
Integer) &&
((new Integer(7))
.equals(o))
return true;
else
return false;
Method
public static Integer
sum(Integer i,
Integer j) {
return new
Integer();
}
25
26. EXAMPLE (CONT.)
Test
Integer i =
new Integer(5);
Integer j =
new Interger(2);
Object o = sum(i,j);
if ((o instanceof
Integer) &&
((new Integer(7))
.equals(o))
return true;
else
return false;
Method
public static Integer
sum(Integer i,
Integer j) {
return new
Integer(
i.intValue() +
j.intValue());
}
26
27. TECHNIQUE
Identify a “smallest possible” change to be made
Implement test and (the one line of) code for that
change (see previous slide)
Run all tests
Save test and code together in source control
system
Repeat
27
28. CONCLUSION
More code has to be written using TDD but that isn’t
the bottleneck in Software Development
Techniques have to be learned by developers and
enforced by managers
User Interface testing is the hardest
Resulting unit tests most valuable when run as part of
an automated build process
28
Editor's Notes
Turnover in people
Increase in complexity due to interactions between components of the system
These were the minimum ratios, the maximum was 1000 to 1 between operation and requirements phases!
Absolute costs are usually significantly greater than expected for faults found especially in the Operation phase (figures of $10,000 - $150000 are often quoted by organisations such as HP). Do you know what the typical rework cost (time/money) is for a fault reported by users in the field? It is these costs and those associated with rework from dynamic testing that are significantly reduced by using reviews - a static testing technique that is also more efficient at finding faults than dynamic testing in terms of faults found per hour of testing.