SlideShare une entreprise Scribd logo
1  sur  6
Abstract: Creating automation scripts using a generic framework is useful. The
framework should have recovery scenarios and it should also perform a quick check after
test execution using customized logs. The test execution summary must provide accurate
information on test case execution. This article on IBM® Rational® Functional Tester
elaborates this process.
1) Reusability and recovery scenarios:
There are many buzzwords in automation frameworks like keyword driven, data driven
etc the framework which I am sharing I have not given specific name to this framework
but as it used different combination hence we can say it as modular framework.
In this framework we are using find method which we have generalized so that we can
use in any of the test case whenever it’s required. Also best part of the framework is we
are calling test scripts in a sequence using windows batch file.
In-between the execution of test scripts if a scripts threw exception/fails then with the
help of custom logging we can find out which scripts has exception during the execution.
In our scripts we can follow below mentioned way of writing java code.
Main function
{
Try
{
If (Test case met expectation)
{
PASS
}
Else
{
FAIL;
Mentions fail test case Id using logInfo and in Customized logs(Placed in
secondary memory in our machine).
}
}
Catch(Exception e)
{
Handling Exception’s;
If in case of any exception write test case ID to Customized logs mentioned
exception in script. Writing Test Case ID in customized file helps us in analysis
post test execution.
}
Finally
{
Writing code which you want to do at the last of script.
We are usually releasing memory at the end of every method and closing
application browser.
}
1
}
2) Batch file, customized and consolidated logs
Batch File-We are using it for test execution by calling all script in a sequence.
What is a Batch file?
This hybrid framework is used to develop the test scripts and are executed in batches. Framework
has been designed in a way that does not required to open RFT in-order to execute the
Automation scripts. This helps system to save memory space and in long test run (larger scripts or
bigger batch of scripts) and helps to mitigate the chances of impact on available memory. We are
using windows batch file for execution of our scripts, we don’t need to open IBM RFT for
execution of test suit. By doing this we save automation machine memory as in long test run
where hundred of scripts are in queue during execution can impact test run due to lack of
available memory.
How to write Batch file-
Set RFT_PROJECT_LOCATION="C:Documents and SettingsMy DocumentsTest
Cases”
"%IBM_RATIONAL_RFT_ECLIPSE_DIR%jdkjrebinjava" -classpath "%
IBM_RATIONAL_RFT_INSTALL_DIR%rational_ft.jar"
com.rational.test.ft.rational_ft -datastore %RFT_PROJECT_LOCATION% -
playback TestCase1 -log TestCase1
We can call multiple test scripts using above batch file, using batch file for multiple script
execution also saved us from using IBM RFT User Interface for the same consequently
this saves a lot of memory during script execution.
In this framework to prepare and get a suitable environment ready for executing test cases
using IBM RFT too Below mentioned steps can be followed in order to perform
Automation testing and Analysis.
1) Configuration/Pre-Requisite.
For any testing performed via Automation tool few inputs are required before test run, and are
called Configurations / Pre-requisites. Configuration part needs to be performed by the
Automation engineer, as technical skill set is required to configure the tool and environment.
2) Execution of Scripts, Using Batch file.
3) Post Execution analysis of customized logs and consolidated logs.
What are customized logs?
We are writing errors/exceptions in customized logs that means when a test case is not as per
expectation we log them in customized logs also in case of script exception customized logs are
2
created for that specific test case therefore in case of exception we have to manually execute that
scripts and Automation engineer will look in to the failed script.
What are consolidated logs?
At the end of script execution IBM RFT saves execution summary in logs which in our
framework we are calling them as consolidated logs as it contains customized logs as well as
other execution summary also which included pass/fail verification points etc.
Find below image of custom logs file where we are writing fail and exception during test
scripts using java code. Using custom logging approach we can quickly find which all
test cases are failed and which threw exceptions during the batch run.
Figure1-Screen capture of customized logs .
Alt =Capture of Customized log file
Analysis
Once we have execution completed we have to analyze test execution therefore our first
job is to view customized file.
How to analyze logs?
We have to first verify customized logs which is saved in secondary memory (specified location
during logging the same during test execution) of our machine In case of any Exception found in
that logs then we have to validate the same in consolidated logs.
4) Post logs analysis functional test engineer will raise defects if found any.
Once we have analysis completed Functional test engineer will raise defects found if any in
regression project tracker mentioning an additional note that defect found during automation run.
3
3) Framework Highlights- To segregate the framework, below given figure can make user
understand the complete flow easily.
Figure 2- Data flow diagram of framework
Alt =Data flow diagram of framework
Framework highlights-
• Application framework is based on 2 layered architecture, where layer consist of test
Scripts and Layer 2 consist of reusable functions.
• Run Time Object Identification using Find method.
• Using Batch file to execute multiple test scripts in one go without opening RFT tool which
saves computer memory during execution of huge number of test scripts.
• Created Custom logging for finding failed test cases out of all executed scenarios which
is helping us in quick analysis of execution.
• Using verification point and customized logging in scripts.
• Created scripts using java for robustness as recorded scripts sometimes did not work or
throw exceptions.
• We are dynamically generating all required test data(input) for application functional
testing using java API’s and java code.
4) Summary:
The primary objective of an automation effort is to design a robust framework using
generic scripts that can execute across different platforms and requires minimum
4
maintenance. This artical provides insights into an approach that uses find method of test
case creation with custom logging to achieve it.
References:
• http://www.redbooks.ibm.com/abstracts/sg247391.html.
• Find everything developerWorks at the developerWorks main page.
• Find out more on the Rational Performance Tester product overview
page. Then explore the Rational Performance Tester page on IBM®
developerWorks® for links to technical articles and browse the user
assistance in the Rational Performance Tester Information Center.
• Visit the Rational software area on developerWorks for technical
resources and best practices for Rational Software Delivery Platform
products.
Author- Prashant
Email-Prashant.compsc@gmail.com
5
maintenance. This artical provides insights into an approach that uses find method of test
case creation with custom logging to achieve it.
References:
• http://www.redbooks.ibm.com/abstracts/sg247391.html.
• Find everything developerWorks at the developerWorks main page.
• Find out more on the Rational Performance Tester product overview
page. Then explore the Rational Performance Tester page on IBM®
developerWorks® for links to technical articles and browse the user
assistance in the Rational Performance Tester Information Center.
• Visit the Rational software area on developerWorks for technical
resources and best practices for Rational Software Delivery Platform
products.
Author- Prashant
Email-Prashant.compsc@gmail.com
5

