This document discusses unit testing ActionScript and Flex code. It defines unit testing as testing the smallest units of code in isolation to determine if a single object is working as expected. The document outlines different types of testing, including unit testing, integration testing, and functional testing. It also discusses concepts like test cases, test suites, assertions, matchers, and mocks that are important for unit testing code. The document is accompanied by exercises to help understand and apply unit testing principles to ActionScript and Flex code.
Refactoring: Improve the design of existing codeValerio Maggio
Refactoring: Improve the design of existing code
Software Engineering class on main refactoring techniques and bad smells reported in the famous Fawler's book on this topic!
Refactoring: Improve the design of existing codeValerio Maggio
Refactoring: Improve the design of existing code
Software Engineering class on main refactoring techniques and bad smells reported in the famous Fawler's book on this topic!
The presentation contains a definition and survey of the benefits of Unit Testing, and a little coding example to get the feeling of Unit Testing using JUnit, EasyMock and XMLUnit.
Mastering Mock Objects - Advanced Unit Testing for JavaDenilson Nastacio
A high-level description of mock testing techniques and their implementation for the Java programming language.
This presentation specifically focus on the JMockit and JMock frameworks.
Unit Testing 101 presented at ESRI Developer Summit, March 24th, 2009. This talk reviews the key concepts of unit testing, the technologies used by DTSAgile in out development projects.
Access our sample Java8 certification questions.
1z0-808 certification questions ready to be used.
For each 1z0-808 certification question you can find the solution, the explanation and the exam objective of 1z0-808
Archives of the Columbia-Princeton Electronic Music CenterNick Patterson
An overview of materials in the archives of the former Columbia-Princeton Electronic Music Center (now the Computer Music Center at Columbia).
Sorry, audio examples not included in this version. Please feel free to contact me with any questions or comments. /Nick Patterson
The presentation contains a definition and survey of the benefits of Unit Testing, and a little coding example to get the feeling of Unit Testing using JUnit, EasyMock and XMLUnit.
Mastering Mock Objects - Advanced Unit Testing for JavaDenilson Nastacio
A high-level description of mock testing techniques and their implementation for the Java programming language.
This presentation specifically focus on the JMockit and JMock frameworks.
Unit Testing 101 presented at ESRI Developer Summit, March 24th, 2009. This talk reviews the key concepts of unit testing, the technologies used by DTSAgile in out development projects.
Access our sample Java8 certification questions.
1z0-808 certification questions ready to be used.
For each 1z0-808 certification question you can find the solution, the explanation and the exam objective of 1z0-808
Archives of the Columbia-Princeton Electronic Music CenterNick Patterson
An overview of materials in the archives of the former Columbia-Princeton Electronic Music Center (now the Computer Music Center at Columbia).
Sorry, audio examples not included in this version. Please feel free to contact me with any questions or comments. /Nick Patterson
Le Windows Runtime 8.1, propose plus de 5000 nouvelles APIs. Dans cette session nous vous proposons de faire un rapide tour d’horizon de certaines, agrémenté de démos et de codes.
Speakers : Eric Vernié (Microsoft), Sébastien Pertus (Microsoft), Loic Rebours (Avanade)
This workshop is about testing the right way. Get a clear view on how to test your code in an efficient and useful way!
This first testing-related workshop is about all aspects of unit testing. Integration testing and TDD will have their own dedicated workshops.
Unit Testing in .NET Core 7.0 with XUnit.pptxKnoldus Inc.
Join us for an insightful session on xUnit testing in the latest .NET 7.0 environment! In this workshop, we'll delve into the powerful xUnit testing framework, a widely adopted tool for crafting robust and efficient unit tests in the .NET ecosystem. Learn how xUnit seamlessly integrates with the latest features of .NET 7.0, providing developers with an unparalleled testing experience. We'll cover the fundamentals of writing clear and concise unit tests using xUnit syntax, explore advanced features for more complex scenarios, and discuss best practices for maintaining a scalable and reliable test suite. Whether you're a seasoned developer or new to testing in .NET, this session will equip you with the knowledge and skills to leverage xUnit effectively in your projects. Don't miss this opportunity to elevate your testing game and ensure the resilience of your .NET 7.0 applications.
In depth overview of the Flex data binding code generation. Provides info on accomplish data binding through actionscript as well as limitations of the process.
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
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.
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/
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
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.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
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
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
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.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
L2624 labriola
1. Unit Testing ActionScript and Flex Michael Labriola | Senior Consultant, Digital Primates @mlabriola | labriola@digitalprimates.net
2. Who Am I? Michael Labriola Senior Consultant Digital Primates Client side architect specializing in Adobe Flex Architect and developer of Fluint Lead architect and developer of FlexUnit4.x Benevolent Dictator of the Spoon Framework Co-Author of Flex Training from the Source Series Team Mentor Fan of working code 2
3. Before We Begin This lab is broken into five main tasks with various exercises along the way In 90 minutes, if things go well, we will complete tasks one through four with some discussion along the way Task five is something I would strongly advise you take a bit of time to review later. It is a full rework of the application to be testable. The lab workbook and all lesson files are available for download At the end of several lessons there are ‘Advanced’ exercises. People will move at different rates through the content. If you find yourself done with a Task and have time, ponder the advanced exercise they will help demonstrate points in a Socratic way They can be treated as thought exercises but work better if you actually try to implement 3
4. Types of Testing - Unit Unit Testing - Our concern in this lab Unit testing involves testing the smallest units of code A single object It requires that the object be isolated. The test result should not be able to be affected by other objects It should not be affected by global state When a unit test fails the source of the error should be immediately clear This requirement for isolation means that some code cannot be unit tested Axiom - You can only unit test testable code Creating testable code is both a question of implementation and of architecture Many people want to unit test but fail In my experience, this is usually because the code they wish to test is not testable in units 4
5. Types of Testing - Integration Integration Testing Involves testing several (ideally tested) units together Very important part of testing You need to know that individual objects work together properly Failures are not as clear When an integration test fails, there are (n) places it could have failed As a general rule, the moment we discuss any of the following words, we are discussing some form of integration test: Asynchronous Server Lifecycle DisplayList 5
6. Types of Testing - Functional Allows you to record and playback interactions with an application Extremely important; ensures that the application works to specification Many units need to be working before you can produce a single test Failures are very unclear Any number of units could be responsible for the failure Many tools available: Flex Monkey – Open Source Test Complete RIATest HP QTP And more 6
8. Object Graphs To understand unit testing we need understand object graphs There are two types of objects we are concerned about Branch and Leaf Leaf Nodes have no dependencies on other objects in your code (they will have dependencies on simple types and some flash player objects) Trivial to test Branch Nodes have dependencies on other objects More difficult and sometimes impossible to test 8
9. Creating Objects You will always have both types in your system, however, we often have too many dependencies because we forget some simple things: An object is supposed to have one responsibility. Single Responsibility Principle. Objects with (n) responsibilities will be much harder to test effectively Second objects shouldn’t reach into each other. It breaks encapsulation Don’t violate the Law of Demeter myObject.childObject.grandChildObject.property 9
11. Testing Framework FlexUnit 4 is a unit testing framework You don’t need a framework to test You already test each time you walk through the same actions to vet a piece of code Testing frameworks only exist to: Automate this effort so the tests can be run again and again easily Standardize the way tests are constructed so they are understandable to others 11
12. Assertions Assertions are a tool used to reveal whether or not a piece of code is working as expected. They take the form of a strong statement indicating the result. For example, if you add the numbers 2 and 3. result = 2 + 3; You can assert that the result is 5. You do so as you are sure that no other answer is satisfactory and that a different answer is just plain wrong. assertEquals( 5, result ); If this assertion is not true, meaning that result is not equal to 5, then you can conclude that the plus operator no longer works correctly in all cases. This is the basis of testing. 12
13. Test A Test is just a public method of an object The method is decorated by a special [Test] metadata which allows FlexUnit 4 to recognize it as test [Test] public function shouldSeeBlueSky():void { varsky:Sky = new Sky(); assertEquals( “blue”, sky.color ); } Tests contain one (preferable) or more assertions indicating your belief about the state of the object under test or the result of a method invoked on the object Each test is discrete. It should not depend on other tests or the order the tests are run. 13
14. Test Case A Test Case is a collection of related Tests in a single class [Test] public function shouldSeeBlueSky():void { varsky:Sky = new Sky(); assertEquals( “blue”, sky.color ); } [Test] public function shouldNotSeeClouds():void { varsky:Sky = new Sky(); assertNull(sky.clouds); } 14
15. Test Case Setup As all tests in a single Test Case should be related, they often can share setup The combination of the setup/environment needed to run a test is called a Test Fixture FlexUnit 4 facilitates sharing test fixtures by allowing you to mark a method with Before or After metadata. This indicates the method should be run before or after every test method. [Before] public function andTheSkyWasCreated():void { sky = new Sky(); } [After] public function letItFall():void { sky = null; } 15
16. Test Case Rules FlexUnit 4 offers one more way to configure the test case fixture, rules. You can think of rules as a way to move things that would happen in the Before and After into a separate object. This makes it easier to share this configuration code amongst multiple test cases [Rule] public varcreateAndDestroySky:CreateAndDestroySkyRule = new CreateAndDestroySkyRule(); 16
17. Test Suite A Test Suite is a collection of Test Cases and other Test Suites package flexUnitTests { [Suite] [RunWith("org.flexunit.runners.Suite")] public class CurrencyConverterSuite { public var test1:ClearSkyTests; public var test2:StormySkyTests; } } 17
19. Matchers The process of performing multiple assertions can become complicated Imagine a scenario where you need to verify that 2 points are identical [Test] public function shouldBeTheSamePoint():void { assertEquals( pt1.x, pt2.x ); assertEquals( pt1.y, pt2.y ); assertEquals( pt1.z, pt2.x ); } At some point your test cases become littered with all of the work required to do the assertions To address this problem, FlexUnit works with something called matchers that allow you to move this work into a separate object 19
20. Hamcrest Using matchers, the code can look more like this: [Test] public function shouldBeTheSamePoint():void { assertThat( pt1, isSamePoint( pt2 ) ); } The code becomes more readable and the matching logic is contained elsewhere. There is a collection of matchers that can be used with FlexUnit as well as any ActionScript project that can use specialized matching, it is called Hamcrest-as3 For more information: https://github.com/drewbourne/hamcrest-as3 20
23. Branches versus Nodes We talked about branches in the abstract, but here is something more concrete. Even though we extracted the PercentChangeFormatter from MarketInfo, it is still a branch node, not a leaf node 23 MarketInfo PercentChangeFormatter NumberFormatter
24. Combinatorial If you aren’t careful with these sorts of dependencies, you end up with combinatorial tests. This results in a lot of test duplication… technically this is because you can’t identify independent variables. The PercentChangeFormatter really just modifies the String returned from the NumberFormatter a little. As they exist now we really end up testing the both of these objects together… which is an integration test… 24 PercentChangeFormatter NumberFormatter
26. Seams and Mocks The cleanest way to deal with this is to create a seam. If we provide the needed NumberFormatter to the PercentChangeFormatter, we create a seam What can we do with that seam? We could build the PercentChangeFormatter with a substitute NumberFormatter This will eliminate the combinations and allow us to test only one class (a unit) There are two types of substitutes we can use… fakes and mocks Fakes are just dumb objects that conform to the same interface Mocks are intelligent objects that keep track of what happened to them and know how they should respond For this Task we will use one of many available mocking frameworks, named Mockolate. 26
28. Additional Resources 28 Google Testing Blog http://googletesting.blogspot.com/ FlexUnit http://flexunit.org/ FlexUnit Tutorials http://tutorials.digitalprimates.net/flexunit.html Hamcrest https://github.com/drewbourne/hamcrest-as3 Mockolate http://mockolate.org/ My Blog http://www.digitalprimates.net/author/codeslinger/