SlideShare ist ein Scribd-Unternehmen logo
1 von 6
Downloaden Sie, um offline zu lesen
APRIL 2014VOLUME 1.8
MARLABS NEW SLETTER FOR TESTING UPDATES A ND KNOW LEDGE SHARING
Editorial …
Achieving Quality goals !!
How do we continuously improve soft-
ware testing projects ? Few ideas would in-
clude - “Automate wherever
possible”. Automation brings
in efficiency, standardization
apart from quality benefits.
The focus needs to be on
identifying opportunities to
automate the entire Testing
life cycle, not just the test
execution. “Reuse” of
knowledge, artifacts, frame-
works helps to increase
productivity, gain a head-start
in executing projects and fo-
cus on other value adds. “Enhance” existing
tools and frameworks- customize them to
your specific situation, integrate different
tools to get the best of both features, leverage
features of tools e.g. use of
QC Open Test Architecture
API to enhance, integrate
and customize QC capabili-
ties. Some of your signifi-
cant enhancements can even
end up contributing back to
open source projects. Track
and share Test metrics- op-
erational & strategic and
work on improving project
parameters. What are the in-
novative practices in your
project? We would be happy to hear from you
and learn from your best practices.
 SELENIUM INTEGRATION
WITH JMETER............ 2
 GOOGLE GLASS ......... 5
Happy Reading!!
Selenium Integration with JMeter
-- by Vijayakumar Rangaiah
Functional test scripts are the first scripts created while automating an application in any web based project. Func-
tional Automation is taken up earlier while performance testing is done towards end of the project. Functional test scripts
can be used for performance testing, when the functional test scripts are created in Selenium with JUnit frame work.
The objective of this article is to demonstrate Selenium Functional scripts in JMeter Performance testing.
Selenium can be used for below shown components to automation
JUnit is one of the powerful frameworks. JUnit is a Java tool that allows you to easily write tests through using uses Annota-
tions and Reflection
JUnit can be used for the following types of tests :
 Functional tests
 Integration tests
 Acceptance tests
 Stress tests
