Questions tagged [jasmine-node]

Integration of Jasmine Spec framework with Node.js

327 questions
0
votes
1 answer

Protractor element by Xpath Index

I am trying to get xpath by index and i am not making an progress. protractor says "that the element has more than one element is found for locator choosing the 1st one". however I want to make sure that the 1st one is selected intentionally screen…
Jonathan
  • 395
  • 2
  • 8
  • 25
0
votes
2 answers

Protractor hard to click popup/dropdown

Hey guys I am trying to click on an element called practitioner access on my company's web site and I have tried looking up documentation on stack over flow and have not figured out how to do this exactly I need help. What I am trying to do is click…
Jonathan
  • 395
  • 2
  • 8
  • 25
0
votes
1 answer

Typescript import statements not working in a Docker container

I have a project written in Typescript which uses jasmine-ts to run a series of tests. I need to create a Docker container to run the tests for a few reasons. Whilst the project locally runs OK npm test: c:\github\gareththegeek\corewar>npm test >…
dougajmcdonald
  • 19,231
  • 12
  • 56
  • 89
0
votes
1 answer

Jasmine - Multiple it's, one asynchronous call

Scenario I'm trying to do multiple it specs on a single external load rather than have the external data loaded EVERY time. Question How can I do this with a single call of getExternalValue while still keeping my it definitions? Ideas Currently I'm…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
0
votes
1 answer

Debugging vanilla jasmine for a node.js application in VSCode

I'm trying to run Jasmine specs on a Node.JS API using Visual Studio code. However, when I run under debug (using F5), I get no output, aside from console output which tells me it runs to some degree. If I use ctrl+F5, it runs the specs, but I of…
Craig Brett
  • 2,295
  • 1
  • 22
  • 27
0
votes
1 answer

How to report posted payment is completed or skipped or failed in protractor

As my application has a payment status that changes every time based on settings, i wanted to publish in a report that for this test cases payment made is completed. Here is the code-
Smitha
  • 27
  • 6
0
votes
0 answers

File upload successfully but with 0 size bytes

I'm able to upload file using below code var fileToUpload = 'tt.jpg'; var absolutePath = path.resolve(__dirname, fileToUpload); var FileDetector = require('selenium-webdriver/remote/index.js').FileDetector; …
Hoks Vishu
  • 63
  • 4
0
votes
1 answer

jasmine-node not going inside it block

var jasmine = require('jasmine-node'); describe('Report Comparison ', function () { it('test case', function () { console.log('Inside It'); expect("1").toBe(1); }); }); I have this simple testcase for trial. But while…
Shashank Degloorkar
  • 3,151
  • 4
  • 32
  • 50
0
votes
0 answers

How to declare the tests in different groups using plugins called jasmine-group or karma-jasmine-group

Does anybody succeeded with using jasmine-group plugin for grouping jasmine tests and executing only certain group of tests I have tried with this plug-in which is not executable after all the configurations according to the instructions
naveen
  • 21
  • 2
0
votes
3 answers

TypeError: Cannot read property 'getRow' of undefined

Tried with cellValue= worksheet.getRow(1).getCell(1).value; and cellValue=console.log(worksheet.getCell('A1')) please find below my code : cellread2=function(){ var Excel; var filePath = path.resolve(__dirname,'E:/excel.xlsx'); …
Prashant P
  • 15
  • 1
  • 6
0
votes
1 answer

how to get total specs count and pass and fail specs count in jasmine 2 and protractor

I want to generate the emailable report after my test suite gets completed using Jasmine and protractor. How can I get the following information after my test suite is completed. 1.Total no of spec count 2.Total pass spec count 3.Total Failed test…
0
votes
0 answers

My callback is not being called

Here I'm trying to test my api but the callback function is not being called during the execution and return with no failures all the time. const express = require('express') const app = express(); const nconf = require('nconf'); const request =…
Kamalnrf
  • 342
  • 4
  • 15
0
votes
1 answer

jasmine-node failing a passing test, with npm error code ELIFECYCLE

Short story, running my jasmine-node tests fails an assertion of equality on identical arrays, then gives a NPM error ELIFECYCLE. This is occurring on a couple of tests, but at the moment I’ve only got one running. Here’s the module;…
thomas
  • 23
  • 5
0
votes
2 answers

How to count the number of rows in Protractor Jasmine which doesn't have an id?

Since I just started exploring protractor, I have zero knowledge on how to count the number of rows in protractor. Could anyone please help me find it? After Logging in to a page, I am supposed to match the number of rows. Everything I tried gives…
0
votes
1 answer

Jasmine-node assertions within promises not shown

The below code all functions correctly with the exception of the assertion. When the test is run Jasmine reports 0 assertions. How can I keep my assertions within the promises and have them be recognized? it("should open save NTP server modal",…