GithubHelp home page GithubHelp logo

oe-test-agent's Introduction

OE Test Agent

An e2e tool for Progress OpenEdge applications with Protractor

Quick start

The OE Test Agent was developed in order to make our e2e test for OpenEdge applications easier.

As our dev team was already familiar with Protractor, we took advantage of that to create this project, using only socket communication, between JavaScript and OE, and an external tool - also created by us - called "Robot".

Installation

npm i oe-test-agent

Changelog

  • 1.0.1: Documentation.

Want to help?

You're welcome to open a issue with bugs and improvements on this GitHub or to make us a PR.

Other tools

In order to make this project to work with all kind of Progress OpenEdge applications, besides the socket communication, we needed to build an auxiliar tool that we decided to call "Robot".

Robot.exe

If you are familiar with Progress OE applications, you probably know that visual messages - with VIEW-AS ALERT-BOX attributes - block all other execution until the user closes the current opened message.

To solve that we create "Robot.exe", this tool - built using "Auto It" - simulates a mouse click to the opened message and also can send keyboard events to any other Windows opened application.

Heads up! You may need to sign "Robot.exe" with a valid certificate or put it on your antivirus whitelist.

Sample Test

At this point we assume that you've already did a npm install command for this project.

To test our sample, first you need to download both ZIP files available here. Create a folder called "ABL" and extract the examples in the "examples" folder and the samples in the "samples" folder, both of them inside "ABL". In our case the "ABL" folder is available at C:\, but your structure should be similar as bellow:

C:\
└── ABL/
    ├── examples/
    │   ├── prodoc/
    ├── samples/
    │   ├── src/
    │   ├── tutorial/
    │   ├── webinstall/

Inside the "ABL" folder, create a parameter file progress.pf with the content bellow:

# Change C:/dlc116 with your own DLC home.
-db C:/dlc116/sports2000.db -1
-clientlog C:\tmp\oe-test-agent.log

In a command line prompt, navigate to the test folder inside the oe-test-agent project and type: npm run test. If everything is correct, your test should start and run without any problems.

npm-test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.