Saturday, 6 August 2011
Saturday, 30 July 2011
SOAPUI AND LOADUI TDE (Test Driven Engineering)
I've been using Eviware's SOAP and LOADUI this last month as part of System testing on a project I've been working on this year.
I started very confidently as I had used SOAPUI on a more focused level on software development tasks in the past, but then I started to hit a number of obstacles:
The biggest lesson learnt is the combining of different aspects of performance into a integrated model of performance: in which different measures of performance are combined and tested together (Responsiveness, Throughput, System load, Growth).
For example Account creation interface should complete in 4 Seconds, 99.95% of the time.
Account creation will be invoked at an Average throughput of 6000 request per hour, Peak throughput per hour is 12,000 requests.
Account creation will be invoked at an Average throughput of 1000 request per minute, peak throughput per minute is 4,000 requests.
The system will be loaded day one with 3.4 million Accounts.
The system will be loaded at the end of year one with 365x250,000 Accounts.
I started very confidently as I had used SOAPUI on a more focused level on software development tasks in the past, but then I started to hit a number of obstacles:
- Complexity of set-up and tear down activities limited the scope of what I could achieve in the time available.
- Only a third of the system was exposed as web services, the rest of it was a combination Java Api's, JMS, etc,..
- Concurrency requirement were very vague.
- Throughput requirements were not related to web service operations
The biggest lesson learnt is the combining of different aspects of performance into a integrated model of performance: in which different measures of performance are combined and tested together (Responsiveness, Throughput, System load, Growth).
For example Account creation interface should complete in 4 Seconds, 99.95% of the time.
Account creation will be invoked at an Average throughput of 6000 request per hour, Peak throughput per hour is 12,000 requests.
Account creation will be invoked at an Average throughput of 1000 request per minute, peak throughput per minute is 4,000 requests.
The system will be loaded day one with 3.4 million Accounts.
The system will be loaded at the end of year one with 365x250,000 Accounts.
Sunday, 20 March 2011
System Performance - Capacity Planning and Forecasting
Capacity planning analysis for Enterprise system typically takes the following forms:
Efficiency Analysis - Examine the inter-relationship between different resources configurations to achieve a target transaction load/throughput rate, at the lowest resource cost.
Scalability Analysis - Examine the inter-relationship between resources and transaction load/throughput rates to determine vertical or horizontal scalability options.
Availability Analysis - Examine the inter-relationship between different resources configurations to achieve a target a transaction load/throughput rate servicing a defined set of network interfaces/end points.
Reliability - Examine the inter-relationship between different resources configurations to maintain a target a transaction load/throughput rate on Fail over.
References Linear Regression BEA's guide to Capacity Planning
Efficiency Analysis - Examine the inter-relationship between different resources configurations to achieve a target transaction load/throughput rate, at the lowest resource cost.
Scalability Analysis - Examine the inter-relationship between resources and transaction load/throughput rates to determine vertical or horizontal scalability options.
Availability Analysis - Examine the inter-relationship between different resources configurations to achieve a target a transaction load/throughput rate servicing a defined set of network interfaces/end points.
Reliability - Examine the inter-relationship between different resources configurations to maintain a target a transaction load/throughput rate on Fail over.
References Linear Regression BEA's guide to Capacity Planning
Tuesday, 8 March 2011
System Performance - Benchmarks
Synthetic v's Application benchmarks [1]
Benchmarks are designed to mimic a particular type of workload on a component or system. Synthetic benchmarks do this by specially created programs that impose the workload on the component. Application benchmarks run real-world programs on the system. Whilst application benchmarks usually give a much better measure of real-world performance on a given system, synthetic benchmarks are useful for testing individual components, like a hard disk or networking device.
Synthetic Benchmarks:
Whetstone benchmark is based on floating point algorithm performance tests [2].
Dhrystone benchmarking is based entirely on integer based algorithm performance tests.
The SPECint (Standard Performance Evaluation Corporation) suite evolved from the Dhrystone benchmark.
Application Benchmarks:
Joslin [5] emphasizes three characteristics of the application benchmark.
1. The routines are actually run on the proposed systems.
2. The total throughput time is considered.
3. The routines are aimed at specific applications.
Unrepresentative workloads being tested will provide unreliable benchmark results. Workload modelling is concerned with establishing workloads.
Joslin suggests Four factors to consider:
1. Types of processing — logic, computation, housekeeping, etc.
2. Time requirements — compile, execute, tapes, card units, printers, etc.
3. Equipment requirements — core, I/O channels,printers, etc.
4. Order of the benchmark programs (priority).
The effort and cost involved in designing and applying Application benchmarks gave rise to the Synthetic benchmarks, the most high profile of which include SPECint and TPC benchmarks.
References
[1] http://en.wikipedia.org/wiki/Benchmark_%28computing%29
[2] http://www.roylongbottom.org.uk/whetstone%20results.htm#anchorjava
[3] http://www.spec.org/
[4] http://www.spec.org/cpu2000/results/cint2000.html
[5] The Evolution of Benchmarking as a Computer Performance Evaluation Technique, MIS Quarterly; Mar85, Vol. 9 Issue 1, p7-16, 10p.
Benchmarks are designed to mimic a particular type of workload on a component or system. Synthetic benchmarks do this by specially created programs that impose the workload on the component. Application benchmarks run real-world programs on the system. Whilst application benchmarks usually give a much better measure of real-world performance on a given system, synthetic benchmarks are useful for testing individual components, like a hard disk or networking device.
Synthetic Benchmarks:
Whetstone benchmark is based on floating point algorithm performance tests [2].
Dhrystone benchmarking is based entirely on integer based algorithm performance tests.
The SPECint (Standard Performance Evaluation Corporation) suite evolved from the Dhrystone benchmark.
Application Benchmarks:
Joslin [5] emphasizes three characteristics of the application benchmark.
1. The routines are actually run on the proposed systems.
2. The total throughput time is considered.
3. The routines are aimed at specific applications.
Unrepresentative workloads being tested will provide unreliable benchmark results. Workload modelling is concerned with establishing workloads.
Joslin suggests Four factors to consider:
1. Types of processing — logic, computation, housekeeping, etc.
2. Time requirements — compile, execute, tapes, card units, printers, etc.
3. Equipment requirements — core, I/O channels,printers, etc.
4. Order of the benchmark programs (priority).
The effort and cost involved in designing and applying Application benchmarks gave rise to the Synthetic benchmarks, the most high profile of which include SPECint and TPC benchmarks.
References
[1] http://en.wikipedia.org/wiki/Benchmark_%28computing%29
[2] http://www.roylongbottom.org.uk/whetstone%20results.htm#anchorjava
[3] http://www.spec.org/
[4] http://www.spec.org/cpu2000/results/cint2000.html
[5] The Evolution of Benchmarking as a Computer Performance Evaluation Technique, MIS Quarterly; Mar85, Vol. 9 Issue 1, p7-16, 10p.
Friday, 25 February 2011
Web 2.0 Understanding the Internet 2001 - 2011
A couple of excellent links for understanding Web 2.0 and the internet in 2011.
The importance of feedback and participation in the internet
http://mediatedcultures.net/mediatedculture.htm .
The rise of companies that own user participation, What is Web 2.0.
The importance of feedback and participation in the internet
http://mediatedcultures.net/
The rise of companies that own user participation, What is Web 2.0.
Tuesday, 22 February 2011
System Enginnering - Architecture
Systems Engineering provides Architects with great supporting processes, these include Requirements Management, Research and Design, Planning and Realization. The focus of Systems engineering is to ensure all processes in the life-cycle focus on producing the right product. This is more complex than it may initially appear, when the environment serves:
Requirements Management
Systems engineering requires that System requirements are developed as a separate engineering product from the user/product requirements.
User requirements are:
Product requirements are a substitute for User requirements, where a product is being developed for a market/user that does not participate in the development process, i.e. for COTS products the development needs are championed by a Marketing manager or Product development manager who would specify the Product requirements.
The User requirements product (URD) should consist of:
System requirements are:
The System Requirements product is typically broken into multiple products on larger project, but consists of:
Systems level modelling can be performed using a variety of supporting techniques, DFD, State Charts, UML, Functional Hierarchies etc,.. The criteria for completing the functional model is suggested to be:
1. The function model shows how the user requirements are met (Sunny day use cases).
2. The functional model shows faults will be managed at its limits (Rain day use cases).
3. The functional model shows how the system will perform outside of normal tolerances.
4. The functional model describes how system failure.
A useful example for an emergency service Command and Control centre process is:
1. Call logging under normal conditions.
2. Call logging for a major incident, where external requests match the available resources to meet all needs.
3. Call logging for a catastrophic incident, where external requests exceed the available resources to meet all needs.
4. Call logging when the system fails and DR plans are invoked.
When all these 4 levels are considered, then the functional models behaviour has probably been expressed to a sufficient level of detail.
Architectural Research & Design
The Architectural Research and Design process consists of the following activities:

