rushcut | 23 Jul 18:19 2014
Picon

[Cucumber] [JVM] cucumber.api.scala.KO is not works.

Hi.

I cannot solve this problem.

I have tested other unicode language like JA, CN.It is fine.
But, Korean(KO) language is not works.

- cucumber-jvm 1.8.1, 1.0.1 both not works.
- java 1.7
- Mac OS X Mavericks
- Scala 2.10.0

import cucumber.api.scala.{ScalaDsl, KO}

class TestSteps extends ScalaDsl with KO {
 만약("""^Language Test$"""){ () =>
 }
}

[error] /Users/rushcut/code/java/Project/test/features/step_definitions/TestSteps.scala:6: not found: value 만약
[error]   만약("""^Language Test$"""){ () =>
[error]   ^
[error] one error found
[error] (test:compile) Compilation failed
[error] Total time: 0 s, completed Jul 23, 2014 11:15:37 PM
[INFO] Unable to bind key for unsupported operation: possible-filename-completions
[INFO] Unable to bind key for unsupported operation: complete-filename
여기에 코드 입력...


--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Matt Wynne | 23 Jul 18:38 2014
Picon

[Cucumber] Re: "Scenario Outline" for cucumber clojure?

Hi,

I don’t know personally, but I would ask the Cukes Google Group.

On 23 Jul 2014, at 10:30, Wenxuan Zhou <soudazhou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi Matt, 

I am Wen and I am working on a clojure project which I would love to use cucumber test, I wonder if "Scenario Outline"  features has been implemented for clojure as I can't find a tutorial which does that properly, thanks.

Regards,
Wenxuan



Biswajit Samal | 22 Jul 14:04 2014
Picon

[Cucumber] What could be the possible reason for getting error like "Error parsing feature file"

Respected All,

I am trying to create a sample cucumber project for my practice with selenium + Junit, but failing to run it properly. Getting below  error:
I want to know under under which scenario these error comes and how to avoid such cases?

 "cucumber.runtime.CucumberException: Error parsing feature file samplecucumber/test/fundtransfer.feature
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:133)
at cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(CucumberFeature.java:93)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:54)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:34)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:151)
at cucumber.api.junit.Cucumber.<init>(Cucumber.java:63)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: gherkin.lexer.LexingError: Lexing error on line 12: 'transferred successfully to Jim!!" message

Scenario: Invalid Payee
Given the user is on Fund Transfer Page
When he enters "Jack" as payee name
And he enters "100" as amount
And he Submits request for Fund Transfer
Then ensure a transaction failure message "Transfer
failed!! 'Jack' is not registered in your List of Payees"
is displayed

Scenario: Account is overdrawn past the overdraft limit
Given the user is on Fund Transfer Page
When he enters "Tim" as payee name
And he enters "1000000" as amount
And he Submits request for Fund Transfer
Then ensure a transaction failure message "Transfer
failed!! account cannot be overdrawn" is displayed
%_FEATURE_END_%'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.
at gherkin.lexer.En.scan(En.java:872)
at gherkin.lexer.I18nLexer.scan(I18nLexer.java:36)
at gherkin.parser.Parser.parse(Parser.java:62)
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:131)
... 23 more

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Gangel Dávid | 21 Jul 16:10 2014
Picon

[Cucumber] [JVM] Is there a way to run a scenario multiple times without using Outline?

Hi,

I have the following example:

Scenario: Clicking through the language filters and checking the results and removing the language filter by the x
Given I keep the number of books on the search result page
When I click one by one through the list of the "LANGUAGE" filter
Then I should see less books then the original number that I kept
And I should see the item of the "LANGUAGE" filter as "ACTIVATED"
But I do not see anymore the other items of the "LANGUAGE" filter
And when I click on random book
Then I should see the "LANGUAGE" property has the selected item on the Book details page
When I am navigating back with the browsers back button
Then I should see the same amount of books as previous
And I should see the item of the "LANGUAGE" filter as "ACTIVATED"
But I do not see anymore the other items of the "LANGUAGE" filter
Then I refresh the page with the browsers button
Then I should see the same amount of books as previous
And I should see the item of the "LANGUAGE" filter as "ACTIVATED"
But I do not see anymore the other items of the "LANGUAGE" filter
Then I remove the item of the "LANGUAGE" filter from the activated filters
Then I should see the same amount of books as the first time without any filter

Are there any way that I could force cucumber to execute this scenario in multiple times?

The main reason for this is that the data what the scenario is using is a dynamic one.

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Adethya Sudarsanan | 21 Jul 14:28 2014
Picon

[Cucumber] Working with Databases using Cucumber & Calabash

Hello All,

I am trying to use Calabash with Cucumber & Ruby. I am a newbie!

I have written a suite of 10 features that will navigate through my iOS application (native banking application) and I have to run them on a regular basis and validate against details present in a database. The values in the database can be either, prior to the execution, can be fetched from the database and written to an excel sheet, which can be referred during automation to validate the values or I could do the validation at runtime with values on the application with those from the database. Either of the approach is fine - which ever is quick and recommended can be implemented.

For now, I am maintaining a table in my features file, into which I am manually entering the expected value and validating it at run time. But I want to do the validations against values that are in the DB, rather than against values that I provide. I have been trying to find a solution that would satisfy my requirement, but I have not found any so far.

It would be really great if someone can pass on their knowledge on what I require.

I look forward to hearing from you guys.

Best,
Adethya S

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Austin Wilson | 18 Jul 23:34 2014
Picon

[Cucumber] [JVM] can not link feature file to groovy test steps getting null pointer


I am starting to go insane so please help!!!
I have been tying for 2 days to get Cucumber and Groovy to work. I attached a snippet of my file structure because I think it might be contributing to the problem. I am new to eclipse and I don't quite get the whole package thing.

Anyways, I took a working selendroid test and attempted to split it up into cucumber code for a demo. Problem is as soon as it hits the Given I get a null pointer as follows:

Caught: java.lang.NullPointerException
java.lang.NullPointerException
    at cucumber.api.groovy.EN.Given(EN.java:27)
    at cucumber.api.groovy.EN$Given.callStatic(Unknown Source)
    at groovytest.GroovyTestCase.run(GroovyTestCase.groovy:61)

Which makes me think it can't find the Feature command for the given but I am not 100%


So here is my test steps:

    SelendroidCapabilities caps = new SelendroidCapabilities()
    caps.setAut("io.selendroid.testapp:0.10.0")
    caps.setEmulator(true)


    Given(~"The app is open") {->
  
    driver = new SelendroidDriver("http://localhost:4444/wd/hub", caps)
    driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS)
    }
   
    When(~"I insert Selendroid into the text field"){ WebElement inputField = driver.findElement(By.id("my_text_field"))->
    inputField.sendKeys("Selendroid")
    }
   
    Then(~"the Selendroid should be displayed") {->
    Assert.assertEquals("Selendroid", inputField.getText())
    }
   
    When(~" click the waiting button I am taken to the new user registration") { ->
    driver.findElement(By.id("waitingButtonTest")).click()
    }
   
    Then(~'^I see text saying Welcome to registration a new User$') {->
        driver.getPageSource().contains("Welcome to registration a new User")
    }




And Here is what my feature file would look like:

Feature: Create new user on Selendroid test app

  Scenario: After clicking wait dialog a user should be able to enter required fields and hit enter to see all information
    Given The app is open
    When I insert Selendroid into the text field
    Then the Selendroid should be displayed
    When I click the waiting button I am taken to the new user registration
    Then I see text saying Welcome to registration a new User


I have tried to play with the regular expressions every which way so I don't think it is that... Also I have tried multiple file structures for  online without any improvement

Other information which my be of use is I am using the most up to date plugin from http://cucumber.github.com/cucumber-eclipse/update-site
With the cucumber-groovy-1.1.5 jar

Please let me know if you need more information and any help or ideas would be greatly appreciated.

Thanks,
Austin











--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Mark Denford | 18 Jul 15:52 2014

[Cucumber] [JS] New intro-level tutorial: Cucumber.js and BDD

Hi Everyone,

I've put together a repo and corresponding tutorial which I used as I was learning about cucumber.js.

https://github.com/denford/TuteCumberan intro-level Cucumber.js Tutorial and example project which uses Cucumber.js (obviously) in a Node.js environment and explores BDD in general.

I'm relatively new to this so happy to take any feedback, corrections, omissions etc.

Cheers,

Mark

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Félix Álvarez | 17 Jul 14:09 2014
Picon

[Cucumber] [JVM] Rejected post ??

Hello.
I post at 12 am (Central European Summer Time), 1 hour ago. I was rejected? and if was, why?


Thanks!

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Christian | 17 Jul 14:34 2014
Picon

[Cucumber] [cucumber-jvm] run several feature files (and use several step definitions) via command line?

Hi,

Is it possible to run
  • all scenarios in a given feature file
  • all feature files in a folder (and its sub-folders)
  • two out of many features in the same folder
  • all features in a package (and sub-packages)
from command line?

The readme mentions several features, but doesn't give examples:
https://github.com/cucumber/cucumber-java-skeleton#run-a-subset-of-features-or-scenarios

