A slutin fr autmating desktp applicatins with Java skill set Veerla Shilpa (Senir Sftware Engineer- Testing) Mysre Narasimha Raju, Pratap (Test Autmatin Architect)
Abstract LeanFT is a pwerful and lightweight functinal testing slutin built specifically fr cntinuus integratin and cntinuus testing that enables and encurages develpers and QA t cllabrate in agile teams by using the same tl fr develpment and testing f applicatins. Keeping Agility in prcess we have designed light weight framewrk and implemented BDD (Behavir -Driven Develpment) apprach fr validating Regressin Test cases mainly fr windw s based applicatin(truble Ticket applicatin). Using LeanFT we can autmate applicatins f technlgies like Web, Java, Mbile, and Standard Windws and.net Windws Frms. LeanFT supprts develpment n standard IDEs with mdern prgramming languages like C# and Java. And add pen surce templates like NUnit, TestNG and JUnit t yur IDE t help accelerate yur cding and maintain yur tests ver time. We have develped ur autmatin Script in java using TestNG Template. Cncluding thughts n LeanFT With UFT 12.5 a new versin f LeanFT, HP is trying t address everybdy invlved in SDLC. Thse wh are nt happy with lack f supprt in Selenium will be happy t switch t UFT+LeanFT cmbinatin.java and C# are better alternatives and will lead t mre cllabratin between Dev and Test Teams leading t Cntinuus Integratin, Cntinuus Delivery and Cntinuus Testing. This White Paper is all abut hw a selenium tester can autmate a desktp applicatin with Selenium skill set using LeanFT.
Intrductin LeanFT is the new functinal testing tl set frm HP. As the name suggests it s the leaner functinal testing tl.essentially, LeanFT cmbines the best f bth the vendr-based and pen-surce wrlds by mrphing Selenium with sme key functinality currently fund in UFT. Remember Selenium is nly fr brwser-based testing, and des nt handle nn brwser-based ppups and windws. This is a majr issue, as mst experienced testers wrking in an Enterprise envirnment will tell yu. Quite ften ur test scripts have t deal with mre than just web-based interactins.our cmpany's gal is t try autmating as many tests as pssible, and mst f these integratin tests culd nt be handled within the current framewrk.leanft slves this issue.with LeanFT, I can nw use my existing Selenum/Java framewrk and still be able t handle these integratin-type tests.
Main Features f LeanFT: MULTIPLE IDE SUPPORT :- Add LeanFT tl and templates t yur IDE t help accelerate yur cding and maintain yur tests ver time. Lean FT supprts and integrates with standard IDEs like Eclipse, Visual Studi and languages like Java and C#. LEANFT PROJECT TEMPLATES :- Prject templates based n ppular testing framewrks: JUnit, NUnit, and MSTest that set up everything yu need t access LeanFT functinality while enabling yu t take advantage f the framewrk s capabilities and runners. INTEGRATION WITH :- Git, SvN Jenkins, TFS Cucumber, jbehave ALM
Main Functinality f LeanFT: OBJECT IDENTIFICATION CENTER A ne-stp-shp where yu can spy n yur AUT bjects, edit captured descriptins, generate test bject cde, and add bjects t the applicatin mdel. APPLICATION MODEL Use this rich UI editr, embedded directly in the IDE t build a test bject mdel f yur Applicatin, and maintain the test bjects in a single lcatin fr use acrss yur entire Testing suite. COMPREHENSIVE REPORTING WITH FULL LIFECYCLE Get straight t the bttm f issues with LeanFT s detailed descriptin f test executin flw, including clear and actinable reasns fr test failure at each step. Manage yur test lab, executin and results either in HP ALM/QC r directly with CI and Surce Cntrl tls.
Lean FT vs Selenium: Selenium :Selenium is an pen surce tl and supprts different types f languages such as Java, Pythn, PHP, C#, Ruby and pure JavaScript. Selenium, t a large extent, uses Java scripting and is the mst influential Open Surce Autmatin tl. It is ideal fr the agile methdlgy f cding and testing. LeanFT :Lean FT frm HP is a new functinal testing slutin having a set f APIs. Lean FT prvides pwerful tls like Object Identificatin Center and Applicatin Mdels. This tl is develped t target test autmatin engineers and develpers frm agile teams. Integrating Lean FT with Unified Functinal Testing (UFT) can supprt DevOps and Cntinuus Integratin (CI).
LeanFT using BDD apprach: Shrt Definitin f BDD: BDD is abut implementing the sftware by describing its behavir frm the perspectives f its stake hlders, and custmers. LeanFT supprts behavir-driven develpment (BDD) techniques using Cucumber, and taking advantage f this capability can help develpment and management teams use shared tls and a shared prcess t cllabrate mre effectively n sftware develpment.
Prject Setup: 1. Feature file Add the cucumber jar files t yur test build path. Feature file name shuld be saved with extensin.feature
2. Sample class will be created nce we create a prject : In the LeanFTTest class, we need t add the fllwing anntatin in the class. @RunWith(Cucumber.class)
3. Create ne java class in same package: Inside this class we need t implement: @Befre sectin in which the LeanFT Reprter bject is cnfigured t start a new nde in the reprt. @After sectin in which the LeanFT Reprter bject is cnfigured t end the nde in the reprt
4. Glue cde f feature file:
5. Sample Test Results: LeanFT is perfect fr Develper lking fr autmating smething mre than Unit tests. Selenium testers can test desktp applicatin. Test engineers wrking with Cntinuus Integratin, Agile r DevOps teams. (Only if the supprted add-ins is used).
Advantages f LeanFT Better Errr Handling Chse prgramming language f yur chice(c# r Java) Create meaningful testing classes with Plymrphism, Inheritance and utilize ther OOPS Cncepts. Updated capabilities with each new.net r java framewrk updates. Better memry management Integrate tests with Junit and NUnit, testng r any ther unit testing framewrks tests. Integratin available with any Versin cntrl system. Better integratin with Cntinuus integratin tls like Jenkins. Als in anther nn-hp-like mve, if yu have an existing UFT license yu autmatically have access t LeanFT at n additinal cst. Hwever grass is nt all green, there are sme draw backs f using LeanFT Web Services testing is nt Part f LeanFT BPT integratin is nt available Yu cannt use recrd and playback(that s bvius) Can nly be used fr Mbile, Windws, WEB,.Net, SeibelUI, WPF and Insight Image recgnitin.
Cnclusin LeanFT has been specifically targeted at the Selenium user base wuld be very interesting t see hw this pans ut in the marketplace in the next 12 mnths. Much f the recent increase in Selenium prjects has been because f large rganizatins seeking t diversify their tls prtflis. Technlgy trends are extremely dynamic and yu prepare tday fr anticipated changes r risk bslescence I am excited t write this white paper, because the pssibilities are endless e.g., if yu have all selenium tests and yu want t include sme f the windws based testing, which is nt available in selenium, yu can quickly include the LeanFT API s t autmate the windws based actins and then switch back t selenium.
References: https://learn2autmate.blg/2016/05/21/leanft-java-tutrial-part-1- intrductin/ http://www.testingvidya.cm/hp-leanft-verview-lean-functinaltesting/ Abut the Authr: Shilpa is a Senir Sftware Engineer wrking as Manual and Autmatin tester fr 6 years with gd knwledge n sftware test design and test executin methdlgies. Wrking in Agile Methdlgy fr 2.6 years. Wrked n varius kinds f autmatin tls and als have capability f upgrading skills with changing trends. Being wrking with a legacy prduct where agile adaptatin cmes with certain challenges, drve me twards publishing the paper.