JUnit is a tool for Test Driven Development. Below is the typical approach of TDD using JUnit framework.
Here we are using Eclipse IDE for building our functional
[ONE SCRIPT FOR FUNC TIONAL & PERFORMANCE T ESTING]
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 2
test script in JUnit4 Selenium WebDriver.
Now let’s focus on build our functional test script in Junit4 using Selenium Webdriver.
Example code is built in Eclipse IDE, import Selenium jar & compile to source code.
import java.util.concurrent.TimeUnit;
import org.junit.*;
import static org.junit.Assert.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
public class JMeter {
private WebDriver driver;
private String baseUrl;
private StringBuffer verificationErrors = new StringBuffer();
@Before
public void setUp() throws Exception {
driver = new FirefoxDriver();
baseUrl = "https://www.google.co.in";
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
@Test
public void testJMeter() throws Exception {
driver.get(baseUrl + "/");
driver.findElement(By.id("gbqfq")).clear();
driver.findElement(By.id("gbqfq")).sendKeys("JMeter");
driver.findElement(By.cssSelector("em")).click();
driver.findElement(By.cssSelector("font > strong")).click();
try {
assertEquals("Apache JMeter - Apache JMeter™", driver.getTitle());
} catch (Error e) {
verificationErrors.append(e.toString());
}
}
@After
public void tearDown() throws Exception {
driver.quit();
String verificationErrorString = verificationErrors.toString();
if (!"".equals(verificationErrorString)) {
fail(verificationErrorString);
}
}
}
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 3
Functionality of the above test script:
1). Google application is searched for JMeter text.
2). JMeter link is clicked & verify the landing page title for ‘Apache JMeter - Apache JMeter’.
This functional script can be used for testing the functional flow of an application across browsers for single instance & make
sure application works functional. Suppose we need to test the same scenario for n number of users & generate load on sever to ana-
lyze server behavior. Then our same functional script built using JUnit with Selenium webdriver can be used in JMeter tool to generate
the load.
Here are the steps for porting Selenium functional scripts in JMeter performance test.
Step 1: Export the Java ‘Test Project’ & create JAR file of the project.
(Right click on ‘Test Project’ –> Export –> Java –> JAR File –> Finish )
Step 2: Copy & paste the ‘Test.jar’ file in the lib folder of JUnit location Example: ‘D:apache-jmeter-2.7libjunit’ &
‘selenium-server-standalone-2.24.1’ server file in the location lib folder Ex: ‘D:apache-jmeter-2.7lib’
Step 3: Open the JMeter tool by executing ‘jmeter.bat’ file. Create a Thread Group & add ‘JUnit Request’ Sampler to
Thread Group.
On a porting successfully you can select your functional test script class file & method name in Junit Request component.
The JUnit Request implementation supports standard JUnit convention and extensions. The following JUnit4 annotations are recog-
nized:
@Test - Used to find test methods and classes.
@Before, @After- Annotating a public void method with @Before & @After causes that method to be run before & after the
Test method.
@BeforeClass, @AfterClass - Treated as test methods so they can be run independently as required
Step4: Select the JMeter class & testJMeter method under the Classname & Test Method in the JUnit Request compo-
nent.
Step 5: Add all the required JUnit components for Result analysis & define the thread properties in ‘Thread Group’ to
run for required number of instances to generate the load on server.
Step 6: Save the Thread Group Test Script files to .jmx format & start the execution in JMeter.
The benefit of Selenium for functional testing using Junit4 framework, provides the ability to utilize the same scripts for Perfor-
mance testing in JMeter. This makes the Open Source Integration of Functional & Performance testing, which is Selenium Integration
with JMeter.
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 4
“Wearable Device” refers to
electronic technologies that are
incorporated into items of cloth-
ing and accessories which can
comfortably be worn on the body.
These wearable devices can per-
form computing tasks similar to
mobile phones and laptop com-
puters. Its strength is the ability to
do multitasking wirelessly, con-
sistently and with out distracting
from what the user currently do-
ing. It augments all other actions
by being a prosthetic extension of
users mind and/or body.
AWARDS:
GLASS received recognition
by Time Magazine as one of
the "Best Inventions of the
Year 2012”
"Machines should do what
machines do best, thereby
freeing up humans to do
what they do best"
- - - -
Douglas Carl Engelbart
[Inventor and an early computer
and Internet Pioneer]
SOMETHING W E ALL SHOULD KNOW ABOUT …
Google Glass is a wearable Android-powered
computer built into spectacle frames that perch a display
in your field of vision, film, take pictures, search and trans-
late on the go as well as run specially-designed apps.
• Google Glass uses a miniature display to put
data in front of your vision courtesy of a prism
screen. This is designed to be easily seen with-
out obstructing your view.
• Glass responds to voice commands as well as
taps and gestures on the touch-sensitive bar
that runs along the side of the frame. You can
start a search with "Ok Glass.." and take a photo
or launch an app with a command phrase or a
tap of your finger. Glass can also be paired with
a phone using the My Glass app to allow quick
fiddling with settings and customization.
• Google Glass runs a version of Android, this
makes it easy for developers to create apps that
take advantage of its unique display and input
methods. Developers using Google's Mirror API,
which makes it possible for apps to speak di-
rectly with a Glass headset, are forbidden from
charging for their software or embedding ads in
the Glass display.
• You'll be able to use Google Maps to get direc-
tions although as there is no built in GPS receiv-
er you'll need to tether Glass to your
smartphone. Several third party developers
have announced apps for services including
Ever note, Skitch and Path.
• Google has snapped up voice specialists DNN-
research whose voice recognition tech could
give Glass the ability to translate words being
spoken to you into your own language on the
display. But obvious you'll need a WiFi connec-
tion or a hefty data plan if you're in another
country, but it's certainly a neat trick if it works.
"To be there when you need it and get out of
your way when you don't.", is what, accord-
ing to Google , GLASS is created for.
 Challenges of Wearable Device Testing : what it means to QA/Test
Here’s a look at some top wearable tech concerns for QA professionals.
Concern #1: “What’s a good user experience for a wearable tech device?”
The onset of wearable tech UIs will redefine usability testing for QA professionals. User experiences will need to be
stripped down to their core. The differences between usability testing an iOS app and an Android app will seem mini-
mal when testing the usability of a wristband or a pair of glasses and how they connect to a mobile device.
Concern #2: “Wearable tech makes me look like an idiot!”
While the usability of the software itself will need to be tested, the experience of the device itself will need to be tested
as well. Does it makes sense? Are the features easy to use and helpful? Do certain parts of the device get in the way on
-the-go?
Concern #3: “Device fragmentation just got even more fragmented!”
Wearable technology will require testing the device itself, its software, and how it communicates with other devices.
This isn’t something you can automate. Wearable technology needs to communicate with your body and perform
correctly under a series of unique daily scenarios.
Functional, usability, and security problems will occur in ways testers have never seen before, and thorough testing is
the only way to identify the bugs and glitches pre-launch.
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D
If you always do what you
always did, you will
always get what you al-
ways got.
- - -
Albert Einstein
P A G E 5
By Kalapana Nayakula
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D
Speak Up !!
Your views makes us better.
Please write to
Test.Digest@Marlabs.com
P A G E 6