Would they be space separated?
-Dcucumber.options="classpath:skeleton/belly.feature classpath:skeleton/head.feature --format pretty"
Does the same hold true for the Java stepdefs/glue code? How do you add several stepdefs in? Do you use several times the --glue option? Or is it done differently?
-Dcucumber.options="classpath:skeleton/belly.feature classpath:skeleton/head.feature --format pretty --glue my/path/steps1.java --glue another/path/steps.java"

Brgrds,
Christian

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Biswajit Samal | 15 Jul 14:43 2014
Picon

[Cucumber] How to solve the error" json:target\cucumber-report.json"

Respected All

I am new to this cucumber world, I want to run a script with TestNg +Selenium but I am facing a problem , the error is keep coming on screen . I followed the Maven structure still I could not able to figure it out. I followed all the resource material avail in net but sorry I could not ..

The error is:- 

 T E S T S
-------------------------------------------------------
Running fundtransfer.test.RunCukesTest
Configuring TestNG with: TestNG652Configurator
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.62 sec <<< FAILURE! - in fundtransfer.test.RunCukesTest
run_cukes(fundtransfer.test.RunCukesTest)  Time elapsed: 1.788 sec  <<< FAILURE!
java.lang.IllegalArgumentException: Not a file or directory: C:\Users\Biswajit\workspaceNew\FundTransfer\json:target\cucumber-report.json
at cucumber.runtime.io.FileResourceIterator$FileIterator.<init>(FileResourceIterator.java:54)
at cucumber.runtime.io.FileResourceIterator.<init>(FileResourceIterator.java:20)
at cucumber.runtime.io.FileResourceIterable.iterator(FileResourceIterable.java:19)
at cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(CucumberFeature.java:92)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:54)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:34)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:151)
at cucumber.runtime.Runtime.run(Runtime.java:107)
at cucumber.api.testng.TestNGCucumberRunner.runCukes(TestNGCucumberRunner.java:44)
at cucumber.api.testng.AbstractTestNGCucumberTests.run_cukes(AbstractTestNGCucumberTests.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200)
at cucumber.api.testng.AbstractTestNGCucumberTests.run(AbstractTestNGCucumberTests.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
at org.testng.SuiteRunner.run(SuiteRunner.java:254)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:112)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)


Results :

Failed tests: 
  RunCukesTest>AbstractTestNGCucumberTests.run:19->AbstractTestNGCucumberTests.run_cukes:14 » IllegalArgument

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.820s
[INFO] Finished at: Tue Jul 15 18:02:22 IST 2014
[INFO] Final Memory: 10M/134M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project FundTransfer: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\Users\Biswajit\workspaceNew\FundTransfer\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


Please help me..

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Avinash Kasipathy | 14 Jul 21:16 2014
Picon

[Cucumber] Questions ON Cucumber Tool

I am pretty  new to this Cucumber tool  - as I  am trying to know how it fits out needs.

Can any one help me out ? 

I have bunch of questions and trying to figure whether can we achieve any of the following tasks : 

1)  Can we run the tests in Collections ? ( Group of test scripts together == Collections ) 


2)  Can we kick of the tests  / trigger the tests -  or schedule the tests -  ? 

3)  Can we run the tests on a Server – remotely , locally & on Cloud ?


4) Can the tests be structured to be dependent on each other ? ( For example – There are two tests ( Test A & Test B ). If I want Test B to be executed only if Test A is passed. Can we achieve this kind of dependencies ) 

5)  Does Cucumber has a reporting ability  - in build ( Generating any hTML reports  on tests execution ?) 
           6)   Can I use Cucumber tool  for Cross Browser Testing ?  - If so – how can I do ?  - can it support IE / Firefox / Chrome / Safari / Mobile browsers 
        
           7)   Can I use Cucumber for testing Mobile Applications  ? If so – how can I do ?
 
             8)    Can I use Cucumber for test ing API Testing  ? If so – how can I do  ?  Such as REST API , SOUP API ?
            
             9)    What all Native development languages does it support  ? If so - how can I do  - Such as   C# , Java , Python , Ruby , Perl  ?
     
           10)    Can Cucumber support Version Control Support  ?  -   * TFS , GIT  or does it support any other Version control support  ?

           11)    Can Cucumber support any defect tracking tools or Build tracking tools  ?    - *  Jenkins / Ant  or TeamCity or any other tools  ?

           12)    Can Cucumber run test scripts  from Command line   ?  Or do we have any web interface to run the tests  ?
 
           13)    Can cucumber tool  generate any form of  log files on execution of test scripts ?

 

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane