angular .module('abc') .factory('dashboard', dashboard); function dashboard($http, notifier) { var service = { getAllMasterJobsNames: getAllMasterJobsNames }; return service; function getAllMasterJobsNames(request) { return $http.post('/JSONServices/JSONCampusManagementService.svc/GetAllMasterJobsNames', request).then( function (response) { if (angular.isUndefined(response.data) || (angular.isDefined(response.data.IsException) && response.data .IsException)) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); } return response; }, function (response) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); return response; }); } } })(); service.js 'use strict'; describe('dashboardService', function () { var dashboardService; beforeEach(module('abc')); beforeEach(inject(function (_dashboard_) { dashboardService = _dashboard_; })); it('getAllMasterJobsNames method should defined and should return promise', function () { expect(dashboard.getAllMasterJobsNames).toBeTruthy(); expect(dashboard.getAllMasterJobsNames.name).toEqual('getAllMasterJobsNames'); expect(dashboard.getAllMasterJobsNames(0)).toEqual({$$state:{status:0}}); }); }); any one …

Member Avatar
+0 forum 0

HI, I am writing unit test cases for silver light view model. When i am trying to mock edmx context, i am getting errors as in the screen shot. Please suggest how to solve the issue. ![9559cdb1d93cc91198a358bac62eeca5](/attachments/large/2/9559cdb1d93cc91198a358bac62eeca5.png "9559cdb1d93cc91198a358bac62eeca5") Thanks kvk

Member Avatar
+0 forum 0

hi I am interested to make a website wherein student can answer queries in MCQ format--- The requirements go like this 1. Bank PO EXAM 2. EXAM HAS 4 MODULES 3. EACH MODULE HAS MIN. 2-4 SUB-MODULES Ex English Module has 4 sub- modules.Each of them requires a different set of display. 4. ALLOW TO LOGIN,TAKE TEST posted in theri Homepage,evaluate their results Measure thier percentile system vis-a vis toal no. of test takers offer product line Parag 9819001074 **Bold Text Here**

Member Avatar
+0 forum 0

Hi, I want to perform a load test on my site... i want to test the loading speed of my site with 500 - 1000 users on it at a time... Is there any online tool or software (Free or purchased, doesn't matter) which allows me to perform the test ?

Member Avatar
+0 forum 0

[CODE]if(isset($_POST['listingType'])) { ini_set('magic_quotes_gpc', false); // magic quotes will only confuse things like escaping apostrophe //Get the item entered $listingType = $_POST['listingType']; $primaryCategory = $_POST['primaryCategory']; $itemTitle = $_POST['itemTitle']; if(get_magic_quotes_gpc()) { // print "stripslashes!!! <br>\n"; $itemDescription = stripslashes($_POST['itemDescription']); } else { $itemDescription = $_POST['itemDescription']; } $itemDescription = $_POST['itemDescription']; $listingDuration = $_POST['listingDuration']; $startPrice = $_POST['startPrice']; $buyItNowPrice = $_POST['buyItNowPrice']; $quantity = $_POST['quantity']; if ($listingType == 'StoresFixedPrice') { $buyItNowPrice = 0.0; // don't have BuyItNow for SIF $listingDuration = 'GTC'; } if ($listingType == 'Dutch') { $buyItNowPrice = 0.0; // don't have BuyItNow for Dutch } //SiteID must also be set in the Request's XML …

Member Avatar
+0 forum 0

I got it to run but for some reason they incorrectly implemented the "chown" call. Here are some examples of how it is implemented in their test scripts: chown ${n0} 123 456 (where path is first) -u 65534 -g 65532,65531 -- chown ${n0} -1 65532 (where options are set before the actual call) (found from chown test script 00) I just don't get it. Originally I thought the test script would parse everything and set up the call properly after reading in the test line. However, when running the suite, every single chown test fails. I seem to be the …

Member Avatar
+0 forum 0

Hi, apologies if this isn't the correct thread for this question! I'm running some web tests on a couple of sites, simple stuff to gauge average page load times etc. However the internet provided here is through a cache and makes the test fail in most cases because the test browser is not configured correctly. Is there any way to edit the lan settings of the browser within visual studio? Many thanks

Member Avatar
+0 forum 0

Hi My dell inspiron laptop has gone loopy,keeps restarting and no access to safe mode(f8) I wanted to test the hard drive of the dell laptop using an old tecra 8100 wont recongnise hard drive from dell laptop but does recongnise old wd external hard disk. The hard drive is spinning and passed the dell diagnostic test Any ideas

Member Avatar
+0 forum 0

Hi all, ive got a bit of an annoying problem regarding JUnit 4.5. I've created a bunch of unit tests which work properly when I right click the class and press 'Test' (in Netbeans). However, when I right click the whole project and press 'Test', i get a ClassNotFoundException. I checked the classpaths of the classes and the jar file of JUnit is added in all of them :/ This problem all started when I changed the directory for my tests' location - but it doesnt make any sense to me as they work when tested individually! Any suggestions? Thanks

Member Avatar
+0 forum 0

Could somebody please help me to add a function to this script in which the image to test if the server is up has a timeout, so it shows an error message to the user instead of just loading forever. The current function of the code is: Attempt to load the image, Show the user the webcam on success, on failiure it says the webcam is offline (but uses a timeout set by the browser I think or just a default timeout which takes ages) Show an alert box after 3 minutes that the user has to close to continue …

Member Avatar
+0 forum 0

Hi, For .NET developers who uses unit tests to test their code, are you suffering from regression (i.e., unit tests which fails on a regular basis)? If so, how do you face these issues? Regular debug sessions to find the problem each time a test is being failed? Some other, maybe more sophisticated approaches? I would like to hear your opinion about the following solution which can find the code changes which caused a certain unit test to fail: [URL="http://www.wisetester.com/"]Unit Testing Tool[/URL] For those of you who do suffer from regression in unit tests: 1. Would you try it if …

Member Avatar
+0 forum 0

When I finally got the input to work in this code it stopped displaying the txt on the screen. Any suggestions on how to fix this. [code]import pygame, sys from pygame.locals import * import time mo = 0 # set up pygame pygame.init() # set up the window windowSurface = pygame.display.set_mode((500, 400), 0, 32) pygame.display.set_caption('Test') # set up the colors BLACK = (0, 0, 0) WHITE = (255, 255, 255) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) # set up fonts basicFont = pygame.font.SysFont(None, 48) # draw the black background onto the …

Member Avatar
+0 forum 0

Hello, I have a class named Time and when I run it I can enter the time, increase the hours and minutes, the minutes and hours will stored in their fields. I have another class called TimeTest, when this class is running, it needs to display the test results of my Time class, test results are basically what time I entered and what time it is. I need to return the results on terminal. Like the time is etc Time was increased x timees I used ++ increment on hours and minutes when increasing Here is my time class code …

Member Avatar
-1 forum 0

The End.