Contributions
Cant see details of previous test runs in CucumberStudio
Hi, When I enter in test runs / execution history, I only see the summary tool-tip when I hover on a previous run: Clicking on the previous test run doesn't do anything....how to enter to see the details of the previous test run? ThanksSolved4 years agoPlace CucumberStudioCucumberStudio3.1KViews0likes1CommentProblems automating tests with Javascript/Mocha/chai-http
Anybody have experience integrating CucumberStudio with JavaScript/Mocha framework? I’m trying to integrate existing chai-http tests, and having problems with the fact that the chai calls are asynchronous. The original chai call looks something like this… // When chai.request(restServiceUrl) .post(quoteEndPoint) .send() .end((err, res) => { // Then expect(res).to.have.status(HttpStatus.OK); } I’ve created a Cucumber Studio scenario with a When action for the http post, and a Then action for the status check. Thus I have 2 Actionwords methods generated by hiptest-publisher – in the When method I make the http request and save the status in a global variable, in the Then method I verify the status. whenActionWord: function () { chai.request(restServiceUrl) .post(quoteEndPoint) .send() .end((err, res) => { responseStatus = res.status; //global variable } } thenActionWord: function () { expect(responseStatus).to.be.equal(HttpStatus.OK); } The problem is the chai calls are asynchronous, so thenActionWord() is called before whenActionword() has completed (status is not saved) and the assertion fails. I have searched online for possible solution (TBH I’m new to Javascript/Mocha), and tried using done() and await() but without success so far … Anybody come across this problem and can point me a solution?Solved4 years agoPlace CucumberStudioCucumberStudio3.1KViews0likes1Comment- 3KViews1like0Comments
Re: TestComplete and ReactJS
Hi Alex-FCAL, Did you finally use TestComplete for your React Apps? I'm currently evaluating TC as a possible automation tool for our react apps, and I'd be interested to hear your experience. One thing I see already during my evaluation is that any graphs, charts etc in the app (and our apps have lots of these) are not recognised as any special type of object in TC. Only a node with ObjectType SVG for the image. I mean, its not like there is some sort of e.g. bar chart object like I see for button or text box controls. I'm guessing this is due to how React works rather than a deficiency in TC (would be nice to have this confirmed). I guess this means the only way to verify these components is by image checkpoints, which makes me somewhat nervous regarding long-term maintainability of test suites. Regards, Paul3.1KViews0likes2Comments