diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..91b2d05
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,19 @@
+FROM node:10
+
+# Create app directory
+WORKDIR /var/lib/jenkins/workspace/VFS-MultiEnv/app
+
+# Install app dependencies
+# A wildcard is used to ensure both package.json AND package-lock.json are copied
+# where available (npm@5+)
+COPY package.json ./
+
+RUN npm install
+# If you are building your code for production
+# RUN npm ci --only=production
+
+# Bundle app source
+COPY . .
+
+EXPOSE 8080
+CMD [ "node", "Sample.js" ]
diff --git a/geckodriver-v0.26.0-win32.zip b/geckodriver-v0.26.0-win32.zip
new file mode 100644
index 0000000..e8746fe
Binary files /dev/null and b/geckodriver-v0.26.0-win32.zip differ
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..20fbca2
--- /dev/null
+++ b/index.js
@@ -0,0 +1,74 @@
+/*
+ LambdaTest selenium automation sample example
+ Configuration
+ ----------
+ username: Username can be found at automation dashboard
+ accessToken: AccessToken can be generated from automation dashboard or profile section
+
+ Result
+ -------
+ Execute NodeJS Automation Tests on LambdaTest Distributed Selenium Grid
+*/
+const webdriver = require('selenium-webdriver');
+
+/*
+ Setup remote driver
+ Params
+ ----------
+ platform : Supported platform - (Windows 10, Windows 8.1, Windows 8, Windows 7, macOS High Sierra, macOS Sierra, OS X El Capitan, OS X Yosemite, OS X Mavericks)
+ browserName : Supported platform - (chrome, firefox, Internet Explorer, MicrosoftEdge, Safari)
+ version : Supported list of version can be found at https://www.lambdatest.com/capabilities-generator/
+*/
+
+// username: Username can be found at automation dashboard
+const USERNAME = 'ajaykorni';
+
+// AccessKey: AccessKey can be generated from automation dashboard or profile section
+const KEY = 'ajaykorni';
+
+// gridUrl: gridUrl can be found at automation dashboard
+const GRID_HOST = 'facebook.com';
+
+function searchTextOnGoogle() {
+
+ // Setup Input capabilities
+ const capabilities = {
+ platform: 'ubuntu',
+ browserName: 'chrome',
+ version: '67.0',
+ resolution: '1280x800',
+ network: true,
+ visual: true,
+ console: true,
+ video: true,
+ name: 'Test 1', // name of the test
+ build: 'NodeJS build' // name of the build
+ }
+
+ // URL: https://{username}:{accessToken}@beta-hub.lambdatest.com/wd/hub
+ const gridUrl = 'https://' + USERNAME + ':' + KEY + '@' + GRID_HOST;
+
+ // setup and build selenium driver object
+ const driver = new webdriver.Builder()
+ .usingServer(gridUrl)
+ .withCapabilities(capabilities)
+ .build();
+
+ // navigate to a url, search for a text and get title of page
+ driver.get('https://www.google.com/ncr').then(function() {
+ driver.findElement(webdriver.By.name('q')).sendKeys('LambdaTest\n').then(function() {
+ driver.getTitle().then(function(title) {
+ setTimeout(function() {
+ console.log(title);
+ driver.executeScript('lambda-status=passed');
+ driver.quit();
+ }, 5000);
+ });
+ });
+ }).catch(function(err){
+ console.log("test failed with reason "+err)
+ driver.executeScript('lambda-status=failed');
+ driver.quit();
+ });
+}
+searchTextOnGoogle();
diff --git a/openmrs/DEV.xml b/openmrs/DEV.xml
deleted file mode 100644
index 8898b01..0000000
--- a/openmrs/DEV.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/openmrs/IEDriverServer.exe b/openmrs/IEDriverServer.exe
deleted file mode 100644
index 60fea68..0000000
Binary files a/openmrs/IEDriverServer.exe and /dev/null differ
diff --git a/openmrs/QA.xml b/openmrs/QA.xml
deleted file mode 100644
index fcd0539..0000000
--- a/openmrs/QA.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/openmrs/chromedriver.exe b/openmrs/chromedriver.exe
deleted file mode 100644
index fb73769..0000000
Binary files a/openmrs/chromedriver.exe and /dev/null differ
diff --git a/openmrs/geckodriver.exe b/openmrs/geckodriver.exe
deleted file mode 100644
index 041f4a6..0000000
Binary files a/openmrs/geckodriver.exe and /dev/null differ
diff --git a/openmrs/pom.xml b/openmrs/pom.xml
deleted file mode 100644
index bef3e24..0000000
--- a/openmrs/pom.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-
- 4.0.0
-
- org.tq
- openmrs
- 0.0.1-SNAPSHOT
- jar
-
- openmrs
- http://maven.apache.org
-
-
-
- 1.8
- 1.8
-
- UTF-8
-
-
-
- QA
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.18.1
-
- 0
-
- QA.xml
-
-
-
-
-
- maven-compiler-plugin
- 3.1
-
- true
- C:\Program Files\Java\jdk1.8.0_65\bin\javac.exe
-
-
-
-
-
-
-
-
-
-
-
-
-
- DEV
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.18.1
-
- 0
-
- DEV.xml
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.8.0
-
- 1.8
- 1.8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- org.seleniumhq.selenium
- selenium-java
- 3.13.0
-
-
- org.testng
- testng
- 6.8
-
-
-
- net.sourceforge.jexcelapi
- jxl
- 2.6
-
-
-
-
diff --git a/openmrs/src/main/java/org/tq/openmrs/pages/HomePage.java b/openmrs/src/main/java/org/tq/openmrs/pages/HomePage.java
deleted file mode 100644
index 0a1c813..0000000
--- a/openmrs/src/main/java/org/tq/openmrs/pages/HomePage.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.tq.openmrs.pages;
-
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-public class HomePage {
-
- WebDriver driver;
- public HomePage(WebDriver driver)
- {
- this.driver = driver;
- }
- public void navigateToServiceTypes()
- {
-
- //Navigate to ManageServiceTypes
- driver.findElement(By.id("appointmentschedulingui-homeAppLink-appointmentschedulingui-homeAppLink-extension")).click();
- driver.findElement(By.id("appointmentschedulingui-manageAppointmentTypes-app")).click();
- }
-}
diff --git a/openmrs/src/main/java/org/tq/openmrs/pages/LoginPage.java b/openmrs/src/main/java/org/tq/openmrs/pages/LoginPage.java
deleted file mode 100644
index 7471a52..0000000
--- a/openmrs/src/main/java/org/tq/openmrs/pages/LoginPage.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.tq.openmrs.pages;
-
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-public class LoginPage {
-
-
- WebDriver driver;
- public LoginPage(WebDriver driver)
- {
- this.driver = driver;
- }
- public void login(String username,String password)
- {
- //login
- driver.findElement(By.id("username")).sendKeys(username);
- driver.findElement(By.id("password")).sendKeys(password);
- driver.findElement(By.id("Inpatient Ward")).click();
- driver.findElement(By.id("loginButton")).click();
-
- }
-}
diff --git a/openmrs/src/main/java/org/tq/openmrs/pages/LogoutPage.java b/openmrs/src/main/java/org/tq/openmrs/pages/LogoutPage.java
deleted file mode 100644
index c249aae..0000000
--- a/openmrs/src/main/java/org/tq/openmrs/pages/LogoutPage.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.tq.openmrs.pages;
-
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-
-public class LogoutPage {
-
-
- WebDriver driver;
- public LogoutPage(WebDriver driver)
- {
- this.driver = driver;
- }
- public void logout()
- {
- //Logout
- driver.findElement(By.cssSelector(".logout>a")).click();
-
- }
-}
diff --git a/openmrs/src/main/java/org/tq/openmrs/pages/ManageServiceTypesPage.java b/openmrs/src/main/java/org/tq/openmrs/pages/ManageServiceTypesPage.java
deleted file mode 100644
index de06275..0000000
--- a/openmrs/src/main/java/org/tq/openmrs/pages/ManageServiceTypesPage.java
+++ /dev/null
@@ -1,102 +0,0 @@
-package org.tq.openmrs.pages;
-
-import java.util.HashMap;
-import java.util.List;
-
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-public class ManageServiceTypesPage {
-
- WebDriver driver;
- public ManageServiceTypesPage(WebDriver driver)
- {
- this.driver = driver;
- }
- public HashMap addServiceType(String serviceName)
- {
-
- HashMap hMap = new HashMap();
-
- driver.findElement(By.cssSelector(".confirm.appointment-type-label.right")).click();
- driver.findElement(By.id("name-field")).clear();
- hMap.put("serviceName", serviceName);
- driver.findElement(By.id("name-field")).sendKeys(serviceName);
- hMap.put("duration","10");
- driver.findElement(By.id("duration-field")).sendKeys("10");
- hMap.put("description","Adding Service Type");
- driver.findElement(By.id("description-field")).sendKeys("Adding Service Type");
- driver.findElement(By.id("save-button")).click();
- return hMap;
-
- }
- public boolean isServiceTypeAvailable(String serviceName)
- {
-
- boolean result = false;
- //Identify the List of Pages and navigate to every page
- List pageList = driver.findElements(By.cssSelector("#appointmentTypesTable_paginate>span>a"));
- System.out.println("Size of pagesList" + pageList.size());
- outer:
- for(int i=0;ispan>a"));
- pageList.get(i).click();
-
- List trList = driver.findElements(By.cssSelector("#appointmentTypesTable>tbody>tr>td:nth-of-type(1)"));
- System.out.println("Size of the Table row Lst " + trList.size());
- for(int j=0;j hMap)
- {
-
- boolean result = false;
- //Identify the List of Pages and navigate to every page
- List pageList = driver.findElements(By.cssSelector("#appointmentTypesTable_paginate>span>a"));
- System.out.println("Size of pagesList" + pageList.size());
- outer:
- for(int i=0;ispan>a"));
- pageList.get(i).click();
-
- List trList = driver.findElements(By.cssSelector("#appointmentTypesTable>tbody>tr>td:nth-of-type(1)"));
- System.out.println("Size of the Table row Lst " + trList.size());
- for(int j=0;j hMap = servicePage.addServiceType(serviceName);
- boolean result = servicePage.isServiceTypeAvailable(hMap);
- Assert.assertTrue(result);
- logoutPage.logout();
- }
-
-
- @Test(dataProvider="DP")
- public void verifyListServiceTypeAvailable(String username,String password,String serviceName)
- {
- LoginPage lPage = new LoginPage(driver);
- HomePage hPage = new HomePage(driver);
- ManageServiceTypesPage servicePage = new ManageServiceTypesPage(driver);
- LogoutPage logoutPage = new LogoutPage(driver);
- lPage.login(username,password);
- hPage.navigateToServiceTypes();
- boolean result = servicePage.isServiceTypeAvailable(serviceName);
- Assert.assertTrue(result);
- logoutPage.logout();
- }
-
- @DataProvider(name="DP")
- public String[][] feedData() throws jxl.read.biff.BiffException, IOException
- {
- return readXLSFile("InputData.xls", "sanity");
- }
-}
diff --git a/openmrs/src/test/java/org/tq/openmrs/tests/ParametersEx.java b/openmrs/src/test/java/org/tq/openmrs/tests/ParametersEx.java
deleted file mode 100644
index fb09165..0000000
--- a/openmrs/src/test/java/org/tq/openmrs/tests/ParametersEx.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.tq.openmrs.tests;
-
-import org.testng.annotations.Parameters;
-import org.testng.annotations.Test;
-import org.tq.util.BaseClass;
-
-
-public class ParametersEx extends BaseClass{
-
-
-
- @Parameters({"username","password"})
- @Test
- public void login(String username,String password)
- {
- System.out.println(driver.getTitle());
- System.out.println("username value " + username);
- System.out.println("password value " + password);
-
- }
-}
diff --git a/postman_collection3.json b/postman_collection3.json
new file mode 100644
index 0000000..df86c24
--- /dev/null
+++ b/postman_collection3.json
@@ -0,0 +1,537 @@
+{
+ "version": 1,
+ "collections": [
+ {
+ "id": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "name": "Datamining API License",
+ "description": "The Datamining API License grants you:\n\n* The ability to search for FT articles based on specific fields, including body text, headline and section\n* The right to cache headlines for up to 30 days provided you check for deletions or changes\n* A default rate limit of 2 API calls per second and 5,000 API calls per day\n* 140 character SMS / Twitter length compatible titles",
+ "order": [],
+ "folders": [
+ {
+ "name": "Content (Enriched)",
+ "description": "",
+ "collectionId": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "collection": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "order": [
+ "c3e3e9d3-afdb-afaf-8d00-b131fbfee6ff"
+ ],
+ "owner": "2445168",
+ "folders_order": [],
+ "createdAt": 1503481185404,
+ "updatedAt": 1503481185404,
+ "id": "d62660f2-a752-1266-fe77-bd787ecee0df",
+ "collection_id": "300e25bc-14f5-f3ad-8633-e995c2740b13"
+ },
+ {
+ "name": "Notifications",
+ "description": "",
+ "collectionId": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "collection": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "order": [
+ "b411b115-f15e-ae3c-d5d0-99779beb1ad5"
+ ],
+ "owner": "2445168",
+ "folders_order": [],
+ "createdAt": 1503481194470,
+ "updatedAt": 1503481194471,
+ "id": "8f07c42e-2e10-3382-b1f1-1e64aa1085ce",
+ "collection_id": "300e25bc-14f5-f3ad-8633-e995c2740b13"
+ },
+ {
+ "name": "Content",
+ "description": "",
+ "collectionId": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "collection": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "order": [
+ "33807338-df09-d541-1da3-c042effc36d7"
+ ],
+ "owner": "2445168",
+ "folders_order": [],
+ "createdAt": 1503481185404,
+ "updatedAt": 1503481185404,
+ "id": "75602e12-8463-f434-d337-35d2bd69d353",
+ "collection_id": "300e25bc-14f5-f3ad-8633-e995c2740b13"
+ }
+ ],
+ "folders_order": [
+ "8f07c42e-2e10-3382-b1f1-1e64aa1085ce",
+ "75602e12-8463-f434-d337-35d2bd69d353",
+ "d62660f2-a752-1266-fe77-bd787ecee0df"
+ ],
+ "timestamp": 1505208280685,
+ "synced": true,
+ "remote_id": 0,
+ "owner": "2445168",
+ "sharedWithTeam": false,
+ "subscribed": false,
+ "public": false,
+ "createdAt": 1505314431641,
+ "updatedAt": 1505314431641,
+ "write": true,
+ "published": false,
+ "favorite": false,
+ "permissions": {},
+ "syncedPermissions": {},
+ "shared": false,
+ "hasRequests": true,
+ "requests": [
+ {
+ "id": "33807338-df09-d541-1da3-c042effc36d7",
+ "headers": "X-Api-Key: {{KEY}}\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/e949ea92-bdae-11e6-8b45-b8b81dd5d080",
+ "queryParams": [],
+ "pathVariables": {},
+ "pathVariableData": [],
+ "preRequestScript": null,
+ "method": "GET",
+ "collectionId": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "data": null,
+ "dataMode": "params",
+ "name": "GET Content 1: ID={ItemId}",
+ "description": "",
+ "descriptionFormat": "html",
+ "time": 1503481631271,
+ "version": 2,
+ "responses": [],
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "75602e12-8463-f434-d337-35d2bd69d353",
+ "owner": "2445168",
+ "collection_id": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "isFromCollection": true,
+ "collection": "300e25bc-14f5-f3ad-8633-e995c2740b13"
+ },
+ {
+ "id": "b411b115-f15e-ae3c-d5d0-99779beb1ad5",
+ "headers": "X-Api-Key: {{KEY}}\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/notifications?since=2017-08-08T00:00:00.000Z",
+ "queryParams": [
+ {
+ "key": "since",
+ "value": "2017-08-08T00:00:00.000Z",
+ "equals": true,
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "pathVariables": {},
+ "pathVariableData": [],
+ "preRequestScript": null,
+ "method": "GET",
+ "collectionId": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "data": null,
+ "dataMode": "params",
+ "name": "GET Notifications 2: Since={TimeStamp}",
+ "description": "",
+ "descriptionFormat": "html",
+ "time": 1503481725650,
+ "version": 2,
+ "responses": [],
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "8f07c42e-2e10-3382-b1f1-1e64aa1085ce",
+ "owner": "2445168",
+ "collection_id": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "isFromCollection": true,
+ "collection": "300e25bc-14f5-f3ad-8633-e995c2740b13"
+ },
+ {
+ "id": "c3e3e9d3-afdb-afaf-8d00-b131fbfee6ff",
+ "headers": "X-Api-Key: {{KEY}}\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/enrichedcontent/e949ea92-bdae-11e6-8b45-b8b81dd5d080",
+ "queryParams": [],
+ "preRequestScript": null,
+ "pathVariables": {},
+ "pathVariableData": [],
+ "method": "GET",
+ "data": null,
+ "dataMode": "params",
+ "version": 2,
+ "tests": null,
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1503999772867,
+ "name": "GET Content (Enriched) 1: ID={ItemId}",
+ "description": "",
+ "collectionId": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "responses": [],
+ "folder": "d62660f2-a752-1266-fe77-bd787ecee0df",
+ "owner": "2445168",
+ "collection_id": "300e25bc-14f5-f3ad-8633-e995c2740b13",
+ "collection": "300e25bc-14f5-f3ad-8633-e995c2740b13"
+ }
+ ]
+ },
+ {
+ "id": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "name": "Headline API Licence",
+ "description": "The Headline API License grants you:\n\n* The ability to search for FT articles based on specific fields, including body text, headline and section\n* The right to cache headlines for up to 30 days provided you check for deletions or changes\n* A default rate limit of 2 API calls per second and 5,000 API calls per day",
+ "order": [],
+ "folders": [
+ {
+ "name": "Search",
+ "description": "",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "collection": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "order": [
+ "ce692074-bd98-d3f3-9fc2-5da5e1fc2a07",
+ "4a2f31c7-302d-bcf7-309c-fdff9267e70e",
+ "5213e6ed-1546-f754-f403-07b214a92200",
+ "d3992966-329f-5d12-553c-37c735e3407f",
+ "fcadb318-2621-c96e-e9ec-1bff93c1985c",
+ "2a84fb55-69db-04c9-5551-5bcd6b7687c1",
+ "33ef34f5-c391-aad6-f253-2dc3dac6d24b"
+ ],
+ "owner": "2445168",
+ "folders_order": [],
+ "createdAt": 1503481222963,
+ "updatedAt": 1503481222963,
+ "id": "a24724da-eb84-8efb-c942-ad35f84f52d6",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df"
+ }
+ ],
+ "folders_order": [
+ "a24724da-eb84-8efb-c942-ad35f84f52d6"
+ ],
+ "timestamp": 1503482788920,
+ "synced": true,
+ "remote_id": 0,
+ "owner": "2445168",
+ "sharedWithTeam": false,
+ "subscribed": false,
+ "remoteLink": "",
+ "remoteLinkUpdatedAt": null,
+ "public": false,
+ "createdAt": 1505314431646,
+ "updatedAt": 1505314431646,
+ "write": true,
+ "published": false,
+ "favorite": false,
+ "permissions": {},
+ "syncedPermissions": {},
+ "requests": [
+ {
+ "id": "2a84fb55-69db-04c9-5551-5bcd6b7687c1",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "pathVariables": {},
+ "pathVariableData": [],
+ "preRequestScript": "",
+ "method": "POST",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "data": "{\r\n\t\"queryString\": \"Banks\" ,\r\n\t\"resultContext\" : {\r\n\t\t \"aspects\" :[ \"title\",\"lifecycle\",\"location\",\"summary\",\"editorial\" ],\r\n\t\t \"sortOrder\" : \"DESC\",\r\n\t\t \"sortField\" : \"initialPublishDateTime\"\r\n\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "name": "POST Search 6: queryString={Banks}, sortOrder={Desc}",
+ "description": "Sort by date (most recent first)",
+ "descriptionFormat": "html",
+ "time": 1503567689256,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6",
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df"
+ },
+ {
+ "id": "33ef34f5-c391-aad6-f253-2dc3dac6d24b",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "preRequestScript": "",
+ "pathVariables": {},
+ "pathVariableData": [],
+ "method": "POST",
+ "data": "{\r\n\t\"queryString\": \"sections:\\\"Energy\\\"\",\r\n\t\"resultContext\" : {\r\n\t\t \"aspects\" :[ \"title\",\"lifecycle\",\"location\",\"summary\",\"editorial\" ]\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1503568490377,
+ "name": "POST Search 7: queryString={Sections}",
+ "description": "Search and retrieve all content in the Energy section",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "responses": [],
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6",
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df"
+ },
+ {
+ "id": "4a2f31c7-302d-bcf7-309c-fdff9267e70e",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "preRequestScript": "",
+ "pathVariables": {},
+ "pathVariableData": [],
+ "method": "POST",
+ "data": "{\r\n\t\"queryString\": \"Trump AND title:\\\"Clinton\\\"\",\r\n\t\"queryContext\" : {\r\n\t\t \"curations\" : [ \"ARTICLES\"]\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1503559998094,
+ "name": "POST Search 2: queryString={Trump AND Clinton}, curations={Articles}",
+ "description": "This will search for content that mentions Osborne in any of the searchable fields, but where the headline (title) contains 'Cameron'",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "responses": [],
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6"
+ },
+ {
+ "id": "5213e6ed-1546-f754-f403-07b214a92200",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "preRequestScript": "",
+ "pathVariables": {},
+ "pathVariableData": [],
+ "method": "POST",
+ "data": "{\r\n\t\"queryString\": \"British Telecom\",\r\n\t \"queryContext\" : {\r\n\t\t \"curations\" : [ \"ARTICLES\"]\r\n\t },\r\n\t \"resultContext\" : {\r\n\t\t \"maxResults\": 1,\r\n\t\t \"facets\" : {\"names\":[ \"organisations\"],\"maxElements\":20,\"minThreshold\":1}\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1503564900823,
+ "name": "POST Search 3: queryString={British Telecom}, facets={Organisations}",
+ "description": "You need to know what tag is used for British Telecom as an organisation. One way to do this is to search for relevant content and ask the search to show details of the facets found in the results",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "responses": [],
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6"
+ },
+ {
+ "id": "ce692074-bd98-d3f3-9fc2-5da5e1fc2a07",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "pathVariables": {},
+ "pathVariableData": [],
+ "preRequestScript": "",
+ "method": "POST",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "data": "{\r\n\t\"queryString\": \"banks\",\r\n\t\"resultContext\" : {\r\n\t\t \"aspects\" :[ \"title\",\"lifecycle\",\"location\",\"summary\",\"editorial\" ]\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "name": "POST Search 1: queryString={Banks}, sortOrder={Desc}",
+ "description": "Aspects are used to specify which fields you want to see in the results",
+ "descriptionFormat": "html",
+ "time": 1503496110265,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6",
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df"
+ },
+ {
+ "id": "d3992966-329f-5d12-553c-37c735e3407f",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "preRequestScript": "",
+ "pathVariables": {},
+ "pathVariableData": [],
+ "method": "POST",
+ "data": "{\r\n\t\"queryString\": \"Apple AND lastPublishDateTime:>2017-01-01T00:00:00Z\",\r\n\t\"queryContext\" : {\r\n\t\t \"curations\" : [ \"BLOGS\"]\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1503567486616,
+ "name": "POST Search 4: queryString={Apple AND lastPublishDateTime}, curations={Blogs}",
+ "description": "Search for blogs that mention Apple and have been published this year",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "responses": [],
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6"
+ },
+ {
+ "id": "fcadb318-2621-c96e-e9ec-1bff93c1985c",
+ "headers": "X-Api-Key: {{KEY}}\nContent-Type: application/json\n",
+ "headerData": [
+ {
+ "key": "X-Api-Key",
+ "value": "{{KEY}}",
+ "description": "",
+ "enabled": true
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "description": "",
+ "enabled": true
+ }
+ ],
+ "url": "http://api.ft.com/content/search/v1",
+ "queryParams": [],
+ "preRequestScript": "",
+ "pathVariables": {},
+ "pathVariableData": [],
+ "method": "POST",
+ "data": "{\r\n\t \"queryString\": \"byline:\\\"Martin Wolf\\\" AND lastPublishDateTime:>2017-01-01T00:00:00Z\",\r\n\t \"queryContext\": {\r\n\t\t\t\"curations\": [\r\n\t\t\t\t\"ARTICLES\"\r\n\t\t\t]\r\n\t\t},\r\n\t\t\"resultContext\" : {\r\n\t\t\t \"aspects\" :[ \"title\",\"lifecycle\",\"location\",\"summary\",\"editorial\" ]\r\n\r\n\t}\r\n}",
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1503568003846,
+ "name": "POST Search 5: queryString={Byline AND lastPublishDateTime}, curations={Articles}",
+ "description": "Search for byline Martin Wolf published since 2014",
+ "collectionId": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "responses": [],
+ "owner": "2445168",
+ "collection_id": "5bcccf2d-530c-e25e-e638-9183e16154df",
+ "folder": "a24724da-eb84-8efb-c942-ad35f84f52d6"
+ }
+ ]
+ }
+ ],
+ "environments": [],
+ "headerPresets": [
+ {
+ "id": "4546157a-8e0c-d122-7a85-55cd37a35176",
+ "name": "Default",
+ "headers": [
+ {
+ "key": "X-Api-Key ",
+ "value": "{{KEY}}",
+ "description": "",
+ "type": "text",
+ "enabled": true,
+ "disabled": false
+ },
+ {
+ "key": "Content-Type",
+ "value": "text/html",
+ "description": "",
+ "type": "text",
+ "enabled": true,
+ "disabled": false
+ }
+ ],
+ "timestamp": 1502976853440
+ }
+ ],
+ "globals": []
+}