The Architecture Design document product consists of:
As single component may be re-used within a single architecture or multiple architectures, the requirements for the component should be carefully analysed to identify contradictory modes of operation.
Architectural Planning
Evaluate an architectural design to ensure it optimises the benefits to the 'customer'.
The feasibility, risk and budget need to be assessed prior commissioning component development or procurement. To support this analysis the Architectural design needs to be broken down as a programme of work in a work breakdown structure and costs estimating.
The Architectural planning is joint activity to be conducted with Programme\Project Management, enabling professional staff to manage resourcing, planning, risk and change control management activities.
Value engineering is the process steering the Architectural design activity to provide the right solution. Quality Function Deployment is a tool for providing a structured process to blend requirements for multi-aspect products/systems.
Architectural planning can enable Concurrent engineering to reduce the critical path of the project, however the Concurrent engineering can increase the complexity and risk associated with delivering a project.
Component Development/Procurement
Component development addresses the stage of purchasing or commissioning work from component suppliers.
Architecture Realization
An Integration test strategy produced for Integration, Test and Verification should indicate the the Verification level and methods for critical components. An integration strategy will also produce requirements for the Integration, Test and Verification processes for the delivering the system.
Verification levels for each requirement:
- multiple users/customers.
- users/customer that are unable to define what solution they want procure.
- users/customer that are unaware of what solutions it might be possible to procure.
- engineers that may have limited or no direct contact with the users/customers or indeed if the user or customer is not directly involved in the process.
Requirements ManagementSystems engineering requires that System requirements are developed as a separate engineering product from the user/product requirements.
User requirements are:
- Requirements expressed in the user's language.
- Immediately understood by the user with out translation to the system domain vocabulary.
- Duplication is acceptable, where it recognises that different stakeholders hold the same need.
- The user (or user representative) owns these requirements.
Product requirements are a substitute for User requirements, where a product is being developed for a market/user that does not participate in the development process, i.e. for COTS products the development needs are championed by a Marketing manager or Product development manager who would specify the Product requirements.
The User requirements product (URD) should consist of:
- System Context
- Capabilities needed
- Constraints to be enforced
- User characteristics
- Operational environment
- Assumptions and dependencies
System requirements are:
- An abstract view of the system, describing system functions. What the system will do, not how it will do it.
- An analysis and restatement of the real or underlying need, which is not tied to describing a design or solution.
- Traced directly to User requirements where 1 User requirement might be addressed by 1 or more System requirements.
- Highlight to users that their needs are reflected throughout the development process.
- Enable system requirements to be shared across engineering disciplines (Hardware/Software/HCI/Security/Safety/etc,...).
- Enable capabilities to be developed which can be re-used.
- Promote testing.
- Separation of User and System requirements enable management of change and impact assessments to be performed.
The System Requirements product is typically broken into multiple products on larger project, but consists of:
- System context.
- Functional breakdown of behaviour.
- Performance of each function.
- Internal interfaces.
- Non-Functional Requirements (Safety Case, Security Requirement, HCI).
- External interfaces (Interface Control Documents).
- Traceability to the user requirements.
Systems level modelling can be performed using a variety of supporting techniques, DFD, State Charts, UML, Functional Hierarchies etc,.. The criteria for completing the functional model is suggested to be:
1. The function model shows how the user requirements are met (Sunny day use cases).
2. The functional model shows faults will be managed at its limits (Rain day use cases).
3. The functional model shows how the system will perform outside of normal tolerances.
4. The functional model describes how system failure.
A useful example for an emergency service Command and Control centre process is:
1. Call logging under normal conditions.
2. Call logging for a major incident, where external requests match the available resources to meet all needs.
3. Call logging for a catastrophic incident, where external requests exceed the available resources to meet all needs.
4. Call logging when the system fails and DR plans are invoked.
When all these 4 levels are considered, then the functional models behaviour has probably been expressed to a sufficient level of detail.
Architectural Research & Design
The Architectural Research and Design process consists of the following activities:
- The selection of technologies, services and components that comprise the solution.
- How each component of the solution interacts with other components and the external environment.
- A design that considers alternative solutions and selects the best fit and trade off against source requirements.
- Identify margins and System performance criteria, possibly exceeding user requirements.
- A requirements trace, which System and User requirement the solution satisfies.
- A design that selects solutions that can be sourced via development or procurement within schedule and budget constraints.

