Advertisement
sarjona

Untitled

Feb 14th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.98 KB | None | 0 0
  1. 001 Scenario: Teacher can search and enrol one particular student # /home/sara/moodles/integration_master/moodle/enrol/manual/tests/behat/quickenrolment.feature:120
  2. When I set the field "Select users" to "student001" # /home/sara/moodles/integration_master/moodle/enrol/manual/tests/behat/quickenrolment.feature:123
  3. Exception: invalid argument: 'value' must be a string
  4. (Session info: chrome=80.0.3987.87)
  5. (Driver info: chromedriver=2.41.578700 (2f1ed5f9343c13f73144538f15c00b370eda6706),platform=Linux 4.15.0-76-generic x86_64) in /home/sara/moodles/integration_master/moodle/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:144
  6. Stack trace:
  7. #0 /home/sara/moodles/integration_master/moodle/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php(157): WebDriver\Exception::factory(14, 'invalid argumen...')
  8. #1 /home/sara/moodles/integration_master/moodle/vendor/instaclick/php-webdriver/lib/WebDriver/Container.php(66): WebDriver\AbstractWebDriver->curl('POST', '/element', Array)
  9. #2 /home/sara/moodles/integration_master/moodle/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php(974): WebDriver\Container->element('xpath', Object(WebDriver\Element))
  10. #3 /home/sara/moodles/integration_master/moodle/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php(711): Behat\Mink\Driver\Selenium2Driver->findElement(Object(WebDriver\Element))
  11. #4 /home/sara/moodles/integration_master/moodle/vendor/moodlehq/behat-extension/src/Moodle/BehatExtension/Driver/MoodleSelenium2Driver.php(230): Behat\Mink\Driver\Selenium2Driver->selectOption(Object(WebDriver\Element), 'student001')
  12. #5 /home/sara/moodles/integration_master/moodle/vendor/behat/mink/src/Element/NodeElement.php(105): Moodle\BehatExtension\Driver\MoodleSelenium2Driver->setValue('(//html/.//*\n[s...', 'student001')
  13. #6 /home/sara/moodles/integration_master/moodle/lib/behat/form_field/behat_form_autocomplete.php(66): Behat\Mink\Element\NodeElement->setValue('student001')
  14. #7 /home/sara/moodles/integration_master/moodle/lib/tests/behat/behat_forms.php(634): behat_form_autocomplete->set_value('student001')
  15. #8 /home/sara/moodles/integration_master/moodle/lib/tests/behat/behat_forms.php(221): behat_forms->set_field_value('Select users', 'student001')
  16. #9 [internal function]: behat_forms->i_set_the_field_to('Select users', 'student001')
  17. #10 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Call/Handler/RuntimeCallHandler.php(109): call_user_func_array(Array, Array)
  18. #11 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Call/Handler/RuntimeCallHandler.php(64): Behat\Testwork\Call\Handler\RuntimeCallHandler->executeCall(Object(Behat\Behat\Definition\Call\DefinitionCall))
  19. #12 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Call/CallCenter.php(140): Behat\Testwork\Call\Handler\RuntimeCallHandler->handleCall(Object(Behat\Behat\Definition\Call\DefinitionCall))
  20. #13 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Call/CallCenter.php(96): Behat\Testwork\Call\CallCenter->handleCall(Object(Behat\Behat\Definition\Call\DefinitionCall))
  21. #14 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeStepTester.php(125): Behat\Testwork\Call\CallCenter->makeCall(Object(Behat\Behat\Definition\Call\DefinitionCall))
  22. #15 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeStepTester.php(73): Behat\Behat\Tester\Runtime\RuntimeStepTester->testDefinition(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\StepNode), Object(Behat\Behat\Definition\SearchResult), false)
  23. #16 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Hook/Tester/HookableStepTester.php(74): Behat\Behat\Tester\Runtime\RuntimeStepTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\StepNode), false)
  24. #17 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/TickingStepTester.php(59): Behat\Behat\Hook\Tester\HookableStepTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\StepNode), false)
  25. #18 /home/sara/moodles/integration_master/moodle/vendor/moodlehq/behat-extension/src/Moodle/BehatExtension/EventDispatcher/Tester/ChainedStepTester.php(103): Behat\Behat\EventDispatcher\Tester\TickingStepTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\StepNode), false)
  26. #19 /home/sara/moodles/integration_master/moodle/vendor/moodlehq/behat-extension/src/Moodle/BehatExtension/EventDispatcher/Tester/MoodleEventDispatchingStepTester.php(88): Moodle\BehatExtension\EventDispatcher\Tester\ChainedStepTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\StepNode), false)
  27. #20 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Tester/StepContainerTester.php(59): Moodle\BehatExtension\EventDispatcher\Tester\MoodleEventDispatchingStepTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\StepNode), false)
  28. #21 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeScenarioTester.php(76): Behat\Behat\Tester\StepContainerTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\ScenarioNode), false)
  29. #22 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Hook/Tester/HookableScenarioTester.php(74): Behat\Behat\Tester\Runtime\RuntimeScenarioTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\ScenarioNode), false)
  30. #23 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/EventDispatchingScenarioTester.php(103): Behat\Behat\Hook\Tester\HookableScenarioTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\ScenarioNode), false)
  31. #24 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/IsolatingScenarioTester.php(69): Behat\Behat\EventDispatcher\Tester\EventDispatchingScenarioTester->test(Object(Behat\Behat\Context\Environment\InitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\ScenarioNode), false)
  32. #25 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeFeatureTester.php(84): Behat\Behat\Tester\Runtime\IsolatingScenarioTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), Object(Behat\Gherkin\Node\ScenarioNode), false)
  33. #26 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/Hook/Tester/HookableFeatureTester.php(72): Behat\Behat\Tester\Runtime\RuntimeFeatureTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), false)
  34. #27 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/EventDispatchingFeatureTester.php(71): Behat\Behat\Hook\Tester\HookableFeatureTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), false)
  35. #28 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeSuiteTester.php(63): Behat\Behat\EventDispatcher\Tester\EventDispatchingFeatureTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Gherkin\Node\FeatureNode), false)
  36. #29 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Hook/Tester/HookableSuiteTester.php(73): Behat\Testwork\Tester\Runtime\RuntimeSuiteTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Testwork\Specification\GroupedSpecificationIterator), false)
  37. #30 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingSuiteTester.php(72): Behat\Testwork\Hook\Tester\HookableSuiteTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Testwork\Specification\GroupedSpecificationIterator), false)
  38. #31 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeExercise.php(71): Behat\Testwork\EventDispatcher\Tester\EventDispatchingSuiteTester->test(Object(Behat\Behat\Context\Environment\UninitializedContextEnvironment), Object(Behat\Testwork\Specification\GroupedSpecificationIterator), false)
  39. #32 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingExercise.php(70): Behat\Testwork\Tester\Runtime\RuntimeExercise->test(Array, false)
  40. #33 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Ordering/OrderedExercise.php(80): Behat\Testwork\EventDispatcher\Tester\EventDispatchingExercise->test(Array, false)
  41. #34 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php(149): Behat\Testwork\Ordering\OrderedExercise->test(Array, false)
  42. #35 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php(108): Behat\Testwork\Tester\Cli\ExerciseController->testSpecifications(Object(Symfony\Component\Console\Input\ArgvInput), Array)
  43. #36 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Cli/Command.php(63): Behat\Testwork\Tester\Cli\ExerciseController->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  44. #37 /home/sara/moodles/integration_master/moodle/vendor/symfony/console/Command/Command.php(240): Behat\Testwork\Cli\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  45. #38 /home/sara/moodles/integration_master/moodle/vendor/symfony/console/Application.php(858): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  46. #39 /home/sara/moodles/integration_master/moodle/vendor/symfony/console/Application.php(215): Symfony\Component\Console\Application->doRunCommand(Object(Behat\Testwork\Cli\Command), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  47. #40 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php(124): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  48. #41 /home/sara/moodles/integration_master/moodle/vendor/symfony/console/Application.php(122): Behat\Testwork\Cli\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  49. #42 /home/sara/moodles/integration_master/moodle/vendor/behat/behat/bin/behat(34): Symfony\Component\Console\Application->run()
  50. #43 {main}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement