Questions tagged [codeceptjs]

CodeceptJS is a modern end to end testing framework with a special BDD-style syntax. The test is written as a linear scenario of user's action on a site. The use of generator functions allows asynchronous tests to be written in synchronous way.

251 questions
0
votes
0 answers

How to switch to new window when using CodeceptJS

I am trying to create a test with CodeceptJS (using WebdriverIO helper) in which I first log in on site A and then open a new separate window, where I have to check that everything is good, but I don't know how to "SwitchToWindow". There are some…
Thomas
  • 77
  • 1
  • 5
0
votes
0 answers

Closing a cmd terminal opened from a powershell terminal?

Im currently using the CodeceptJs framework to write automated tests and selenium-standalone server to run them. Basically, I have a folder with a simple test. From a batch file, I run 'selenium-standalone start' to launch selenium and then…
0
votes
1 answer

Test running stucks in a progress CodeceptJS + Puppeteer

I'm using CodeceptJS + Puppeteer for my tests. I have created several scenarios, they work fine, but once I created another one with a button which has an AJAX request I faced with a problem that my tests stuck in a progress once API responds with…
Costa Rassco
  • 169
  • 11
0
votes
2 answers

codeceptjs running with protractor does not exit

When running my tests with CodeceptJS using the Protractor driver, the tests run successfully but the process does not exit, so I have to force-stop it everytime, and I also cannot run them on my CI server or it will always timeout. My…
Guillaume
  • 2,912
  • 3
  • 35
  • 59
0
votes
1 answer

SendPostRequest without a payload in Codeceptjs

I've been tinkering with codeceptjs and I wanna know if there is a way to do a sendPostRequest without a payload. Here's my sample: Scenario('Sample', async (I) => { var resp, args = { "TABLE_ID": 748, "STATUS" : 5 }; var reqHead = { …
DayIsGreen
  • 255
  • 1
  • 4
  • 16
0
votes
1 answer

Displaying response in Codeceptjs - API

I'm not sure if I'm supposed to ask this question somewhere else. That said, please excuse me if I'm using this site wrong. As for my question, is there a way on how to display the response of the API using codeceptjs? I've recently learned about…
DayIsGreen
  • 255
  • 1
  • 4
  • 16
0
votes
1 answer

Codeceptjs for API testing - Node.js

As mentioned in the title, I wish to use Codeceptjs to test an API. My issue is that, my system is able to receive the JSON that I'm sending as my request, however I don't think it knows what to run. My hunch is that it has something to do with the…
DayIsGreen
  • 255
  • 1
  • 4
  • 16
0
votes
1 answer

CodeceptJS/Puppeteer: Read an attribute value on the helper configuration at run time?

I would like to write conditional statements based on which environment the codeceptjs test code is run. The easiest way to identity the environment would be to read the URL value on the Puppeteer config in the codeceptjs.json file. How do I read…
0
votes
2 answers

How to use I.attachFile in codeceptjs/protractor?

I.attachFile('input[type=file]', 'test.txt'); I try attachFile function in codeceptjs/protractor. I getthis error. TypeError: driver.execute is not a function…
0
votes
1 answer

Pushing Test Names to Sauce Labs with CodeceptJS

I have been trying to get Sauce Labs to report the names of the tests that are being run with CodeceptJS, but so far I've only been able to report success/failure. I followed the following thread as a guide to help with reporting anything to Sauce…
AlbertoPL
  • 11,479
  • 5
  • 49
  • 73
0
votes
2 answers

CodeceptJS and Nightmare - set cookie before suite in helper class

I decided use framework CodeceptJS and library Nightmare. Mine issue is set cookie before run all test suite I read the documentation and understanding so for that to solve mine issue me need use helper classes. Maybe I'm wrong but still. Perhaps…
Mihail Kuznetsov
  • 323
  • 5
  • 22
0
votes
1 answer

Webdriver.io Scroll List

I use CodeceptJS with webdriver.io as helper to do e2e test for a website. There is a ul (unordered list) and I want to scroll down to this list. There is scroll bar and I used buttonDown and buttonUp methods on the scroll bar to perform but…
0
votes
1 answer

Errors on codeceptjs tests as - 'Statement Expected' , 'Epression Expected'

I have configured codeceptjs and while writing the first test I am getting some errors which I could not figure out, the code is as below. But the strange thing is it is executing perfectly. but i want to make sure why it is…
VonNet
  • 71
  • 1
  • 1
  • 13
0
votes
1 answer

Codeceptjs unirest helper

Framework - codeceptjs. I want to send api request to my aplication: I.sendPostRequest I.sendGetRequest etc. I install unirest library. What i must do next? How to write a helper for these functions?
0
votes
2 answers

How should multi-part Codecept.js scenarios be organized?

What is the preferred (or just a good) pattern for a multi-part Codecept.js scenario, such as this: Select file to upload. Clear selection. Select file to upload after having cleared selection. I can do this in a single scenario and use I.say to…
Dane
  • 1,201
  • 8
  • 17