Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abstraktor-shadow/actorjs-app

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abstraktor-shadow/actorjs-app

ActorJs – the simpler way to build complex Test Cases. ActorJs simulates all surrounding nodes, and you implement the slices.

  • 0.0.0-aj-alpha.289
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ActorJs

ActorJs is a test tool for end to end testing. You run it in a browser.

Trig, Mock, Intercept anything.

ActorJs simulates all processes and services surrounding a System Under Test. It allows you to isolate a System Under Test in a very efficient way, regardless of how many surrounding systems or protocols the System Under Test needs to use. You will use stacks to implement your Actors(mini, mini simulators).

Install ActorJs

npm install @abstraktor/actorjs

Update ActorJs

npm update

Build ActorJs Server

aj debug

If you change some files when ActorJs is not started or if you pull updates from your local repos you have to build again with aj debug. Otherwise just start it with: aj.

Start ActorJs Client

Open a browser with url http://localhost:9005

Beta Testers

We are looking for beta testers. First 50.... Apply on betatester@abstraktor.se

Documentation

Documentation can be found in the tool. Click the links if the tool is started.

Example code

HTTP - server

*run() {
  this.httpConnection.send(new HttpMsgGetRequest(this.requistUri));
    
  const response = this.httpConnection.receive();
  VERIFY_VALUE(HttpApi.StatusCode.OK, response.statusCode, ' HTTP response line status code:');
  VERIFY_CONTENT_OPTIONAL('content-name', response.getHeaderNumber(HttpApi.Header.CONTENT_LENGTH), response.getBody());
}

Websocket - client

*run() {
  this.httpConnection.send(new HttpGetUpgradeRequest(this.requistUri, this.wsProtocol));
 
  const response = this.httpConnection.receive();
  this.websocketConnection = this.switchProtocol('websocket', this.httpConnection);
    
  this.websocketConnection.send(new WebsocketStackApi.TextFrame(this.wsText, this.wsMask));
    
  this.websocketConnection.send(new WebsocketStackApi.CloseFrame());
}

Puppeteer - client

*run() {
  const page = this.puppeteerConnection.page;
  yield page.click('.w-button');
}

Socket - server

*run() {
  this.socketConnection.accept();
  const request = this.socketConnection.receiveLine();
  VERIFY_VALUE('Hello World!', request)
}

FAQs

Package last updated on 24 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc