SlideShare ist ein Scribd-Unternehmen logo
1 von 7
Downloaden Sie, um offline zu lesen
Selenium Open Source Test Automation Framework
FAQ

Version 1.0
September 2009




                                       DISCLAIMER
Verbatim copying and distribution of this entire article is permitted worldwide, without
royalty, in any medium, provided this notice is preserved.
Table of Contents



TABLE OF CONTENTS
1.   INTRODUCTION ................................................. 3
     1.1.       Purpose .......................................................... 3

2.   FREQUENTLY ASKED QUESTIONS...................................... 4
     2.1.       Open Source Test Automation ...................................... 4
     2.2.       Keyword Scripts .................................................. 6




Open2Test.org                                                      Page ii
Selenium Open Source Test Automation
                                                               Framework FAQ


1.         Introduction

1.1.       Purpose
           The purpose of this document is to answer frequently asked questions
           about the (Selenium) Open Source Test Automation Framework.




Open2Test.org                                                  Page 3
Selenium Open Source Test Automation
                                                                         Framework FAQ


2.         Frequently Asked Questions

2.1.       Open Source Test Automation
           The table below lists FAQs with respective answers related to the
           Selenium Open Source Test Automation Framework.

                1. Is the Open Source Test Automation Framework application-dependent?
                   No, it is not application-dependent because the Open Source Test
                   Automation Framework is designed to perform operations for all standard
                   object types (WebEdit, Weblist, Webcheckbox, etc.) of technology
                   commonly used to build a Web application.

                2. Is Open Source Test Automation Framework technology-dependent?
                   Yes, it is technology-dependent.

                3.    What are the benefits of using this framework?
                     The Open Source Test Automation Framework provides the following
                     benefits:
                        1. The testers can automate test cases without the help of
                            programmers or programming background.
                        2. They can run automated test cases more reliably.
                        3. The Open Source Test Automation Framework reduces maintenance
                            and increases productivity.
                        4.   Keywords are application-independent.

                4. Does the Open Source Test Automation Framework support a data-driven
                   framework?
                   Yes.

                5. Does it support a function modular framework?
                   Yes.

                6. What are the prerequisites for using the Open Source Test Automation
                   Framework?
                   The prerequisites for using the Open Source Test Automation Framework
                   are:
                      1. Knowledge of the keywords.
                      2. Basic knowledge of the Selenium tool.
                      3. All the necessary files should be associated.

                7. Does the Open Source Test Automation Framework support all versions of
                   Selenium?
                   Yes.

                8. What are the various components of the Open Source Test Automation
                   Framework?
                   The components include: Main.rb, functionlibrary.rb, selenium.rb,
                   object repository, keywords, external test data, and global variables.

                9. What are the different components needed to run a Selenium script using
                   the Open Source Test Automation Framework?
                     Place the keyword script and test data (if used) in the location
                   specified in the framework. Place the Object Repository Excel in the
                   Specified location.
                     Save the Open Source Test Automation Framework to the system and then
                   right click on the main.rb and select ‘Edit’.
                     Make the Selenium Server up and running. Press F5 to run the script.

                     Or
                     Launch command prompt



Open2Test.org                                                              Page 4
Selenium Open Source Test Automation
                                                                      Framework FAQ

                   Go to path main.rb
                   Run the below command
                   Ruby main.rb


                10. Does the Open Source Test Automation Framework support external
                    functions?
                    Yes, it supports external functions.


                11. Does the Open Source Test Automation Framework support using an xml
                    file for test data?
                    No.

                12. How does the Open Source Test Automation Framework work?
                    Using the Open Source Test Automation Framework, testers can develop
                    test cases using Microsoft Excel and the available list of keywords.
                    When the test is executed, the framework processes the Excel workbook
                    and calls the functions associated with the keywords entered in the
                    Excel spreadsheet. These keyword functions in turn perform specific
                    actions against the Application Under Test (AUT).

                13. What are the benefits of the Open Source Test Automation Framework?
                    Reusability, greater test productivity, optimum utilization of the tool
                    through keyword support, and minimum effort needed to build scripts.

                14. What are the features of the Open Source Test Automation Framework?
                    The following are the features of the Open Source Test Automation
                    Framework:
                    Performing operations and verifications on the objects
                    Usage of variables
                    Conditional checking
                    Data-driven testing
                    Reports
                    Exception handling
                    Handling Web objects

                15. How reliable is this framework as compared to a linear script?
                    The framework provides standardized, tested code. It is typically much
                    more reliable and more thoroughly tested than recorded scripts. It also
                    provides uniformity across automation scripts and ensures standard
                    procedures are followed for coding.

                16. What is the advantage of building scripts using the Open Source Test
                    Automation Framework over writing code in Ruby?
                    Being a keyword-driven framework, one does not need to know Ruby
                    programming. Testers can develop scripts without learning the
                    underlying automation tool. The tests are easier to understand and
                    maintain, and they provide maximum code reuse.

                17. How do I decide whether I can automate an application using the Open
                    Source Test Automation Framework?
                    Currently the Selenium Open Source Test Automation Framework supports
                    automation of web applications.

                18. What is the Open Source Test Automation Framework?
                    This framework is built for several of the leading test automation
                    tools. It allows scripting of test cases using a set of keywords
                    provided as part of the framework. This is often referred to as
                    keyword-driven testing or action-based testing.

                19. What is the use of Selenium.rb?
                    Selenium.rb is the ruby file that holds the built-in functions of
                    Selenium and it has to be present in the framework code to perform
                    those actions on the application.



Open2Test.org                                                             Page 5
Selenium Open Source Test Automation
                                                                      Framework FAQ


                20. How do we integrate AutoIt with Selenium?
                    Before starting the integration of AutoIt, we need to install AutoIt in
                    the machine. Once the installation is complete, we can use the
                    following method to access the command from Ruby.

                   AutoIt command can be accessed from Ruby by creating an object of
                   AutoIt in the Ruby script using Win32OLE. Win32OLE extension library
                   provides an interface to OLE Automation from Ruby.

                           require 'win32ole'
                           application = WIN32OLE.new('AutoItX3.Control')

                   Now using Win32OLE a new object-named application is created for
                   accessing AutoIt commands. This will include all the commands of
                   AutoIt.


                21. How does Selenium handle popup windows?
                    Using Multithreading concept of Ruby and AutoIt, we can handle all the
                    popups that are present in any web-based application during the
                    execution of any step.

                22. How does the Multithreading concept works with Selenium?
                    The below code will explain the implementation,
                        application = WIN32OLE.new('AutoItX3.Control')
                        @@t1 = Thread.new {@selenium.click <btnname>}
                        sleep 5
                        Thread.kill(@@t1)
                        application.ControlClick("<windowname>","","<buttonname>")


                   Usually when we get a windows popup upon clicking any object in the
                   application, Selenium RC will not get any response from the server.
                   This will cause the execution to expire without proceeding to the next
                   step.

                   The above code will handle this issue. If there is a button, which when
                   clicked gives us a windows popup, then we click that button in a
                   separate thread. That way, this thread will be killed after clicking
                   the button and will not wait for any server response. The main thread
                   will continue the execution. Now the popup is active, so using the
                   command "ControlClick" of AutoIt we can click on either the "OK" or
                   "Cancel" buttons in any popup.


                23. Is it possible to type a value in the edit box of a popup?
                    The keyword below is used to type any value in an edit box of a popup.
                    <Value> is the value that needs to be typed.
                    Details of <Window Name> should be specified in Object Repository.

                             •   r | popup | <window name>;presskey| <Value>




2.2.       Keyword Scripts
           The table below lists the FAQs with respective answers related to
           keyword scripts.




Open2Test.org                                                               Page 6
Selenium Open Source Test Automation
                                                                       Framework FAQ


            1.       What are the various keywords available in the Open Source Test
                     Automation Framework?
                     Refer to the Keyword Reference Document for the list of keywords that
                     are available in the Open Source Test Automation Framework. The
                     document covers all the keywords along with their syntax and usage.

            2.       Does the Open Source Test Automation Framework support a mechanism for
                     providing multiple sets of data to the same parameter?
                     Yes. Use the Loop keyword.

                3.   Does the Open Source Test Automation Framework support if-else loops?
                     Yes. Use the Condition keyword.

                4.   Does the Open Source Test Automation Framework support reusable
                     actions?
                     Yes. Please refer to the Keyword Reference document for the keyword to
                     be used.




COPYRIGHT
This library is free software; you can redistribute it and/or modify it under the terms of
the GNU Library General Public License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Library General Public License for more details.




Open2Test.org                                                              Page 7

Weitere ähnliche Inhalte

