summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorMavlushechka <mavlushechka@gmail.com>2022-10-07 23:46:46 +0500
committerMavlushechka <mavlushechka@gmail.com>2022-10-07 23:46:46 +0500
commitf8501d374dbd39a66078bad11384ea241848acc6 (patch)
tree41deb41375982e3db1d4071117dcf22377145ab8 /src/main/resources
parent4495c73482a9fb3bdb87a75816974602e833278e (diff)
Solve 1st test case
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/config.json10
-rw-r--r--src/main/resources/settings.json118
-rw-r--r--src/main/resources/testData.json65
3 files changed, 129 insertions, 64 deletions
diff --git a/src/main/resources/config.json b/src/main/resources/config.json
index a55d26a..c74a5d3 100644
--- a/src/main/resources/config.json
+++ b/src/main/resources/config.json
@@ -1,12 +1,6 @@
{
"browser": {
- "name": "Firefox",
- "isIncognito": "true",
- "isKiosk": "true",
- "url": "https://jsonplaceholder.typicode.com"
- },
- "webDriverWait": {
- "durationOfSeconds": "15"
+ "url": "https://vk.com/"
},
"randomTextGenerator": {
"lettersLowerBound": "97",
@@ -17,7 +11,7 @@
"randomNumberMin": "0",
"randomNumberMax": "101"
},
- "httpURLConnection": {
+ "httpUrlConnection": {
"connectTimeout": "5000",
"readTimeout": "5000"
}
diff --git a/src/main/resources/settings.json b/src/main/resources/settings.json
new file mode 100644
index 0000000..4e41432
--- /dev/null
+++ b/src/main/resources/settings.json
@@ -0,0 +1,118 @@
+{
+ "browserName" : "firefox",
+ "isRemote": false,
+ "remoteConnectionUrl": "http://localhost:4444/wd/hub",
+ "isElementHighlightEnabled" : true,
+
+ "driverSettings": {
+ "chrome": {
+ "webDriverVersion": "latest",
+ "capabilities": {
+ },
+ "options": {
+ "intl.accept_languages": "en",
+ "safebrowsing.enabled": "true",
+ "profile.default_content_settings.popups": "0",
+ "disable-popup-blocking": "true",
+ "download.prompt_for_download": "false",
+ "download.default_directory": "//home//selenium//downloads"
+ },
+ "pageLoadStrategy": "Normal",
+ "startArguments": []
+ },
+ "edge": {
+ "webDriverVersion": "latest",
+ "capabilities": {
+ },
+ "options": {
+ "intl.accept_languages": "en",
+ "safebrowsing.enabled": "true",
+ "profile.default_content_settings.popups": "0",
+ "disable-popup-blocking": "true",
+ "download.prompt_for_download": "false",
+ "download.default_directory": "//home//selenium//downloads"
+ },
+ "startArguments": []
+ },
+ "firefox": {
+ "webDriverVersion": "latest",
+ "capabilities": {
+ },
+ "options": {
+ "intl.accept_languages": "en",
+ "browser.download.dir": "//home//selenium//downloads",
+ "browser.download.folderList": 2,
+ "browser.helperApps.neverAsk.saveToDisk": "application/octet-stream, application/x-debian-package, application/x-www-form-urlencod, application/json, application/x-compressed, application/x-zip-compressed, application/zip, multipart/x-zip, text/plain, text/csv",
+ "browser.helperApps.alwaysAsk.force": false,
+ "browser.download.manager.alertOnEXEOpen": false,
+ "browser.download.manager.focusWhenStarting": false,
+ "browser.download.useDownloadDir": true,
+ "browser.download.manager.showWhenStarting": false,
+ "browser.download.manager.closeWhenDone": true,
+ "browser.download.manager.showAlertOnComplete": false,
+ "browser.download.manager.useWindow": false,
+ "browser.download.panel.shown": false
+ },
+ "startArguments": ["--private", "--kiosk"]
+ },
+ "iexplorer": {
+ "webDriverVersion": "latest",
+ "systemArchitecture": "X32",
+ "capabilities": {
+ "ignoreProtectedModeSettings": true
+ }
+ },
+ "opera": {
+ "webDriverVersion": "latest",
+ "binaryLocation": "%USERPROFILE%\\AppData\\Local\\Programs\\Opera\\launcher.exe",
+ "capabilities": {
+ },
+ "options": {
+ "intl.accept_languages": "en",
+ "safebrowsing.enabled": "true",
+ "profile.default_content_settings.popups": "0",
+ "disable-popup-blocking": "true",
+ "download.prompt_for_download": "false",
+ "download.default_directory": "./downloads"
+ },
+ "startArguments": ["--remote-debugging-port=9222", "--no-sandbox", "--disable-dev-shm-usage"]
+ },
+ "safari": {
+ "downloadDir": "/Users/username/Downloads"
+ },
+ "yandex": {
+ "webDriverVersion": "102.0.5005.61",
+ "binaryLocation": "%USERPROFILE%\\AppData\\Local\\Yandex\\YandexBrowser\\Application\\browser.exe",
+ "capabilities": {
+ },
+ "options": {
+ "intl.accept_languages": "en",
+ "safebrowsing.enabled": "true",
+ "profile.default_content_settings.popups": "0",
+ "disable-popup-blocking": "true",
+ "download.prompt_for_download": "false",
+ "download.default_directory": "./downloads"
+ },
+ "startArguments": []
+ }
+ },
+ "timeouts": {
+ "timeoutImplicit" : 0,
+ "timeoutCondition" : 30,
+ "timeoutScript" : 10,
+ "timeoutPageLoad" : 15,
+ "timeoutPollingInterval": 300,
+ "timeoutCommand":120
+ },
+ "retry": {
+ "number": 2,
+ "pollingInterval": 300
+ },
+ "logger": {
+ "language": "en",
+ "logPageSource": true
+ },
+ "elementCache": {
+ "isEnabled": false
+ }
+} \ No newline at end of file
diff --git a/src/main/resources/testData.json b/src/main/resources/testData.json
index b0e3aca..b9e625c 100644
--- a/src/main/resources/testData.json
+++ b/src/main/resources/testData.json
@@ -1,59 +1,12 @@
{
- "testCases": [
- {
- "steps": [
- {
- },
- {
- "post": {
- "id": "99",
- "userId": "10",
- "isTitleEmpty": "false",
- "isBodyEmpty": "false"
- }
- },
- {
- "isResponseBodyEmpty": "true",
- "post": {
- "id": "150"
- }
- },
- {
- "post": {
- "userId": "1"
- }
- },
- {
- "user": {
- "id": "5",
- "name": "Chelsey Dietrich",
- "username": "Kamren",
- "email": "Lucio_Hettinger@annie.ca",
- "address": {
- "street": "Skiles Walks",
- "suite": "Suite 351",
- "city": "Roscoeview",
- "zipcode": "33263",
- "geo": {
- "lat": "-31.8129",
- "lng": "62.5342"
- }
- },
- "phone": "(254)954-1289",
- "website": "demarco.info",
- "company": {
- "name": "Keebler LLC",
- "catchPhrase": "User-centric fault-tolerant solution",
- "bs": "revolutionize end-to-end systems"
- }
- }
- },
- {
- "user": {
- "id": "5"
- }
- }
- ]
+ "vkontakte": {
+ "account": {
+ "login": "+375291660762",
+ "password": "PuV6j_.2&$m9h?UYY",
+ "token": "vk1.a.561gn7U4rn2BEzsWNwjS60U1UYG6Xg1ji83IyUzWVwVd1E5E5MDxkrlCzVkvtDd9GudMzfdQoLemln0O-O0kogmg-XMjiu6HUJfTqLz8VXKMmb9cnnjKNlp-bO0kFS02GQqlVjebADYaalef6dTOXZbiUN9idqKe2VgUef1gh7yu0GBiqUgNaRPBYzBgPKoI"
+ },
+ "photoFromAlbum": {
+ "id": "457252090"
}
- ]
+ }
} \ No newline at end of file