Contenu connexe

Tendances

Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkMikhail Subach
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation TestingArchana Krushnan
 
Test automation
Test automationTest automation
Test automationXavier Yin
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runnerHimanshu
 
Selenium notes
Selenium notesSelenium notes
Selenium noteswholcomb
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 
TEST_AUTOMATION_CASE_STUDY_(2)2[1]
TEST_AUTOMATION_CASE_STUDY_(2)2[1]TEST_AUTOMATION_CASE_STUDY_(2)2[1]
TEST_AUTOMATION_CASE_STUDY_(2)2[1]Clive Dall
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologiesMesut Günes
 
Automation test scripting techniques
Automation test scripting techniquesAutomation test scripting techniques
Automation test scripting techniquesZhu Zhong
 
Test Automation
Test AutomationTest Automation
Test AutomationTomas Riha
 
Keyword Driven Automation
Keyword Driven AutomationKeyword Driven Automation
Keyword Driven AutomationPankaj Goel
 
Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)Archana Krushnan
 
Software Automation Testing Introduction
Software Automation Testing IntroductionSoftware Automation Testing Introduction
Software Automation Testing IntroductionNarayanan Palani
 

Tendances (19)

Keyword-driven Test Automation Framework
Keyword-driven Test Automation FrameworkKeyword-driven Test Automation Framework
Keyword-driven Test Automation Framework
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Test automation
Test automationTest automation
Test automation
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
 
