This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tests["Status code is 200"] = responseCode.code === 200; | |
| // getting CSRF token value from responseBody and stored in global variable | |
| var data = JSON.parse(responseBody); | |
| console.info("CSRF Token Value = " + data.CSRFToken); | |
| postman.setGlobalVariable("csrftoken", data.CSRFToken); | |
| // getting QSESSIONID value from Cookie and stored in global variable | |
| var qsessionidValue = postman.getResponseCookie("QSESSIONID").value | |
| console.log(qsessionidValue); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| "use strict"; | |
| grunt.initConfig({ | |
| // Wipe out previous builds and test reporting. | |
| clean: ["dist/", "test/reports"], | |
| // Run your source code through JSHint's defaults. | |
| jshint: { | |
| options: { | |
| laxcomma: true, | |
| '-W086': true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title> Confusing string/number using JavaScript</title> | |
| <h1 align="center"><u> Confusing string/number with parseInt() Using JavaScript</u></h1> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "firstName": "Sivaprabu", | |
| "lastName": "Ganesan", | |
| "userName": "gsivaprabu", | |
| "password": "gsivaprabu", | |
| "age": 32, | |
| "address": { | |
| "streetAddress": "Kamaraj Nagar", | |
| "city": "Namakkal", | |
| "state": "Tamil Nadu", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title> Remove [ and ] in ipv6 address using JavaScript</title> | |
| <h1 align="center"><u> Remove [ and ] in ipv6 address using JavaScript</u></h1> | |
| <script> | |
| var ipv6 = '[2001:0db8:0000:0000:0000:ff00:0042:8329]'; | |
| // var ipv6 = '10.0.124.75'; | |
| ipv6 = ipv6.replace(/[\]\[]/g, ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Closure concept in JavaScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Broadcasting</title> | |
| <script src="js/angular.min.js"></script> | |
| <script> | |
| var app = angular.module('app', []); | |
| app.controller("firstCtrl", function ($scope) { | |
| $scope.handleClick = function (msg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Debugger in JavaScript</title> | |
| <h1 align="center"><u>Debugger in JavaScript</u></h1> | |
| <script> | |
| function testingPurpose() { | |
| debugger; | |
| console.log('debugger'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Debugger in JavaScript</title> | |
| <h1 align="center"><u>Debugger in JavaScript</u></h1> | |
| <script> | |
| function testingPurpose() { | |
| debugger; | |
| console.log('debugger'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Start output buffering, this will | |
| // catch all content so that we can | |
| // do some calculations | |
| ob_start(); | |
| // Some example HTML | |
| print '<html>'; |