The Architecture Design document product consists of:
- Overview
- Context
- External Systems Interfaces
- Design Methods/Approaches/Patterns of Re-use
- System Behaviour - The operations and interfaces exposed by the system.
- Component Structure - The components of the system and the internal interfaces.
- System Layout - The physical arrangement of component instances on Processors/Servers/Sites.
- Resource/Cost Estimation.
- Requirements Trace.
- Component Identifier.
- Type: COTS/MOTS/Bespoke.
- Source: Supplier.
- Component Behaviour and Control.
- Interfaces.
- Layout.
- Dependencies.
- Information model.
- Performance criteria.
- Test Criteria.
As single component may be re-used within a single architecture or multiple architectures, the requirements for the component should be carefully analysed to identify contradictory modes of operation.
Architectural Planning
Evaluate an architectural design to ensure it optimises the benefits to the 'customer'.
The feasibility, risk and budget need to be assessed prior commissioning component development or procurement. To support this analysis the Architectural design needs to be broken down as a programme of work in a work breakdown structure and costs estimating.
The Architectural planning is joint activity to be conducted with Programme\Project Management, enabling professional staff to manage resourcing, planning, risk and change control management activities.
Value engineering is the process steering the Architectural design activity to provide the right solution. Quality Function Deployment is a tool for providing a structured process to blend requirements for multi-aspect products/systems.
Architectural planning can enable Concurrent engineering to reduce the critical path of the project, however the Concurrent engineering can increase the complexity and risk associated with delivering a project.Component Development/Procurement
Component development addresses the stage of purchasing or commissioning work from component suppliers.
Architecture Realization
An Integration test strategy produced for Integration, Test and Verification should indicate the the Verification level and methods for critical components. An integration strategy will also produce requirements for the Integration, Test and Verification processes for the delivering the system.
Verification levels for each requirement:
- System
- Sub-system
- Component
- Functional Testing - Check behaviour, interface or performance requirements.
- Environmental Testing - Heat/Cold/Humidity/Altitude/Gravity/Etc,..
- Analysis - Simulation
- Comparison - Re-use of components already verified.
- Assessment - Inspection, Demonstration or Review
Monday, 14 February 2011
Maven how to add a dependency on a local Jar/ how to add a jar to the local Maven repository.
I spent nearly a day beating my head against the desk on a small Maven project that I had been working on trying to add a jar dependency in my POM.xml, for a group of web service stubs that I had created. The solution I discovered was to add a jar to the local repository.
Using the command line add the Jar file mvn install:install-file -DgroupId=CustomerSvc -DartifactId=SvcStubs -Dversion=1.0 -Dfile=D:\NB7Projects\SvcStubs\dist\SvcStubs.jar -Dpackaging=jar -DgeneratePom=true
Add to the POM file a dependency:
Using the command line add the Jar file mvn install:install-file -DgroupId=CustomerSvc -DartifactId=SvcStubs -Dversion=1.0 -Dfile=D:\NB7Projects\SvcStubs\dist\SvcStubs.jar -Dpackaging=jar -DgeneratePom=true
Add to the POM file a dependency:
Subscribe to:
Posts (Atom)