Was ist angesagt?

GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using seleniumPragya Rastogi
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorialprad_123
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
 
Selenium Webdriver Interview Questions
Selenium Webdriver Interview QuestionsSelenium Webdriver Interview Questions
Selenium Webdriver Interview QuestionsJai Singh
 
Selenium webdriver interview questions and answers
Selenium webdriver interview questions and answersSelenium webdriver interview questions and answers
Selenium webdriver interview questions and answersITeLearn
 
Selenium interview questions and answers
Selenium interview questions and answersSelenium interview questions and answers
Selenium interview questions and answerskavinilavuG
 
Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)Yogesh Thalkari
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaSelenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaEdureka!
 
Selenium Basics Tutorial
Selenium Basics TutorialSelenium Basics Tutorial
Selenium Basics TutorialClever Moe
 
Ajit jadhav automation_qa_4_ yrs
Ajit jadhav automation_qa_4_ yrsAjit jadhav automation_qa_4_ yrs
Ajit jadhav automation_qa_4_ yrsAjit Jadhav
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionAmr E. Mohamed
 
Top trending selenium interview questions
Top trending selenium interview questionsTop trending selenium interview questions
Top trending selenium interview questionsRock Interview
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing ToolZeba Tahseen
 
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
Interview question & Answers for 3+ years experienced in Selenium | LearningSlotInterview question & Answers for 3+ years experienced in Selenium | LearningSlot
Interview question & Answers for 3+ years experienced in Selenium | LearningSlotLearning Slot
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"Agile Testing Alliance
 
Interview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlotInterview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlotLearning Slot
 
Selenium using Java
Selenium using JavaSelenium using Java
Selenium using JavaF K
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASITASIT
 

Was ist angesagt? (20)

GL_Web application testing using selenium
GL_Web application testing using seleniumGL_Web application testing using selenium
GL_Web application testing using selenium
 
Selenium Tutorial
Selenium TutorialSelenium Tutorial
Selenium Tutorial
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium Webdriver Interview Questions
Selenium Webdriver Interview QuestionsSelenium Webdriver Interview Questions
Selenium Webdriver Interview Questions
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
Selenium webdriver interview questions and answers
Selenium webdriver interview questions and answersSelenium webdriver interview questions and answers
Selenium webdriver interview questions and answers
 
Selenium interview questions and answers
Selenium interview questions and answersSelenium interview questions and answers
Selenium interview questions and answers
 
Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)Selenium Commands (Short Interview Preparation)
Selenium Commands (Short Interview Preparation)
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaSelenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
 
Selenium Basics Tutorial
Selenium Basics TutorialSelenium Basics Tutorial
Selenium Basics Tutorial
 
Selenium WebDriver training
Selenium WebDriver trainingSelenium WebDriver training
Selenium WebDriver training
 
Ajit jadhav automation_qa_4_ yrs
Ajit jadhav automation_qa_4_ yrsAjit jadhav automation_qa_4_ yrs
Ajit jadhav automation_qa_4_ yrs
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Top trending selenium interview questions
Top trending selenium interview questionsTop trending selenium interview questions
Top trending selenium interview questions
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
Interview question & Answers for 3+ years experienced in Selenium | LearningSlotInterview question & Answers for 3+ years experienced in Selenium | LearningSlot
Interview question & Answers for 3+ years experienced in Selenium | LearningSlot
 
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
#ATAGTR2021 Presentation - "Selenium 4 Observability – a 90 Min Hands on Lab"
 
Interview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlotInterview Question & Answers for Selenium Freshers | LearningSlot
Interview Question & Answers for Selenium Freshers | LearningSlot
 
Selenium using Java
Selenium using JavaSelenium using Java
Selenium using Java
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASIT
 

Ähnlich wie Selenium framework faq

Top 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxTop 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxSyntax Technologies
 
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...pCloudy
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Simplilearn
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using seleniumTờ Rang
 
What is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdfWhat is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdfAnanthReddy38
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesVijay Rangaiah
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfAnanthReddy38
 
Best Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdfBest Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdfpCloudy
 
Overview of automation By Pallavi Gupta
Overview of automation By Pallavi GuptaOverview of automation By Pallavi Gupta
Overview of automation By Pallavi GuptaPallaviGupta208
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guidebigspire
 
Automation Testing by Ashwin Shiv
Automation Testing by Ashwin Shiv Automation Testing by Ashwin Shiv
Automation Testing by Ashwin Shiv Ashwin Shiv
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxSyntax Technologies
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxSyedZaeem9
 
Selenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and HowSelenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and HowKiwiQA
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Controlusha kannappan
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 

Ähnlich wie Selenium framework faq (20)

Top 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxTop 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptx
 
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
Best Unit Testing Frameworks to Automate your Desktop Web Testing using Selen...
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
What is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdfWhat is Selenium Automation Testing.pdf
What is Selenium Automation Testing.pdf
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Top 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdfTop 21 Selenium FAQs.pdf
Top 21 Selenium FAQs.pdf
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
Best Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdfBest Selenium Python Frameworks for Test automation.pdf
Best Selenium Python Frameworks for Test automation.pdf
 
Overview of automation By Pallavi Gupta
Overview of automation By Pallavi GuptaOverview of automation By Pallavi Gupta
Overview of automation By Pallavi Gupta
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Automation Testing by Ashwin Shiv
Automation Testing by Ashwin Shiv Automation Testing by Ashwin Shiv
Automation Testing by Ashwin Shiv
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Selenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and HowSelenium Automation Testing What, Why and How
Selenium Automation Testing What, Why and How
 
Basics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote ControlBasics of Selenium IDE,Core, Remote Control
Basics of Selenium IDE,Core, Remote Control
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 

Selenium framework faq

  • 1. Selenium Open Source Test Automation Framework FAQ Version 1.0 September 2009 DISCLAIMER Verbatim copying and distribution of this entire article is permitted worldwide, without royalty, in any medium, provided this notice is preserved.
  • 2. Table of Contents TABLE OF CONTENTS 1. INTRODUCTION ................................................. 3 1.1. Purpose .......................................................... 3 2. FREQUENTLY ASKED QUESTIONS...................................... 4 2.1. Open Source Test Automation ...................................... 4 2.2. Keyword Scripts .................................................. 6 Open2Test.org Page ii
  • 3. Selenium Open Source Test Automation Framework FAQ 1. Introduction 1.1. Purpose The purpose of this document is to answer frequently asked questions about the (Selenium) Open Source Test Automation Framework. Open2Test.org Page 3
  • 4. Selenium Open Source Test Automation Framework FAQ 2. Frequently Asked Questions 2.1. Open Source Test Automation The table below lists FAQs with respective answers related to the Selenium Open Source Test Automation Framework. 1. Is the Open Source Test Automation Framework application-dependent? No, it is not application-dependent because the Open Source Test Automation Framework is designed to perform operations for all standard object types (WebEdit, Weblist, Webcheckbox, etc.) of technology commonly used to build a Web application. 2. Is Open Source Test Automation Framework technology-dependent? Yes, it is technology-dependent. 3. What are the benefits of using this framework? The Open Source Test Automation Framework provides the following benefits: 1. The testers can automate test cases without the help of programmers or programming background. 2. They can run automated test cases more reliably. 3. The Open Source Test Automation Framework reduces maintenance and increases productivity. 4. Keywords are application-independent. 4. Does the Open Source Test Automation Framework support a data-driven framework? Yes. 5. Does it support a function modular framework? Yes. 6. What are the prerequisites for using the Open Source Test Automation Framework? The prerequisites for using the Open Source Test Automation Framework are: 1. Knowledge of the keywords. 2. Basic knowledge of the Selenium tool. 3. All the necessary files should be associated. 7. Does the Open Source Test Automation Framework support all versions of Selenium? Yes. 8. What are the various components of the Open Source Test Automation Framework? The components include: Main.rb, functionlibrary.rb, selenium.rb, object repository, keywords, external test data, and global variables. 9. What are the different components needed to run a Selenium script using the Open Source Test Automation Framework? Place the keyword script and test data (if used) in the location specified in the framework. Place the Object Repository Excel in the Specified location. Save the Open Source Test Automation Framework to the system and then right click on the main.rb and select ‘Edit’. Make the Selenium Server up and running. Press F5 to run the script. Or Launch command prompt Open2Test.org Page 4
  • 5. Selenium Open Source Test Automation Framework FAQ Go to path main.rb Run the below command Ruby main.rb 10. Does the Open Source Test Automation Framework support external functions? Yes, it supports external functions. 11. Does the Open Source Test Automation Framework support using an xml file for test data? No. 12. How does the Open Source Test Automation Framework work? Using the Open Source Test Automation Framework, testers can develop test cases using Microsoft Excel and the available list of keywords. When the test is executed, the framework processes the Excel workbook and calls the functions associated with the keywords entered in the Excel spreadsheet. These keyword functions in turn perform specific actions against the Application Under Test (AUT). 13. What are the benefits of the Open Source Test Automation Framework? Reusability, greater test productivity, optimum utilization of the tool through keyword support, and minimum effort needed to build scripts. 14. What are the features of the Open Source Test Automation Framework? The following are the features of the Open Source Test Automation Framework: Performing operations and verifications on the objects Usage of variables Conditional checking Data-driven testing Reports Exception handling Handling Web objects 15. How reliable is this framework as compared to a linear script? The framework provides standardized, tested code. It is typically much more reliable and more thoroughly tested than recorded scripts. It also provides uniformity across automation scripts and ensures standard procedures are followed for coding. 16. What is the advantage of building scripts using the Open Source Test Automation Framework over writing code in Ruby? Being a keyword-driven framework, one does not need to know Ruby programming. Testers can develop scripts without learning the underlying automation tool. The tests are easier to understand and maintain, and they provide maximum code reuse. 17. How do I decide whether I can automate an application using the Open Source Test Automation Framework? Currently the Selenium Open Source Test Automation Framework supports automation of web applications. 18. What is the Open Source Test Automation Framework? This framework is built for several of the leading test automation tools. It allows scripting of test cases using a set of keywords provided as part of the framework. This is often referred to as keyword-driven testing or action-based testing. 19. What is the use of Selenium.rb? Selenium.rb is the ruby file that holds the built-in functions of Selenium and it has to be present in the framework code to perform those actions on the application. Open2Test.org Page 5
  • 6. Selenium Open Source Test Automation Framework FAQ 20. How do we integrate AutoIt with Selenium? Before starting the integration of AutoIt, we need to install AutoIt in the machine. Once the installation is complete, we can use the following method to access the command from Ruby. AutoIt command can be accessed from Ruby by creating an object of AutoIt in the Ruby script using Win32OLE. Win32OLE extension library provides an interface to OLE Automation from Ruby. require 'win32ole' application = WIN32OLE.new('AutoItX3.Control') Now using Win32OLE a new object-named application is created for accessing AutoIt commands. This will include all the commands of AutoIt. 21. How does Selenium handle popup windows? Using Multithreading concept of Ruby and AutoIt, we can handle all the popups that are present in any web-based application during the execution of any step. 22. How does the Multithreading concept works with Selenium? The below code will explain the implementation, application = WIN32OLE.new('AutoItX3.Control') @@t1 = Thread.new {@selenium.click <btnname>} sleep 5 Thread.kill(@@t1) application.ControlClick("<windowname>","","<buttonname>") Usually when we get a windows popup upon clicking any object in the application, Selenium RC will not get any response from the server. This will cause the execution to expire without proceeding to the next step. The above code will handle this issue. If there is a button, which when clicked gives us a windows popup, then we click that button in a separate thread. That way, this thread will be killed after clicking the button and will not wait for any server response. The main thread will continue the execution. Now the popup is active, so using the command "ControlClick" of AutoIt we can click on either the "OK" or "Cancel" buttons in any popup. 23. Is it possible to type a value in the edit box of a popup? The keyword below is used to type any value in an edit box of a popup. <Value> is the value that needs to be typed. Details of <Window Name> should be specified in Object Repository. • r | popup | <window name>;presskey| <Value> 2.2. Keyword Scripts The table below lists the FAQs with respective answers related to keyword scripts. Open2Test.org Page 6
  • 7. Selenium Open Source Test Automation Framework FAQ 1. What are the various keywords available in the Open Source Test Automation Framework? Refer to the Keyword Reference Document for the list of keywords that are available in the Open Source Test Automation Framework. The document covers all the keywords along with their syntax and usage. 2. Does the Open Source Test Automation Framework support a mechanism for providing multiple sets of data to the same parameter? Yes. Use the Loop keyword. 3. Does the Open Source Test Automation Framework support if-else loops? Yes. Use the Condition keyword. 4. Does the Open Source Test Automation Framework support reusable actions? Yes. Please refer to the Keyword Reference document for the keyword to be used. COPYRIGHT This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. Open2Test.org Page 7