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

Not recording test steps #50

Open
CTcore opened this issue Sep 15, 2017 · 6 comments
Open

Not recording test steps #50

CTcore opened this issue Sep 15, 2017 · 6 comments

Comments

@CTcore
Copy link

CTcore commented Sep 15, 2017

Steps followed.

1.Access http://localhost:3002/app
2.Enter a url base http://www.protractortest.org and click on 'Record' to start recording.

Here when i start recording nothing seems add to spec or conf file. Currently my conf file looks like this
image and my spec file looks like
image

Please advise how I can record the tests

@iamtheddrman
Copy link

I'm having the same problem. Advice on how to make this work would be greatly appreciated. I'm using Chrome 62, and I also get nothing in my spec file when recording and exercising my app via the Recorder-spawned Chrome instance.

@WernerWm
Copy link

I have the same problem. Nothing gets recorded and my protractor-recorder don't even start a Recorder-spawned Firefox instance or Chrome instance.

@maheswaranunni
Copy link

Same issue I am also facing.. Is there any resolution for this issue?

@mdaymond
Copy link

+1

1 similar comment
@yvesv
Copy link

yvesv commented Mar 28, 2018

+1

@rumberomelo
Copy link

I solve it with this code in server.js file:
var gulp = require('gulp'),
source = require('vinyl-source-stream');

gulp.task('express', function() {

....
// Update conf.js to run with protractor
// fs.writeFile(confFile, confOutput, function(err) {
// if (err) {
// res.status(500).send(err);
// console.log(err);
//}
//console.log('Conf.js saved successfully!');
//});

var stream = source('conf.js');

stream.end(confOutput);
stream.pipe(gulp.dest(exportsDirectory));

console.log('Conf.js saved successfully!');

....

// Update spec to run with protractor
//fs.writeFile(specFile, output, function(err) {
  //if (err) {
   // res.status(500).send(err);
    //console.log(err);
  //}
  //console.log('Spec.js saved successfully!');
  //var message = 'Files exported to ' + exportsDirectory;
  //console.log(message);
  //res.send(message);
//});

var stream = source('spec.js');

stream.end(output);
stream.pipe(gulp.dest(exportsDirectory));
var message = 'Files exported to ' + exportsDirectory;

console.log('Spec.js saved successfully!');
console.log(message);
res.send(message);

try it

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

7 participants