{
	"info": {
		"_postman_id": "6a2ef6f6-95ff-4079-a207-479f1c1600bd",
		"name": "Testify old",
		"description": "This is the documentation for Testify.  Testify is a test reporting tool developed by Heartland School Solutions.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Start  Run",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded"
					},
					{
						"key": "Authorization",
						"value": "{{authstring}}",
						"description": "API authorization key"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "runID",
							"value": "3333",
							"description": "user defined string describing a run (group of tests)",
							"type": "text"
						},
						{
							"key": "environment",
							"value": "lab",
							"description": "user defined string describing the environment that the tests were ran against",
							"type": "text"
						},
						{
							"key": "buildNumber",
							"value": "111",
							"description": "user defined string describing a build number",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{url}}/startrun",
					"host": [
						"{{url}}"
					],
					"path": [
						"startrun"
					]
				},
				"description": "Start a run"
			},
			"response": []
		},
		{
			"name": "Upload Result Pass",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "multipart/form-data"
					},
					{
						"key": "Authorization",
						"value": "{{authstring}}"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "resultID",
							"value": "007ResultID",
							"sessionValue": "12345",
							"description": "user defined string specifying the ID of a test",
							"type": "text"
						},
						{
							"key": "runID",
							"value": "333",
							"type": "text",
							"description": "user defined string specifying the ID of a run (group of tests)"
						},
						{
							"key": "teamID",
							"value": "msbweb",
							"type": "text",
							"description": "id of the team the test belongs to"
						},
						{
							"key": "status",
							"value": "pass",
							"type": "text",
							"description": "result of a test with one of the following values pass, fail, retry, skip"
						},
						{
							"key": "startDate",
							"value": "2018-08-10 15:35:03.000",
							"type": "text",
							"description": "start time of the test in the following format yyyy-MM-dd HH:mm:ss.SSS"
						},
						{
							"key": "duration",
							"value": "1000000",
							"type": "text",
							"description": "number of milliseconds the test ran"
						},
						{
							"key": "description",
							"value": "This a failing test",
							"type": "text",
							"description": "description of the test"
						},
						{
							"key": "suite",
							"value": "Suite 2",
							"type": "text",
							"description": "name of the suite the test was run under"
						},
						{
							"key": "class",
							"value": "com.heartland.testify.passclassname",
							"type": "text",
							"description": "class name of the test"
						},
						{
							"key": "method",
							"value": "passMethodName",
							"type": "text",
							"description": "method name of the test"
						},
						{
							"key": "category",
							"value": "Invoice",
							"type": "text",
							"description": "type of test (e.g. Store, Invoice, Nutrition)\n"
						},
						{
							"key": "exception",
							"value": "",
							"type": "text",
							"description": "stack trace of the test assertion"
						},
						{
							"key": "exceptionType",
							"value": "",
							"type": "text",
							"description": "user defined string specifying the type of excexption (e.g. timeout, ajax not complete, chromedriver)"
						},
						{
							"key": "screenShot",
							"sessionValue": {
								"0": {}
							},
							"description": "image from the test failure",
							"type": "file"
						},
						{
							"key": "ipAddress",
							"value": "192.168.0.1",
							"type": "text",
							"description": "IP Address from where the test was ran from"
						},
						{
							"key": "encodeException",
							"value": "false",
							"sessionValue": "false",
							"description": "encode html tags in exception text",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{url}}/uploadresult",
					"host": [
						"{{url}}"
					],
					"path": [
						"uploadresult"
					]
				},
				"description": "Start a run"
			},
			"response": []
		},
		{
			"name": "Upload Result Fail",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "multipart/form-data"
					},
					{
						"key": "Authorization",
						"value": "{{authstring}}"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "resultID",
							"value": "123456789",
							"sessionValue": "12345",
							"description": "user defined string specifying the ID of a test",
							"type": "text"
						},
						{
							"key": "runID",
							"value": "333",
							"type": "text",
							"description": "user defined string specifying the ID of a run (group of tests)"
						},
						{
							"key": "teamID",
							"value": "msbweb",
							"type": "text",
							"description": "id of the team the test belongs to"
						},
						{
							"key": "status",
							"value": "fail",
							"type": "text",
							"description": "result of a test with one of the following values pass, fail, retry, skip"
						},
						{
							"key": "startDate",
							"value": "2018-08-27 15:36:03.000",
							"type": "text",
							"description": "start time of the test in the following format yyyy-MM-dd HH:mm:ss.SSS"
						},
						{
							"key": "duration",
							"value": "1000000",
							"type": "text",
							"description": "number of milliseconds the test ran"
						},
						{
							"key": "description",
							"value": "This a failing test",
							"type": "text",
							"description": "description of the test"
						},
						{
							"key": "suite",
							"value": "Suite 2",
							"type": "text",
							"description": "name of the suite the test was run under"
						},
						{
							"key": "class",
							"value": "com.heartland.testify.failclassname",
							"type": "text",
							"description": "class name of the test"
						},
						{
							"key": "method",
							"value": "failMethodName",
							"type": "text",
							"description": "method name of the test"
						},
						{
							"key": "category",
							"value": "Invoice",
							"type": "text",
							"description": "type of test (e.g. Store, Invoice, Nutrition)\n"
						},
						{
							"key": "exception",
							"value": "Message: Test method MosaicBOHSelenium.Tests.SmokeTestMP.RecipeSmokeTests.RecipeMaintenanceSmokeTest threw exception: \nOpenQA.Selenium.WebDriverException: unknown error: Element <a>...</a> is not clickable at point (353, 7). Other element would receive the click: <div id=\"header\" class=\"expandable\">...</div>\n  (Session info: chrome=62.0.3202.94)\n  (Driver info: chromedriver=2.34.522913 (36222509aa6e819815938cbf2709b4849735537c),platform=Linux 4.4.0-133-generic x86_64) StackTrace:     at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)\n   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)\n   at OpenQA.Selenium.Remote.RemoteWebElement.Click()\n   at MosaicBOHSelenium.Pages.Recipes.Maintenance.RecipeEditPage.GoToIngredientsTab() in /opt/vsts/work/1/s/MosaicBOH.SeleniumTestsDotNetCore/MosaicBOHSeleniumTests/Pages/Recipes/Maintenance/RecipeEditPage.cs:line 302\n   at MosaicBOHSelenium.Tests.SmokeTestMP.RecipeSmokeTests.RecipeMaintenanceSmokeTest() in /opt/vsts/work/1/s/MosaicBOH.SeleniumTestsDotNetCore/MosaicBOHSeleniumTests/Tests/SmokeTestMP/RecipeSmokeTests.cs:line 80\nMessage: Test method MosaicBOHSelenium.Tests.SmokeTestMP.RecipeSmokeTests.RecipeMaintenanceSmokeTest threw exception: \nOpenQA.Selenium.WebDriverException: unknown error: Element &lt;a&gt;...&lt;/a&gt; is not clickable at point (353, 7). Other element would receive the click: &lt;div id=&quot;header&quot; class=&quot;expandable&quot;&gt;...&lt;/div&gt;\n  (Session info: chrome=62.0.3202.94)\n  (Driver info: chromedriver=2.34.522913 (36222509aa6e819815938cbf2709b4849735537c),platform=Linux 4.4.0-133-generic x86_64) StackTrace:     at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)\n   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)\n   at OpenQA.Selenium.Remote.RemoteWebElement.Click()\n   at MosaicBOHSelenium.Pages.Recipes.Maintenance.RecipeEditPage.GoToIngredientsTab() in /opt/vsts/work/1/s/MosaicBOH.SeleniumTestsDotNetCore/MosaicBOHSeleniumTests/Pages/Recipes/Maintenance/RecipeEditPage.cs:line 302\n   at MosaicBOHSelenium.Tests.SmokeTestMP.RecipeSmokeTests.RecipeMaintenanceSmokeTest() in /opt/vsts/work/1/s/MosaicBOH.SeleniumTestsDotNetCore/MosaicBOHSeleniumTests/Tests/SmokeTestMP/RecipeSmokeTests.cs:line 80",
							"type": "text",
							"description": "stack trace of the test assertion"
						},
						{
							"key": "exceptionType",
							"value": "WebDriver",
							"type": "text",
							"description": "user defined string specifying the type of excexption (e.g. timeout, ajax not complete, chromedriver)"
						},
						{
							"key": "screenShot",
							"sessionValue": {
								"0": {}
							},
							"description": "image from the test failure",
							"type": "file"
						},
						{
							"key": "ipAddress",
							"value": "192.168.0.1",
							"type": "text",
							"description": "IP Address from where the test was ran from"
						},
						{
							"key": "encodeException",
							"value": "false",
							"sessionValue": "true",
							"description": "encode html tags in exception text",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{url}}/uploadresult",
					"host": [
						"{{url}}"
					],
					"path": [
						"uploadresult"
					]
				},
				"description": "Start a run"
			},
			"response": []
		},
		{
			"name": "Upload Suite Log",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "multipart/form-data"
					},
					{
						"key": "Authorization",
						"value": "{{authstring}}"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "runID",
							"value": "23",
							"description": "user defined string specifying the ID of a run (group of tests)",
							"type": "text"
						},
						{
							"key": "suiteName",
							"value": "Suite 2",
							"sessionValue": "Suite 1",
							"description": "name of the suite the test was run under",
							"type": "text"
						},
						{
							"key": "suiteLog",
							"sessionValue": "Modules are not changed after changing the Roles expected [true] but found [false]\n    org.testng.Assert.fail(Assert.java:96)\n    org.testng.Assert.failNotEquals(Assert.java:776)\n    org.testng.Assert.assertTrue(Assert.java:44)\n    core.MSBTest.AssertTrue(MSBTest.java:213)\n    tests.admin.roles.ManageRolesTest.Can_Edit_CustomRole_By_Changing_Inherit_From_Option(ManageRolesTest.java:338)\n    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    java.lang.reflect.Method.invoke(Method.java:498)\n    org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)\n    org.testng.internal.Invoker.invokeMethod(Invoker.java:571)\n    org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)\n    org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979)\n    org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)\n    org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)\n    org.testng.TestRunner.privateRun(TestRunner.java:648)\n    org.testng.TestRunner.run(TestRunner.java:505)\n    org.testng.SuiteRunner.runTest(SuiteRunner.java:455)\n    org.testng.SuiteRunner.access$000(SuiteRunner.java:40)\n    org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:489)\n    org.testng.internal.thread.ThreadUtil$1.call(ThreadUtil.java:52)\n    java.util.concurrent.FutureTask.run(FutureTask.java:266)\n    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n    java.lang.Thread.run(Thread.java:748)",
							"description": "suite log from test",
							"type": "file"
						}
					]
				},
				"url": {
					"raw": "{{url}}/uploadsuitelog",
					"host": [
						"{{url}}"
					],
					"path": [
						"uploadsuitelog"
					]
				},
				"description": "Start a run"
			},
			"response": []
		},
		{
			"name": "End Run",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded"
					},
					{
						"key": "Authorization",
						"value": "{{authstring}}",
						"description": "API authorization key"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "runID",
							"value": "3333",
							"description": "user defined string describing a run (group of tests)",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{url}}/endrun",
					"host": [
						"{{url}}"
					],
					"path": [
						"endrun"
					]
				},
				"description": "End a run"
			},
			"response": []
		}
	]
}