Selenium notes
Selenium notesSelenium notes
Selenium notes
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 
Test automation process
Test automation processTest automation process
Test automation process
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
TEST_AUTOMATION_CASE_STUDY_(2)2[1]
TEST_AUTOMATION_CASE_STUDY_(2)2[1]TEST_AUTOMATION_CASE_STUDY_(2)2[1]
TEST_AUTOMATION_CASE_STUDY_(2)2[1]
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologies
 
Automation test scripting techniques
Automation test scripting techniquesAutomation test scripting techniques
Automation test scripting techniques
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Uft Basics
Uft BasicsUft Basics
Uft Basics
 
Test Complete
Test CompleteTest Complete
Test Complete
 
Keyword Driven Automation
Keyword Driven AutomationKeyword Driven Automation
Keyword Driven Automation
 
Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)Introduction to Unified Functional Testing 12 (UFT)
Introduction to Unified Functional Testing 12 (UFT)
 
Qtp basics
Qtp basicsQtp basics
Qtp basics
 
Demo1ghjkl
Demo1ghjklDemo1ghjkl
Demo1ghjkl
 
Software Automation Testing Introduction
Software Automation Testing IntroductionSoftware Automation Testing Introduction
Software Automation Testing Introduction
 

Similaire à Automation using ibm rft

JAVASCRIPT Test Driven Development & Jasmine
JAVASCRIPT Test Driven Development & JasmineJAVASCRIPT Test Driven Development & Jasmine
JAVASCRIPT Test Driven Development & JasmineAnup Singh
 
Bealls florida automation overview
Bealls florida automation overviewBealls florida automation overview
Bealls florida automation overviewVijay Rangaiah
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP FrameworkAnish10110
 
Performance tesing coding standards & best practice guidelines v1
Performance tesing coding standards & best practice guidelines v1Performance tesing coding standards & best practice guidelines v1
Performance tesing coding standards & best practice guidelines v1Argos
 
Measurement .Net Performance with BenchmarkDotNet
Measurement .Net Performance with BenchmarkDotNetMeasurement .Net Performance with BenchmarkDotNet
Measurement .Net Performance with BenchmarkDotNetVasyl Senko
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation FrameworkYu Tao Zhang
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuningJerry Kurian
 
Practical SPARQL Benchmarking Revisited
Practical SPARQL Benchmarking RevisitedPractical SPARQL Benchmarking Revisited
Practical SPARQL Benchmarking RevisitedRob Vesse
 
Mykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with JmeterMykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with JmeterIevgenii Katsan
 
Marathon Testing Tool
Marathon Testing ToolMarathon Testing Tool
Marathon Testing Toolnarayan dudhe
 
Build, logging, and unit test tools
Build, logging, and unit test toolsBuild, logging, and unit test tools
Build, logging, and unit test toolsAllan Huang
 
Kirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationKirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationSergey Arkhipov
 

Similaire à Automation using ibm rft (20)

JAVASCRIPT Test Driven Development & Jasmine
JAVASCRIPT Test Driven Development & JasmineJAVASCRIPT Test Driven Development & Jasmine
JAVASCRIPT Test Driven Development & Jasmine
 
Bealls florida automation overview
Bealls florida automation overviewBealls florida automation overview
Bealls florida automation overview
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP Framework
 
Performance tesing coding standards & best practice guidelines v1
Performance tesing coding standards & best practice guidelines v1Performance tesing coding standards & best practice guidelines v1
Performance tesing coding standards & best practice guidelines v1
 
Hybrid framework
Hybrid frameworkHybrid framework
Hybrid framework
 