Weitere ähnliche Inhalte

Mehr von Marlabs

Marlabs corporate deck july 2018
Marlabs corporate deck july 2018Marlabs corporate deck july 2018
Marlabs corporate deck july 2018Marlabs
 
Embracing Containers and Microservices for Future Proof Application Moderniza...
Embracing Containers and Microservices for Future Proof Application Moderniza...Embracing Containers and Microservices for Future Proof Application Moderniza...
Embracing Containers and Microservices for Future Proof Application Moderniza...Marlabs
 
Dark Web and Threat Intelligence
Dark Web and Threat IntelligenceDark Web and Threat Intelligence
Dark Web and Threat IntelligenceMarlabs
 
Cyber Threat Intelligence
Cyber Threat IntelligenceCyber Threat Intelligence
Cyber Threat IntelligenceMarlabs
 
Cognitive Computing - A Primer
Cognitive Computing - A PrimerCognitive Computing - A Primer
Cognitive Computing - A PrimerMarlabs
 
The Internet of Things : Developing a Vision
The Internet of Things : Developing a VisionThe Internet of Things : Developing a Vision
The Internet of Things : Developing a VisionMarlabs
 
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...Marlabs
 
Marlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and UtilitiesMarlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and UtilitiesMarlabs
 
Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom Marlabs
 
Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance Marlabs
 
Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing Marlabs
 
Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance Marlabs
 
Marlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: AirlinesMarlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: AirlinesMarlabs
 
Marlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life SciencesMarlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life SciencesMarlabs
 
Marlabs Capabilities: Retail
Marlabs Capabilities: Retail Marlabs Capabilities: Retail
Marlabs Capabilities: Retail Marlabs
 
Marlabs Services Capabilities Overview
Marlabs Services Capabilities OverviewMarlabs Services Capabilities Overview
Marlabs Services Capabilities OverviewMarlabs
 
Marlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering ServicesMarlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering ServicesMarlabs
 
Marlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA ServicesMarlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA ServicesMarlabs
 
Marlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional ServicesMarlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional ServicesMarlabs
 
Marlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure ServicesMarlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure ServicesMarlabs
 

Mehr von Marlabs (20)

Marlabs corporate deck july 2018
Marlabs corporate deck july 2018Marlabs corporate deck july 2018
Marlabs corporate deck july 2018
 
Embracing Containers and Microservices for Future Proof Application Moderniza...
Embracing Containers and Microservices for Future Proof Application Moderniza...Embracing Containers and Microservices for Future Proof Application Moderniza...
Embracing Containers and Microservices for Future Proof Application Moderniza...
 
Dark Web and Threat Intelligence
Dark Web and Threat IntelligenceDark Web and Threat Intelligence
Dark Web and Threat Intelligence
 
Cyber Threat Intelligence
Cyber Threat IntelligenceCyber Threat Intelligence
Cyber Threat Intelligence
 
Cognitive Computing - A Primer
Cognitive Computing - A PrimerCognitive Computing - A Primer
Cognitive Computing - A Primer
 
The Internet of Things : Developing a Vision
The Internet of Things : Developing a VisionThe Internet of Things : Developing a Vision
The Internet of Things : Developing a Vision
 
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
 
Marlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and UtilitiesMarlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and Utilities
 
Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom
 
Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance
 
Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing
 
Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance
 
Marlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: AirlinesMarlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: Airlines
 
Marlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life SciencesMarlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life Sciences
 
Marlabs Capabilities: Retail
Marlabs Capabilities: Retail Marlabs Capabilities: Retail
Marlabs Capabilities: Retail
 
Marlabs Services Capabilities Overview
Marlabs Services Capabilities OverviewMarlabs Services Capabilities Overview
Marlabs Services Capabilities Overview
 
Marlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering ServicesMarlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering Services
 
Marlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA ServicesMarlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA Services
 
Marlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional ServicesMarlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional Services
 
Marlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure ServicesMarlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure Services
 

