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

Allow TestCafe to be used for Browser Automation only (no testing) #2501

Closed
HopefulLlama opened this issue Jun 7, 2018 · 7 comments
Closed
Labels
FREQUENCY: level 2 TYPE: enhancement The accepted proposal for future implementation.

Comments

@HopefulLlama
Copy link

HopefulLlama commented Jun 7, 2018

Are you requesting a feature or reporting a bug?

Feature

What is the current behavior?

A test fixture is required for browser automation to work. The test controller must be run within the context of a test.

What is the expected behavior?

Browser automation to work regardless of whether in or outside the context of a test

How would you reproduce the current behavior (if this is a bug)?

Execute some browser automation outside of a test fixture.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

const { t } = require('testcafe');

t.navigateTo('https://github.com/DevExpress/testcafe/issues/new');

Specify your

  • operating system: Windows 10
  • testcafe version: 0.20.3
  • node.js version: 8.10.0
@miherlosev
Copy link
Collaborator

Execute some browser automation outside of a test fixture.

Could you please describe the scenario where it is necessary?

@HopefulLlama
Copy link
Author

I have used TestCafe before and like the simplicity in setup and API.

Hence I therefore wanted to use it to automate some forum activity. The testing part is not important to me in this case.

I could kludge it by having this code inside a test fixture, but it will always pass.

@miherlosev miherlosev added the TYPE: enhancement The accepted proposal for future implementation. label Jun 7, 2018
@azohra
Copy link

azohra commented Jul 9, 2018

This would also allow TestCafe to be easily adopted by teams who are currently using Selenium or another test framework such as Cucumber, Mocha, or Jest. Great request.

@pendenaor
Copy link

One use case in this repo, but this feature would greatly simplify it.

@HopefulLlama
Copy link
Author

Is there any progress on this request?

@AndreyBelym
Copy link
Contributor

We haven't made much progress in this direction. Different TestCafe subsystems like сompilers and browser connections are tightly coupled, so it will take a lot of time to separate the browser automation subsystem from other TestCafe code.
 
However, we would like to have this feature in TestCafe, so it will be nice if you make a PR.

@AndreyBelym AndreyBelym added STATE: Stale An outdated issue that will be automatically closed by the Stale bot. FREQUENCY: level 2 and removed STATE: Stale An outdated issue that will be automatically closed by the Stale bot. labels Oct 19, 2020
@miherlosev
Copy link
Collaborator

Hi folks,

Extracting the browser automation part from TestCafe would require numerous changes, and we do not see much interest in this among the community. This is why, we decided to not implement this feature. However, if someone creates a PR, we will review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FREQUENCY: level 2 TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

5 participants