Measurement .Net Performance with BenchmarkDotNet
Measurement .Net Performance with BenchmarkDotNetMeasurement .Net Performance with BenchmarkDotNet
Measurement .Net Performance with BenchmarkDotNet
 
jDriver Presentation
jDriver PresentationjDriver Presentation
jDriver Presentation
 
QTP&UFT Automation Framework
QTP&UFT Automation FrameworkQTP&UFT Automation Framework
QTP&UFT Automation Framework
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuning
 
Practical SPARQL Benchmarking Revisited
Practical SPARQL Benchmarking RevisitedPractical SPARQL Benchmarking Revisited
Practical SPARQL Benchmarking Revisited
 
Next-gen Automation Framework
Next-gen Automation FrameworkNext-gen Automation Framework
Next-gen Automation Framework
 
Mykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with JmeterMykola Kovsh - Functional API automation with Jmeter
Mykola Kovsh - Functional API automation with Jmeter
 
Robot framework
Robot frameworkRobot framework
Robot framework
 
Review of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_PresentationReview of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_Presentation
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
Marathon Testing Tool
Marathon Testing ToolMarathon Testing Tool
Marathon Testing Tool
 
Build, logging, and unit test tools
Build, logging, and unit test toolsBuild, logging, and unit test tools
Build, logging, and unit test tools
 
Jmh
JmhJmh
Jmh
 
Kirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationKirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for Automatization
 
Test automation process _ QTP
Test automation process _ QTPTest automation process _ QTP
Test automation process _ QTP
 

Dernier

Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 

Dernier (20)

Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 