Kürzlich hochgeladen

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Kürzlich hochgeladen (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

Marlabs Test Digest April 2014

  • 1. APRIL 2014VOLUME 1.8 MARLABS NEW SLETTER FOR TESTING UPDATES A ND KNOW LEDGE SHARING Editorial … Achieving Quality goals !! How do we continuously improve soft- ware testing projects ? Few ideas would in- clude - “Automate wherever possible”. Automation brings in efficiency, standardization apart from quality benefits. The focus needs to be on identifying opportunities to automate the entire Testing life cycle, not just the test execution. “Reuse” of knowledge, artifacts, frame- works helps to increase productivity, gain a head-start in executing projects and fo- cus on other value adds. “Enhance” existing tools and frameworks- customize them to your specific situation, integrate different tools to get the best of both features, leverage features of tools e.g. use of QC Open Test Architecture API to enhance, integrate and customize QC capabili- ties. Some of your signifi- cant enhancements can even end up contributing back to open source projects. Track and share Test metrics- op- erational & strategic and work on improving project parameters. What are the in- novative practices in your project? We would be happy to hear from you and learn from your best practices.  SELENIUM INTEGRATION WITH JMETER............ 2  GOOGLE GLASS ......... 5 Happy Reading!!
  • 2. Selenium Integration with JMeter -- by Vijayakumar Rangaiah Functional test scripts are the first scripts created while automating an application in any web based project. Func- tional Automation is taken up earlier while performance testing is done towards end of the project. Functional test scripts can be used for performance testing, when the functional test scripts are created in Selenium with JUnit frame work. The objective of this article is to demonstrate Selenium Functional scripts in JMeter Performance testing. Selenium can be used for below shown components to automation JUnit is one of the powerful frameworks. JUnit is a Java tool that allows you to easily write tests through using uses Annota- tions and Reflection JUnit can be used for the following types of tests :  Functional tests  Integration tests  Acceptance tests  Stress tests JUnit is a tool for Test Driven Development. Below is the typical approach of TDD using JUnit framework. Here we are using Eclipse IDE for building our functional [ONE SCRIPT FOR FUNC TIONAL & PERFORMANCE T ESTING] T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 2
  • 3. test script in JUnit4 Selenium WebDriver. Now let’s focus on build our functional test script in Junit4 using Selenium Webdriver. Example code is built in Eclipse IDE, import Selenium jar & compile to source code. import java.util.concurrent.TimeUnit; import org.junit.*; import static org.junit.Assert.*; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; public class JMeter { private WebDriver driver; private String baseUrl; private StringBuffer verificationErrors = new StringBuffer(); @Before public void setUp() throws Exception { driver = new FirefoxDriver(); baseUrl = "https://www.google.co.in"; driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); } @Test public void testJMeter() throws Exception { driver.get(baseUrl + "/"); driver.findElement(By.id("gbqfq")).clear(); driver.findElement(By.id("gbqfq")).sendKeys("JMeter"); driver.findElement(By.cssSelector("em")).click(); driver.findElement(By.cssSelector("font > strong")).click(); try { assertEquals("Apache JMeter - Apache JMeter™", driver.getTitle()); } catch (Error e) { verificationErrors.append(e.toString()); } } @After public void tearDown() throws Exception { driver.quit(); String verificationErrorString = verificationErrors.toString(); if (!"".equals(verificationErrorString)) { fail(verificationErrorString); } } } T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 3
  • 4. Functionality of the above test script: 1). Google application is searched for JMeter text. 2). JMeter link is clicked & verify the landing page title for ‘Apache JMeter - Apache JMeter’. This functional script can be used for testing the functional flow of an application across browsers for single instance & make sure application works functional. Suppose we need to test the same scenario for n number of users & generate load on sever to ana- lyze server behavior. Then our same functional script built using JUnit with Selenium webdriver can be used in JMeter tool to generate the load. Here are the steps for porting Selenium functional scripts in JMeter performance test. Step 1: Export the Java ‘Test Project’ & create JAR file of the project. (Right click on ‘Test Project’ –> Export –> Java –> JAR File –> Finish ) Step 2: Copy & paste the ‘Test.jar’ file in the lib folder of JUnit location Example: ‘D:apache-jmeter-2.7libjunit’ & ‘selenium-server-standalone-2.24.1’ server file in the location lib folder Ex: ‘D:apache-jmeter-2.7lib’ Step 3: Open the JMeter tool by executing ‘jmeter.bat’ file. Create a Thread Group & add ‘JUnit Request’ Sampler to Thread Group. On a porting successfully you can select your functional test script class file & method name in Junit Request component. The JUnit Request implementation supports standard JUnit convention and extensions. The following JUnit4 annotations are recog- nized: @Test - Used to find test methods and classes. @Before, @After- Annotating a public void method with @Before & @After causes that method to be run before & after the Test method. @BeforeClass, @AfterClass - Treated as test methods so they can be run independently as required Step4: Select the JMeter class & testJMeter method under the Classname & Test Method in the JUnit Request compo- nent. Step 5: Add all the required JUnit components for Result analysis & define the thread properties in ‘Thread Group’ to run for required number of instances to generate the load on server. Step 6: Save the Thread Group Test Script files to .jmx format & start the execution in JMeter. The benefit of Selenium for functional testing using Junit4 framework, provides the ability to utilize the same scripts for Perfor- mance testing in JMeter. This makes the Open Source Integration of Functional & Performance testing, which is Selenium Integration with JMeter. T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 4
  • 5. “Wearable Device” refers to electronic technologies that are incorporated into items of cloth- ing and accessories which can comfortably be worn on the body. These wearable devices can per- form computing tasks similar to mobile phones and laptop com- puters. Its strength is the ability to do multitasking wirelessly, con- sistently and with out distracting from what the user currently do- ing. It augments all other actions by being a prosthetic extension of users mind and/or body. AWARDS: GLASS received recognition by Time Magazine as one of the "Best Inventions of the Year 2012” "Machines should do what machines do best, thereby freeing up humans to do what they do best" - - - - Douglas Carl Engelbart [Inventor and an early computer and Internet Pioneer] SOMETHING W E ALL SHOULD KNOW ABOUT … Google Glass is a wearable Android-powered computer built into spectacle frames that perch a display in your field of vision, film, take pictures, search and trans- late on the go as well as run specially-designed apps. • Google Glass uses a miniature display to put data in front of your vision courtesy of a prism screen. This is designed to be easily seen with- out obstructing your view. • Glass responds to voice commands as well as taps and gestures on the touch-sensitive bar that runs along the side of the frame. You can start a search with "Ok Glass.." and take a photo or launch an app with a command phrase or a tap of your finger. Glass can also be paired with a phone using the My Glass app to allow quick fiddling with settings and customization. • Google Glass runs a version of Android, this makes it easy for developers to create apps that take advantage of its unique display and input methods. Developers using Google's Mirror API, which makes it possible for apps to speak di- rectly with a Glass headset, are forbidden from charging for their software or embedding ads in the Glass display. • You'll be able to use Google Maps to get direc- tions although as there is no built in GPS receiv- er you'll need to tether Glass to your smartphone. Several third party developers have announced apps for services including Ever note, Skitch and Path. • Google has snapped up voice specialists DNN- research whose voice recognition tech could give Glass the ability to translate words being spoken to you into your own language on the display. But obvious you'll need a WiFi connec- tion or a hefty data plan if you're in another country, but it's certainly a neat trick if it works. "To be there when you need it and get out of your way when you don't.", is what, accord- ing to Google , GLASS is created for.  Challenges of Wearable Device Testing : what it means to QA/Test Here’s a look at some top wearable tech concerns for QA professionals. Concern #1: “What’s a good user experience for a wearable tech device?” The onset of wearable tech UIs will redefine usability testing for QA professionals. User experiences will need to be stripped down to their core. The differences between usability testing an iOS app and an Android app will seem mini- mal when testing the usability of a wristband or a pair of glasses and how they connect to a mobile device. Concern #2: “Wearable tech makes me look like an idiot!” While the usability of the software itself will need to be tested, the experience of the device itself will need to be tested as well. Does it makes sense? Are the features easy to use and helpful? Do certain parts of the device get in the way on -the-go? Concern #3: “Device fragmentation just got even more fragmented!” Wearable technology will require testing the device itself, its software, and how it communicates with other devices. This isn’t something you can automate. Wearable technology needs to communicate with your body and perform correctly under a series of unique daily scenarios. Functional, usability, and security problems will occur in ways testers have never seen before, and thorough testing is the only way to identify the bugs and glitches pre-launch. T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D If you always do what you always did, you will always get what you al- ways got. - - - Albert Einstein P A G E 5 By Kalapana Nayakula
  • 6. T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D Speak Up !! Your views makes us better. Please write to Test.Digest@Marlabs.com P A G E 6