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

Object Wrapper error inside support_code_loader.js:64:29 #54

Closed
kaustavsurai opened this issue Sep 12, 2016 · 6 comments
Closed

Object Wrapper error inside support_code_loader.js:64:29 #54

kaustavsurai opened this issue Sep 12, 2016 · 6 comments

Comments

@kaustavsurai
Copy link

I used config file as

//protractor.conf.js
exports.config = {
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
getPageTimeout: 60000,
allScriptsTimeout: 500000,
framework: 'custom',
// path relative to the current config file
frameworkPath: require.resolve('protractor-cucumber-framework'),
capabilities: {
'browserName': 'firefox'
},

// Spec patterns are relative to this directory.
specs: [
'features/*.feature'
],

baseURL: 'http://localhost:8080/',

cucumberOpts: {
require: 'features/step_definitions/my_step_definitions.js',
tags: false,
format: 'pretty',
profile: false,
'no-source': true
}
};

and Step defnition and feature files are also given below but while running getting above error. please let me know if you need any details

features/test.feature

Feature: Running Cucumber with Protractor
As a user of Protractor
I should be able to use Cucumber
In order to run my E2E tests

Scenario: Protractor and Cucumber Test
    Given I go to "https://angularjs.org/"
    When I add "Be Awesome" in the task field
    And I click the add button
    Then I should see my new task in the list

module.exports = function() {

this.Given(/^I go to ([^"]*)$/, function(site, callback) {
browser.get(site).then(callback);
});

@calendir
Copy link

Could you provide the entire stack trace, please?

Also, it seems like your step definition file got cut during pasting. Please paste it in full (and format it as code) or provide a link to somewhere we could take a look at it in full.

@kaustavsurai
Copy link
Author

Hello,

Please find the code base link given below:

https://drive.google.com/file/d/0B7rmR9NSjcYtYXJkRGlMclhMZTQ/view?usp=sharing
https://drive.google.com/file/d/0B7rmR9NSjcYtYXJkRGlMclhMZTQ/view?usp=sharing

Please let me know if you need any further details. I am getting below
error while running conf.js.

Thanks,
Kaustav

On Wed, Sep 14, 2016 at 2:33 PM, Oskar B notifications@github.com wrote:

Could you provide the entire stack trace, please?

Also, it seems like your step definition file got cut during pasting.
Please paste it in full (and format it as code) or provide a link to
somewhere we could take a look at it in full.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVIk2bcs_1yjoz3K5FdijdEk13iSsTH7ks5qp_e1gaJpZM4J7JrE
.

Thanks & Regards,
Kaustav Surai
9038856904

@calendir
Copy link

Well, looks like you forgot to close the curly brace in my_step_definitnions.js. It should look like this:

module.exports = function() {

  this.Given(/^I go to ([^"]*)$/, function(site, callback) {
    browser.get(site).then(callback);
  });

};

I'd suggest using an IDE supporting static code analysis or a standalone tool (like jshint), which should help you avoid making such errors.

@kaustavsurai
Copy link
Author

Thanks a lot. Sorry for the small mistake. I will try jshint.

On Thu, Sep 15, 2016 at 8:51 AM, Oskar B notifications@github.com wrote:

Well, looks like you forgot to close the curly brace in
my_step_definitnions.js. It should look like this:

module.exports = function() {

this.Given(/^I go to ([^"]*)$/, function(site, callback) {
browser.get(site).then(callback);
});

};

I'd suggest using an IDE supporting static code analysis or a standalone
tool (like jshint), which should help you avoid making such errors.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVIk2R7I_4-RvSEUVPppTG1OXn6SDTavks5qqPkIgaJpZM4J7JrE
.

Thanks & Regards,
Kaustav Surai
9038856904

@kaustavsurai
Copy link
Author

Hi Team,

I am trying to save report in preety/html format so that I can view report
in Jenkins plugin cucumber-reports. Also in faliure steps I need to save
the screenshots. I am unable to do that. Could you please advice on this.
It would be very helpful if you could send any steps or sample code for
this.

Thanks,
Kaustav
+447404908246

On Thu, Sep 15, 2016 at 8:00 PM, Kaustav Surai kaustav541@gmail.com wrote:

Thanks a lot. Sorry for the small mistake. I will try jshint.

On Thu, Sep 15, 2016 at 8:51 AM, Oskar B notifications@github.com wrote:

Well, looks like you forgot to close the curly brace in
my_step_definitnions.js. It should look like this:

module.exports = function() {

this.Given(/^I go to ([^"]*)$/, function(site, callback) {
browser.get(site).then(callback);
});

};

I'd suggest using an IDE supporting static code analysis or a standalone
tool (like jshint), which should help you avoid making such errors.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVIk2R7I_4-RvSEUVPppTG1OXn6SDTavks5qqPkIgaJpZM4J7JrE
.

Thanks & Regards,
Kaustav Surai
9038856904

Thanks & Regards,
Kaustav Surai
9038856904

@darrinholst
Copy link
Contributor

I'm not sure if there's an issue with this library here. Please post the error here if so (no links).

For the html format please see this issue

For screenshots this is what I use.

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

3 participants