Automation using ibm rft

  • 1. Abstract: Creating automation scripts using a generic framework is useful. The framework should have recovery scenarios and it should also perform a quick check after test execution using customized logs. The test execution summary must provide accurate information on test case execution. This article on IBM® Rational® Functional Tester elaborates this process. 1) Reusability and recovery scenarios: There are many buzzwords in automation frameworks like keyword driven, data driven etc the framework which I am sharing I have not given specific name to this framework but as it used different combination hence we can say it as modular framework. In this framework we are using find method which we have generalized so that we can use in any of the test case whenever it’s required. Also best part of the framework is we are calling test scripts in a sequence using windows batch file. In-between the execution of test scripts if a scripts threw exception/fails then with the help of custom logging we can find out which scripts has exception during the execution. In our scripts we can follow below mentioned way of writing java code. Main function { Try { If (Test case met expectation) { PASS } Else { FAIL; Mentions fail test case Id using logInfo and in Customized logs(Placed in secondary memory in our machine). } } Catch(Exception e) { Handling Exception’s; If in case of any exception write test case ID to Customized logs mentioned exception in script. Writing Test Case ID in customized file helps us in analysis post test execution. } Finally { Writing code which you want to do at the last of script. We are usually releasing memory at the end of every method and closing application browser. } 1
  • 2. } 2) Batch file, customized and consolidated logs Batch File-We are using it for test execution by calling all script in a sequence. What is a Batch file? This hybrid framework is used to develop the test scripts and are executed in batches. Framework has been designed in a way that does not required to open RFT in-order to execute the Automation scripts. This helps system to save memory space and in long test run (larger scripts or bigger batch of scripts) and helps to mitigate the chances of impact on available memory. We are using windows batch file for execution of our scripts, we don’t need to open IBM RFT for execution of test suit. By doing this we save automation machine memory as in long test run where hundred of scripts are in queue during execution can impact test run due to lack of available memory. How to write Batch file- Set RFT_PROJECT_LOCATION="C:Documents and SettingsMy DocumentsTest Cases” "%IBM_RATIONAL_RFT_ECLIPSE_DIR%jdkjrebinjava" -classpath "% IBM_RATIONAL_RFT_INSTALL_DIR%rational_ft.jar" com.rational.test.ft.rational_ft -datastore %RFT_PROJECT_LOCATION% - playback TestCase1 -log TestCase1 We can call multiple test scripts using above batch file, using batch file for multiple script execution also saved us from using IBM RFT User Interface for the same consequently this saves a lot of memory during script execution. In this framework to prepare and get a suitable environment ready for executing test cases using IBM RFT too Below mentioned steps can be followed in order to perform Automation testing and Analysis. 1) Configuration/Pre-Requisite. For any testing performed via Automation tool few inputs are required before test run, and are called Configurations / Pre-requisites. Configuration part needs to be performed by the Automation engineer, as technical skill set is required to configure the tool and environment. 2) Execution of Scripts, Using Batch file. 3) Post Execution analysis of customized logs and consolidated logs. What are customized logs? We are writing errors/exceptions in customized logs that means when a test case is not as per expectation we log them in customized logs also in case of script exception customized logs are 2
  • 3. created for that specific test case therefore in case of exception we have to manually execute that scripts and Automation engineer will look in to the failed script. What are consolidated logs? At the end of script execution IBM RFT saves execution summary in logs which in our framework we are calling them as consolidated logs as it contains customized logs as well as other execution summary also which included pass/fail verification points etc. Find below image of custom logs file where we are writing fail and exception during test scripts using java code. Using custom logging approach we can quickly find which all test cases are failed and which threw exceptions during the batch run. Figure1-Screen capture of customized logs . Alt =Capture of Customized log file Analysis Once we have execution completed we have to analyze test execution therefore our first job is to view customized file. How to analyze logs? We have to first verify customized logs which is saved in secondary memory (specified location during logging the same during test execution) of our machine In case of any Exception found in that logs then we have to validate the same in consolidated logs. 4) Post logs analysis functional test engineer will raise defects if found any. Once we have analysis completed Functional test engineer will raise defects found if any in regression project tracker mentioning an additional note that defect found during automation run. 3
  • 4. 3) Framework Highlights- To segregate the framework, below given figure can make user understand the complete flow easily. Figure 2- Data flow diagram of framework Alt =Data flow diagram of framework Framework highlights- • Application framework is based on 2 layered architecture, where layer consist of test Scripts and Layer 2 consist of reusable functions. • Run Time Object Identification using Find method. • Using Batch file to execute multiple test scripts in one go without opening RFT tool which saves computer memory during execution of huge number of test scripts. • Created Custom logging for finding failed test cases out of all executed scenarios which is helping us in quick analysis of execution. • Using verification point and customized logging in scripts. • Created scripts using java for robustness as recorded scripts sometimes did not work or throw exceptions. • We are dynamically generating all required test data(input) for application functional testing using java API’s and java code. 4) Summary: The primary objective of an automation effort is to design a robust framework using generic scripts that can execute across different platforms and requires minimum 4
  • 5. maintenance. This artical provides insights into an approach that uses find method of test case creation with custom logging to achieve it. References: • http://www.redbooks.ibm.com/abstracts/sg247391.html. • Find everything developerWorks at the developerWorks main page. • Find out more on the Rational Performance Tester product overview page. Then explore the Rational Performance Tester page on IBM® developerWorks® for links to technical articles and browse the user assistance in the Rational Performance Tester Information Center. • Visit the Rational software area on developerWorks for technical resources and best practices for Rational Software Delivery Platform products. Author- Prashant Email-Prashant.compsc@gmail.com 5
  • 6. maintenance. This artical provides insights into an approach that uses find method of test case creation with custom logging to achieve it. References: • http://www.redbooks.ibm.com/abstracts/sg247391.html. • Find everything developerWorks at the developerWorks main page. • Find out more on the Rational Performance Tester product overview page. Then explore the Rational Performance Tester page on IBM® developerWorks® for links to technical articles and browse the user assistance in the Rational Performance Tester Information Center. • Visit the Rational software area on developerWorks for technical resources and best practices for Rational Software Delivery Platform products. Author- Prashant Email-Prashant.compsc@gmail.com 5