The slides describes how Robot Framework provides synergy in test automation, making a lot of
automation processes flexible and simple for testing network protocols(in this case BGP).
This is a basic level robot framework presentation. You can install robot framework without any problem and start your first test with this presentation.
Robot Framework is a generic keyword-driven test automation framework for acceptance level testing and acceptance test-driven development (ATDD). It has an easy-to-use tabular syntax for creating test cases and its testing capabilities can be extended by test libraries implemented either with Python or Java. Users can also create new keywords from existing ones using the same simple syntax that is used for creating test cases.
Old presentation was updated on 1st of September, 2014. Content stayed mostly the same but examples were enhanced. Copyrights and some links were also updated a bit later. The presentation is nowadays hosted on GitHub where you can find the original in ODP format: https://github.com/robotframework/IntroSlides
This is a basic level robot framework presentation. You can install robot framework without any problem and start your first test with this presentation.
Robot Framework is a generic keyword-driven test automation framework for acceptance level testing and acceptance test-driven development (ATDD). It has an easy-to-use tabular syntax for creating test cases and its testing capabilities can be extended by test libraries implemented either with Python or Java. Users can also create new keywords from existing ones using the same simple syntax that is used for creating test cases.
Old presentation was updated on 1st of September, 2014. Content stayed mostly the same but examples were enhanced. Copyrights and some links were also updated a bit later. The presentation is nowadays hosted on GitHub where you can find the original in ODP format: https://github.com/robotframework/IntroSlides
If you’re responsible for creating diverse, scalable automated tests but don’t have the time, budget, or a skilled-enough team to create yet another custom test automation framework, then you need to know about Robot Framework!
In this webinar, Bryan Lamb (Founder, RobotFrameworkTutorial.com) and Chris Broesamle (Solutions Engineer, Sauce Labs) will reveal how you can use this powerful, free, open source, generic framework to create continuous automated regression tests for web, batch, API, or database testing. With the simplicity of Robot Framework, in conjunction with Sauce Labs, you can improve your test coverage and time to delivery of your applications.
A quick start guide to start working with Robot Framework.
End to End flow form installation to test case automation to verifying result, using both GUI and Command Prompt options.
This presentation demonstrates general guidelines how to create good test cases using Robot Framework. Both good practices and anti-patterns are presented.
The presentation is hosted on GitHub where you can find the original in ODP format: https://github.com/robotframework/DosDontsSlides
(** Selenium Training:
https://www.edureka.co/testing-with-selenium-webdriver **)
This Edureka PPT on Xpath Tutorial talks about Xpath fundamentals and steps involved in writing a Xpath Script. It also gives a brief idea on types of Xpath, Xpath Functions along with an example.
Following topics are covered in this tutorial:
Introduction to Xpath
XML DocumentX
Xpath Syntax
Types of Xpath
Xpath Functions
Selenium playlist: https://goo.gl/NmuzXE
Test automation principles, terminologies and implementationsSteven Li
A general slides for test automation principle, terminologies and implementation
Also, the slides provide an example - PET, which is a platform written by Perl, but not just for Perl. It provides a general framework to use.
Selenium 4 with Simon Stewart [Webinar]BrowserStack
BrowserStack hosted Simon Stewart, creator of WebDriver and core-contributor to the Selenium project for a webinar on the 18th of June. Simon spoke about Selenium 4, the upcoming Selenium upgrade.
Simon covered various topics like the philosophy behind the upgrade and what it means for the QA community. Here's the webinar, along with the transcript.
Cross Browser Testing Using LambdaTest | EdurekaEdureka!
** Selenium Certification Training: https://www.edureka.co/testing-with-selenium-webdriver **
** LambdaTest: https://www.lambdatest.com/ **
This Edureka PPT on Cross Browser Testing will talk about what is cross-browser compatibility, its need and how to perform cross-browser testing using lambda test application.
What is Cross Browser Compatibility?
Why do you need Cross Browser Testing?
How to perform Cross Browser testing?
Lambda test application
Selenium playlist: https://goo.gl/NmuzXE
Selenium Blog playlist: http://bit.ly/2B7C3QR
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_lea...
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Katalon Studio is a free and robust automation solution for API, Web, and Mobile testing. It integrates all necessary components with built-in keywords and project templates into a complete automation framework. Katalon Studio is easy to use for beginners but still offers advanced capabilities for experienced users. This solution is trusted by an active community of over 150K users from 150+ countries around the world.
In this knolx, we’ll take a look at what is API Testing and how the katalon studio is helpful in API Testing.
The presentation on Expanding test horizons with Robot Framework was done during #ATAGTR2017, one of the largest global testing conference. All copyright belongs to the author.
Author and presenter : Kushan Amarasiri
If you’re responsible for creating diverse, scalable automated tests but don’t have the time, budget, or a skilled-enough team to create yet another custom test automation framework, then you need to know about Robot Framework!
In this webinar, Bryan Lamb (Founder, RobotFrameworkTutorial.com) and Chris Broesamle (Solutions Engineer, Sauce Labs) will reveal how you can use this powerful, free, open source, generic framework to create continuous automated regression tests for web, batch, API, or database testing. With the simplicity of Robot Framework, in conjunction with Sauce Labs, you can improve your test coverage and time to delivery of your applications.
A quick start guide to start working with Robot Framework.
End to End flow form installation to test case automation to verifying result, using both GUI and Command Prompt options.
This presentation demonstrates general guidelines how to create good test cases using Robot Framework. Both good practices and anti-patterns are presented.
The presentation is hosted on GitHub where you can find the original in ODP format: https://github.com/robotframework/DosDontsSlides
(** Selenium Training:
https://www.edureka.co/testing-with-selenium-webdriver **)
This Edureka PPT on Xpath Tutorial talks about Xpath fundamentals and steps involved in writing a Xpath Script. It also gives a brief idea on types of Xpath, Xpath Functions along with an example.
Following topics are covered in this tutorial:
Introduction to Xpath
XML DocumentX
Xpath Syntax
Types of Xpath
Xpath Functions
Selenium playlist: https://goo.gl/NmuzXE
Test automation principles, terminologies and implementationsSteven Li
A general slides for test automation principle, terminologies and implementation
Also, the slides provide an example - PET, which is a platform written by Perl, but not just for Perl. It provides a general framework to use.
Selenium 4 with Simon Stewart [Webinar]BrowserStack
BrowserStack hosted Simon Stewart, creator of WebDriver and core-contributor to the Selenium project for a webinar on the 18th of June. Simon spoke about Selenium 4, the upcoming Selenium upgrade.
Simon covered various topics like the philosophy behind the upgrade and what it means for the QA community. Here's the webinar, along with the transcript.
Cross Browser Testing Using LambdaTest | EdurekaEdureka!
** Selenium Certification Training: https://www.edureka.co/testing-with-selenium-webdriver **
** LambdaTest: https://www.lambdatest.com/ **
This Edureka PPT on Cross Browser Testing will talk about what is cross-browser compatibility, its need and how to perform cross-browser testing using lambda test application.
What is Cross Browser Compatibility?
Why do you need Cross Browser Testing?
How to perform Cross Browser testing?
Lambda test application
Selenium playlist: https://goo.gl/NmuzXE
Selenium Blog playlist: http://bit.ly/2B7C3QR
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_lea...
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Katalon Studio is a free and robust automation solution for API, Web, and Mobile testing. It integrates all necessary components with built-in keywords and project templates into a complete automation framework. Katalon Studio is easy to use for beginners but still offers advanced capabilities for experienced users. This solution is trusted by an active community of over 150K users from 150+ countries around the world.
In this knolx, we’ll take a look at what is API Testing and how the katalon studio is helpful in API Testing.
The presentation on Expanding test horizons with Robot Framework was done during #ATAGTR2017, one of the largest global testing conference. All copyright belongs to the author.
Author and presenter : Kushan Amarasiri
A talk given at SemTechBiz 2014 in San Jose that follows up on the tool originally presented at the 2012 conference. Talks about the limitations we've encountered with the original tool and how we've evolved it to address these and build a more robust general purpose and open source SPARQL testing tool.
The tool is available on SourceForge in pre-built form at http://sourceforge.net/projects/sparql-query-bm/ or as code on SourceForge or GitHub (https://github.com/rvesse/sparql-query-bm)
Creation of a Test Bed Environment for Core Java Applications using White Box...cscpconf
A Test Bed Environment allows for rigorous, transparent, and replicable testing of scientific
theories. However, in software development these test beds can be specified hardware and
software environment for the application under test. Though the existing open source test bed
environments in Integrated Development Environment (IDE)s are capable of supporting the
development of Java application types, test reports are generated by third party developers.
They do not enhance the utility and the performance of the system constructed. Our proposed
system, we have created a customized test bed environment for core java application programs
used to generate the test case report using generated control flow graph. This can be obtained by developing a new mini compiler with additional features.
Play Framework makes it easy to build web applications with Java & Scala. This presentation give a idea of how play is implemented using Netty, how routes work. How we get calls in controller's action. Walk through guice and logging.
What I Learned From Writing a Test Framework (And Why I May Never Write One A...Daryl Walleck
During my seven year adventure at Rackspace, I've had the opportunity to work on several large projects with the responsibility of driving the technical direction of our test automation efforts. In that time I had the opportunity to work on several testing frameworks, each with their own strengths and weaknesses. In this talk, I step back to several of these key moments and describe the challenges I faced and how those challenges changed the way I approach test automation today.
The Systems Engineering / SRE world has undergone a shift of thinking towards intend driven holistic configuration management a long time ago, but it feels like the majority of network automation solutions are still following the idea of making incremental changes to the routers and switches out there, which at the same time might also be managed manually by operators typing (or copying) magic spells into a CLI. This makes the device configuration the synchronization point and we don’t really have an idea of what this configuration will look like in full without checking back on the device.
I believe we as Network (Automation) Engineers need to follow suit, make the mental shift to the holistic approach, let Perl, Shell and expect scripts be, and bring software engineering methods to network automation. This way we are able to tackle the problems at hand at an abstract level, build solutions which can be reasoned with, tested on their own, and scale to our needs. For the most daunting problem of configuration management this means plugging some of those systems together and building a solution which generates and owns the full device configuration.
Dealing with diverging configuration parts, across the fleet, carefully cleaning up old approaches to configure X, doing incremental changes, and figuring out how to interact with a platform API, a dialect of NETCONF, YANG, etc. would all be from the past –-- wouldn’t that be great?
A recording of this talk can be found at https://media.ccc.de/v/froscon2022-2820-this_is_the_way_-_holistic_network_automation
Making more informed Linux hardware Choices - PhoronixNEWLUG
Presentation by Michael Larabel & Matthew Tippet at SCALE. Available at:
http://www.phoronix-test-suite.com/presentations/MAKING_MORE_INFORMED_LINUX_HARDWARE_CHOICES.pdf
Similar to Network Protocol Testing Using Robot Framework (20)
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
Large Language Models and the End of ProgrammingMatt Welsh
Talk by Matt Welsh at Craft Conference 2024 on the impact that Large Language Models will have on the future of software development. In this talk, I discuss the ways in which LLMs will impact the software industry, from replacing human software developers with AI, to replacing conventional software with models that perform reasoning, computation, and problem-solving.
Developing Distributed High-performance Computing Capabilities of an Open Sci...Globus
COVID-19 had an unprecedented impact on scientific collaboration. The pandemic and its broad response from the scientific community has forged new relationships among public health practitioners, mathematical modelers, and scientific computing specialists, while revealing critical gaps in exploiting advanced computing systems to support urgent decision making. Informed by our team’s work in applying high-performance computing in support of public health decision makers during the COVID-19 pandemic, we present how Globus technologies are enabling the development of an open science platform for robust epidemic analysis, with the goal of collaborative, secure, distributed, on-demand, and fast time-to-solution analyses to support public health.
Globus Connect Server Deep Dive - GlobusWorld 2024Globus
We explore the Globus Connect Server (GCS) architecture and experiment with advanced configuration options and use cases. This content is targeted at system administrators who are familiar with GCS and currently operate—or are planning to operate—broader deployments at their institution.
Why React Native as a Strategic Advantage for Startup Innovation.pdfayushiqss
Do you know that React Native is being increasingly adopted by startups as well as big companies in the mobile app development industry? Big names like Facebook, Instagram, and Pinterest have already integrated this robust open-source framework.
In fact, according to a report by Statista, the number of React Native developers has been steadily increasing over the years, reaching an estimated 1.9 million by the end of 2024. This means that the demand for this framework in the job market has been growing making it a valuable skill.
But what makes React Native so popular for mobile application development? It offers excellent cross-platform capabilities among other benefits. This way, with React Native, developers can write code once and run it on both iOS and Android devices thus saving time and resources leading to shorter development cycles hence faster time-to-market for your app.
Let’s take the example of a startup, which wanted to release their app on both iOS and Android at once. Through the use of React Native they managed to create an app and bring it into the market within a very short period. This helped them gain an advantage over their competitors because they had access to a large user base who were able to generate revenue quickly for them.
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Shahin Sheidaei
Games are powerful teaching tools, fostering hands-on engagement and fun. But they require careful consideration to succeed. Join me to explore factors in running and selecting games, ensuring they serve as effective teaching tools. Learn to maintain focus on learning objectives while playing, and how to measure the ROI of gaming in education. Discover strategies for pitching gaming to leadership. This session offers insights, tips, and examples for coaches, team leads, and enterprise leaders seeking to teach from simple to complex concepts.
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
The Earth System Grid Federation (ESGF) is a global network of data servers that archives and distributes the planet’s largest collection of Earth system model output for thousands of climate and environmental scientists worldwide. Many of these petabyte-scale data archives are located in proximity to large high-performance computing (HPC) or cloud computing resources, but the primary workflow for data users consists of transferring data, and applying computations on a different system. As a part of the ESGF 2.0 US project (funded by the United States Department of Energy Office of Science), we developed pre-defined data workflows, which can be run on-demand, capable of applying many data reduction and data analysis to the large ESGF data archives, transferring only the resultant analysis (ex. visualizations, smaller data files). In this talk, we will showcase a few of these workflows, highlighting how Globus Flows can be used for petabyte-scale climate analysis.
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar
The European Union Agency for Law Enforcement Cooperation (Europol) has suffered an alleged data breach after a notorious threat actor claimed to have exfiltrated data from its systems. Infamous data leaker IntelBroker posted on the even more infamous BreachForums hacking forum, saying that Europol suffered a data breach this month.
The alleged breach affected Europol agencies CCSE, EC3, Europol Platform for Experts, Law Enforcement Forum, and SIRIUS. Infiltration of these entities can disrupt ongoing investigations and compromise sensitive intelligence shared among international law enforcement agencies.
However, this is neither the first nor the last activity of IntekBroker. We have compiled for you what happened in the last few days. To track such hacker activities on dark web sources like hacker forums, private Telegram channels, and other hidden platforms where cyber threats often originate, you can check SOCRadar’s Dark Web News.
Stay Informed on Threat Actors’ Activity on the Dark Web with SOCRadar!
Modern design is crucial in today's digital environment, and this is especially true for SharePoint intranets. The design of these digital hubs is critical to user engagement and productivity enhancement. They are the cornerstone of internal collaboration and interaction within enterprises.
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?XfilesPro
Worried about document security while sharing them in Salesforce? Fret no more! Here are the top-notch security standards XfilesPro upholds to ensure strong security for your Salesforce documents while sharing with internal or external people.
To learn more, read the blog: https://www.xfilespro.com/how-does-xfilespro-make-document-sharing-secure-and-seamless-in-salesforce/
Designing for Privacy in Amazon Web ServicesKrzysztofKkol1
Data privacy is one of the most critical issues that businesses face. This presentation shares insights on the principles and best practices for ensuring the resilience and security of your workload.
Drawing on a real-life project from the HR industry, the various challenges will be demonstrated: data protection, self-healing, business continuity, security, and transparency of data processing. This systematized approach allowed to create a secure AWS cloud infrastructure that not only met strict compliance rules but also exceeded the client's expectations.
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
Unlocking Business Potential: Tailored Technology Solutions by Prosigns
Discover how Prosigns, a leading technology solutions provider, partners with businesses to drive innovation and success. Our presentation showcases our comprehensive range of services, including custom software development, web and mobile app development, AI & ML solutions, blockchain integration, DevOps services, and Microsoft Dynamics 365 support.
Custom Software Development: Prosigns specializes in creating bespoke software solutions that cater to your unique business needs. Our team of experts works closely with you to understand your requirements and deliver tailor-made software that enhances efficiency and drives growth.
Web and Mobile App Development: From responsive websites to intuitive mobile applications, Prosigns develops cutting-edge solutions that engage users and deliver seamless experiences across devices.
AI & ML Solutions: Harnessing the power of Artificial Intelligence and Machine Learning, Prosigns provides smart solutions that automate processes, provide valuable insights, and drive informed decision-making.
Blockchain Integration: Prosigns offers comprehensive blockchain solutions, including development, integration, and consulting services, enabling businesses to leverage blockchain technology for enhanced security, transparency, and efficiency.
DevOps Services: Prosigns' DevOps services streamline development and operations processes, ensuring faster and more reliable software delivery through automation and continuous integration.
Microsoft Dynamics 365 Support: Prosigns provides comprehensive support and maintenance services for Microsoft Dynamics 365, ensuring your system is always up-to-date, secure, and running smoothly.
Learn how our collaborative approach and dedication to excellence help businesses achieve their goals and stay ahead in today's digital landscape. From concept to deployment, Prosigns is your trusted partner for transforming ideas into reality and unlocking the full potential of your business.
Join us on a journey of innovation and growth. Let's partner for success with Prosigns.
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
Keep tabs on your field staff effortlessly with Informap Technology Centre LLC. Real-time tracking, task assignment, and smart features for efficient management. Request a live demo today!
For more details, visit us : https://informapuae.com/field-staff-tracking/
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus
As part of the DOE Integrated Research Infrastructure (IRI) program, NERSC at Lawrence Berkeley National Lab and ALCF at Argonne National Lab are working closely with General Atomics on accelerating the computing requirements of the DIII-D experiment. As part of the work the team is investigating ways to speedup the time to solution for many different parts of the DIII-D workflow including how they run jobs on HPC systems. One of these routes is looking at Globus Compute as a way to replace the current method for managing tasks and we describe a brief proof of concept showing how Globus Compute could help to schedule jobs and be a tool to connect compute at different facilities.
3. Introduction
Robot Framework is a Pythonbased, extensible keyworddriven
test automation framework for endtoend acceptance testing and
acceptancetestdriven development (ATDD).
It can be used for testing distributed, heterogeneous applications,
where verification requires touching several technologies and
interfaces.
Robot Framework is operating system and application
independent.
It empowers testers to automate and manage complex workflow
scripts efficiently.
Robot Framework is open source software released under
Apache License 2.0.
Implemented with Python
– Runs also on Jython (JVM) and IronPython (.NET)
– Can be extended natively using Python or Java
– Other languages supported via a remote interface
4. Why Robot?
Ease of use
Logging and Failure Analysis
& Flexibility
Robot is keyword driven
Robot is highly extensible
Robot integrates with development tools
Robot has robust reporting
Multiple Operating Systems support
Reusable/custom keywords
Maintainability is easy
Extensive set of standard, external libraries
5. High Level Architecture
Robot Framework has a modular
architecture that can be extended with
bundled and selfmade test libraries.
When test execution is started, the
framework first parses the test data. It
then utilizes keywords provided by the
test libraries to interact with the
system under test. Libraries can
communicate with the system either
directly or using other test tools as
drivers.
Test execution is started from the
command line. As a result you get
report and log in HTML format as well
as an XML output. These provide
extensive look into what your system
does.
Test data Syntax
Test Library API
Application Interface
TEST DATA
ROBOT FRAMEWORK
TEST LIBRARIES
SYSTEM UNDER TEST
TEST TOOLS
6. Test libraries provide the actual testing
capabilities to Robot Framework by
providing keywords.
There are several standard libraries that
are bundled in with the framework, and
galore of separately developed external
libraries that can be installed based on your
needs
Standard Libraries
Builtin
Operating System
Process
Telnet
Remote
Screenshot
External Libraries
Selenium2Library
HTTP
FTP
Rammbock
SSH
Django
Android
IOS
Test Libraries
7. Important libraries for automating router
implementation
Rammbock
Rammbock is unique library which help developing automation test cases to a Networking
domain based application. Rammbock is a simple python based library that will help to
automate the generation of simple TCP/IP or UDP based packets.
SSH
With the SSH library an automation script can connect to a remote UNIX or a LINUX machine
and execute any commands remotely.
Telnet
Makes it possible to connect to Telnet servers and
execute commands on the opened connections.
Operating System
The operating systems library provides the
flexibility execute any OS command in the
environment or the machine the script is being
executed
8. Protocol testing using Robot Framework (BGP)
Border Gateway Protocol (BGP) is a standardized exterior gateway protocol designed to exchange
routing and reachability information among autonomous systems (AS) on the Internet.BGP is the
routing protocol of the global Internet, as well as for Service Provider private networks.Thus checking
whether BGP is working as per respective standard is of prime importance.
Automated protocol testing is the best bet to boost the efficiency and broaden the scope of testing.
What can be the best, other than ROBOT FRAMEWORK ????
Robot Framework can be used to automate test cases in a quick and proficient fashion.Its powerful
features such as Ease of use, Flexibility, Extensive Libraries, and Robust reporting, make it a wonderful
tool in hands of a network manager entrusted a task to test the network.
Thus we have developed test suite with tests for configuring BGP and testing it.
We use a Network Emulation tool called GNS3
GNS3 provides a realtime network simulation for predeployment testing without
the need for network hardware.
Let’s you create dynamic network maps for troubleshooting and proof of concept
(POC) testing
9. Design Requirements
CPU Speed : 2.1Ghz
RAM : 4GB
OS : Ubuntu
Other Softwares Required:
Network Emulator GNS3 1.5.2
with Cisco router IOS image :c7200p-adventerprisek9_sna-mz
Python 2.7.12
Robot Framework 3.0
12. *** Settings ***
Metadata Version 1.0
... More Info For more information about Robot Framework see http://robotframework.org
... Author Payal Jain
... Date 19 Dec 2016
... Executed At ${HOST}
... Test Framework Robot Framework Python
Documentation A test suite with tests for configuring BGP.
... Topology:-
... _________________________
| R1 AS2 |
... | / |
... | / |
... | R2 R3 |
... | | | |
|________| ______ |_________|
________| |_________
... | AS1 | | AS3 |
| | | |
... | R4 | | R5 |
... |_______ | |________ |
Testplan Goals:-
... 1. Configure IP addresses as per the topology.
... 2. Each Router should have a loopback0 interface.
... 3. Configure OSPF within AS2 to advertise the loopback0 interfaces.
... Don't advertise or run OSPF on the links interconnecting AS1 and AS3.
... 4. Configure IBGP between R2 and R3. Source the BGP updates from the loopback0 interfaces.
... 5. Enable BGP synchronisation.
... 6. Configure EBGP between R2 and R4.
... 7. Configure EBGP between R3 and R5.
... 8. Advertise the loopback0 interfaces on R4 and R5.
... 9. Ensure AS1 and AS3 can communicate with each other without removing the BGP synchronisation command.
Resource Resource.robot
Suite Setup Setup Actions
Suite Teardown Teardown Actions
Sample Test_Case File
Robot Framework test cases are created using test case tables in test case files. Such a file automatically creates a test suite from all the test cases it
contains.
The following settings in the Setting table can be used to customize the test suite:
Documentation
Used for specifying a test suite documentation
Metadata
Used for setting free test suite metadata as namevalue pairs.
Suite Setup, Suite Teardown
Specify suite setup and teardown.
13. *** Test Cases ***
Bring_up Phase
Configure IP addresses as per the topology
Configure ip address
Set loopback interface
Configure OSPF within AS2 to advertise the connected networks
Enable OSPF in devices present in AS2 and set the ospf neighbors
Configure IBGP and source the BGP updates from the loopback0 interfaces
Enable BGP and advertise the updates from the loopback interface
Enable BGP Synchronisation
Enable synchronisation between border routers
Configure EBGP and source the BGP updates from the loopback0 interfaces
Enable BGP and advertise networks connected outside the autonomous system
Advertise loopback interface on AS1 and AS3
Operational Phase
Check if ip addresses is set and interface is up
Ensure that different autonomous systems can communicate with each other
Check if OSPF neighbors are established
Redistribute in order to make routes available in IBGP table
Check if all routes are learnt by devices
Establish route between R2 and R3
Redistribute routes from OSPF into BGP
.......Sample Test_Case File
This includes the testcases to implement testplan goals.The testsuite contains two main critical tests:
Bring_Up Phase : Tests to configure the device under test(DUT) as per the testplan
Operational Phase : Tests to check the operability of a DUT as per the configuration done in bringup phase
14. *** Settings ***
Documentation Resource file containing all the PYTHON API implementations.
Library setup_actions.py
Library Devices.py
Library OSPF.py
Library IBGP.py
Library operational_ph.py
Library String
Variables variable.py
*** Variables ***
@{Devices} = R1 R2 R3 R4 R5
${ELEMENT}
*** Keywords ***
Setup Actions
Log To Console Setup Actions done here
Log To Console Connecting to all devices and enabling password and hostname
Run Keyword and Continue On Failure connect_all enable
Teardown Actions
Log To Console Teardown Actions done here
Log To Console Unconfiguring IP_Address
Run Keyword and Continue On Failure set_IP R1 ${Links_of_R1} unconfigure
Log To Console IP_Address unconfigured in R1
Run Keyword and Continue On Failure set_IP R2 ${Links_of_R2} unconfigure
Log To Console IP_Address unconfigured in R2
Run Keyword and Continue On Failure set_IP R3 ${Links_of_R3} unconfigure
Log To Console IP_Address unconfigured in R3
Run Keyword and Continue On Failure set_IP R4 ${Links_of_R4} unconfigure
Log To Console IP_Address unconfigured in R4
Run Keyword and Continue On Failure set_IP R5 ${Links_of_R5} unconfigure
Log To Console IP_Address unconfigured in R5
Log To Console Disabling password and unsetting hostname
Run Keyword and Continue On Failure connect_all disable
The higherlevel structure of resource files is the same as that of test case files
User keywords and variables in test case files and test suite initialization files can only be used in files where they are created, but resource files provide a
mechanism for sharing them.
Sample Resource file
15. import pexpect
import getdata
import time
import execute
import Device
class OSPF_Configuration:
def Configure_ospf(self,Device,process_id,Networks_connected,Area,Action):
with open('pr2.json') as data_file:
device_data = json.load(data_file)
hostname = device_data['Device_Details'][Device]['Hostname']
child = Device.connect(Device)
if (child):
Device.flushBuffer(10,child)
child.sendcontrol('m')
flag = child.expect([hostname+'>',hostname+'#','Router>','Router#',pexpect.EOF,pexpect.TIMEOUT],timeout=50)
print 'flag =%d' % flag
if flag==0 or flag==2:
self.Login(Device,child)
if Action == 'enable':
if (isinstance(Networks_connected,list)):
for NID in Networks_connected:
print NID
configs = """
configure terminal
router ospf %s
network %s area %s
end
""" % (process_id,NID,Area)
commands = configs.split('n')
execute.execute(child,command)
child.sendcontrol('m')
child.sendline('exit')
Child.sendcontrol('m')
Sample Python Library
This defines the implementation of user keywords.
21. Test_SetupInitial configuration in devices
A test setup is something that is executed before a test case.
Example: Set up the initial configurations of device under test(DUT) such as establishing Telnet connection & setting up the password and
hostname.