Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Service Documentation #1158

Open
fuhlig opened this issue Mar 4, 2020 · 4 comments
Open

Remote Service Documentation #1158

fuhlig opened this issue Mar 4, 2020 · 4 comments

Comments

@fuhlig
Copy link
Contributor

fuhlig commented Mar 4, 2020

Currently there is no documentation on the remote service, despite being available via the CLI. While there is active work on this (e.g. approve button, which sound really great), I can't really try it out, give feedback and potentially contribute.

If you require assistence, I'd be happy to contribute.
Thanks in advance.

@garris
Copy link
Owner

garris commented Mar 5, 2020

Backstop-Remote

Description:

Backstop-Remote exposes BackstopJS CLI commands as an HTTP Web service, enabling browser-UI client interactions (e.g. hosted backstop reports, approve button interactions, etc.) with a local or remote instance of BackstopJS. Additionally, Backstop-Remote provides an interface for BackstopJS to interact as a slave web-app screenshot renderer and comparison engine for other JS-based testing and or development frameworks (e.g. Ember, Testem, Cypress, Storybook, etc.)

Workflow:

Starting the Backstop-Remote service

On the CLI...

backstop remote --config=<optional-some-backstop-config>

In a node app you might do something like this...

    backstopjs('remote', {
      config: commandOptions.config, 
      filter: commandOptions.filter
    });

Stopping the service

Doesn't get more restful than this...

http://<backstopHost>/stop/

Usage in CI env

Just start the service and ensure the host name and port are hit able inside your CI boundary.

For more info...

See: https://github.com/garris/ember-backstop

domibarton added a commit to confirm/BackstopJS that referenced this issue Oct 31, 2022
garris pushed a commit that referenced this issue Nov 4, 2022
* Improve documentation for interactive web report

This probably solves #1158.

* Fix link to interactive web reporting
@WBTMagnum
Copy link

WBTMagnum commented Feb 14, 2024

I'm fiddling around with the remote feature using the docker container. I'm able to execute /stop and /version, but I cannot figure out how to access or open the report for the given configuration.

I also had a look at /remote/index.js and tried to use /dview/:testId/:scenarioId, but to no avail. I always get the response "Cannot GET /" (respectively "Cannot GET /").

Any hints on how to create and/or access the report?

@dgrebb
Copy link
Contributor

dgrebb commented Feb 14, 2024

@WBTMagnum
Copy link

Thanks for the swift reply. That pushed me in the right direction. Besides the correct URL I was missing the "test" run for the report to be generated. All fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants