Sunday, July 17, 2022

Citrix Automation using RPA

 Citrix Automation

Two approach: Inside Citrix and Outside Citrix

1. Outside citrix

              > remote access

              >keyboard stroke

              >automation timeline more due to latency, network , screen resolution issues

2. Inside citrix

              > bot runs even network lost

              >automation timeline reduce

              >use high resolution machine, handle latency issue through scripts

             

Purpose of citrix automation

              citrix receiver use to connect citrix application

              inside citrix-all feature available

              outside citrix - keystroke,image recoginition and ocr

                             allow to select activate and differentiate between diff windows

         

           

 list prerequisit of citrix automation

              > citirx receiver configure to your machine

              >credentials- user name, pwd, domain and citrix host/server ip name

              >citirx license -enabled product

              >port 1494 open for communication

              

if citirx receiver must be pre-installed- if AA enterprise is already configure you will have to re-install after install citirx receiver

              

Two components of citrix automation

              1. session manager-   help to connect to new or existing citirx session

              2. citirx automation viewer -   provide intuitive interface, allows to record various action as and when it is perfromed, allows to edit the actions without exiting the viewer

             

             

Dev-Ops concepts

 DevOps

approach aims to synergize the efforts of the development and operations teams to accelerate the delivery of software products, with a minimal failure rate. Include how DevOps is a value-added practice, where development and operations engineers join hands throughout the product or service lifecycle, right from the design stage to the point of deployment


the different phases in DevOps?

The various phases of the DevOps lifecycle are as follows:

·       Plan - Initially, there should be a plan for the type of application that needs to be developed. Getting a rough picture of the development process is always a good idea.

·       Code - The application is coded as per the end-user requirements. 

·       Build - Build the application by integrating various codes formed in the previous steps.

·       Test - This is the most crucial step of the application development. Test the application and rebuild, if necessary.

·       Integrate - Multiple codes from different programmers are integrated into one.

·       Deploy - Code is deployed into a cloud environment for further usage. It is ensured that any new changes do not affect the functioning of a high traffic website.

·       Operate - Operations are performed on the code if required.

·       Monitor - Application performance is monitored. Changes are made to meet the end-user requirements.

Mention some of the core benefits of DevOps.

The core benefits of DevOps are as follows:

Technical benefits

·       Continuous software delivery

·       Less complex problems to manage

·       Early detection and faster correction of defects

Business benefits

·       Faster delivery of features

·       Stable operating environments

·       Improved communication and collaboration between the teams

three important DevOps KPIs.

The three important KPIs are as follows:

·       Meantime to failure recovery - This is the average time taken to recover from a failure.

·       Deployment frequency - The frequency in which the deployment occurs. 

·       Percentage of failed deployments - The number of times the deployment fails.

 

Headless Browser Testing

 Headless Browser

a headless browser is a browser which doesn’t have a GUI. Headless browser is used to simulate programs even though there is no browser installed on your local system. You couldn’t see any browser in your system but you will get the same result in your console. Headless browser doesn’t have GUI means it’s just that it doesn’t have any GUI but the program runs in the background.

Headless browser testing using Selenium WebDriver is done to test the application without any visual interruption.

Two widely used headless drivers with practical examples.

  1. HtmlUnitDriver  WebDriver driver = new HtmlUnitDriver()
  2. PhantomJSDriver- WebDriver driver = new PhantomJSDriver ();

Advantages of Performing Headless Browser Testing In Selenium

  1. It’s faster. The performance is better compared to browser automation. Automated testing is to automate a browser to ensure that the application is running as expected. Running regression scripts take lots of time. With headless browsers, we could save time.
  2. It enables you to run the scripts on a system which doesn’t have a browser.
  3. Imagine you have a situation to run some tests on a version of google chrome and there is no such version of google chrome on your local system. In this case, you could use the headless browser, most of the headless browsers support browser versions.

Disadvantages of Headless Browsers Testing:

  1. Debugging is a bit difficult using headless browsers. Here browser is not visible, the only way is to capture a screenshot.

 

Test Automation Framework

 Framework

A framework defines a set of rules or best practices which we can follow in a systematic way to achieve the desired results

 

popular Test Automation Frameworks

  • Modular Testing Framework
  • Data Driven Testing Framework
  • Keyword Driven Testing Framework
  • Hybrid Testing Framework
  • Behavior Driven Development Framework

Why Framework

In a test automation project, we do perform different tasks by using different types of files. To organize and manage all the files and to finish all the tasks in a systematic approach we use a framework.

 advantages of using Test Automation Framework

  1. Saves time and money. Automation testing is faster in execution
  2. Reusability of code. Create one time and execute multiple times with less or no maintenance
  3. Easy reporting. It generates automatic reports after test execution
  4. Easy for compatibility testing. It enables parallel execution in combination of different OS and browser environments
  5. Low cost maintenance. It is cheaper compared to manual testing in a long run
  6. Automated testing is more reliable
  7. Automated testing is more powerful and versatile
  8. It is mostly used for regression testing. Supports execution of repeated test cases
  9. Minimal manual intervention. Test scripts can be run unattended
  10. Maximum coverage. It helps to increase the test coverage