Skip to content

Instantly share code, notes, and snippets.

View pbezpal's full-sized avatar

Pavel pbezpal

  • Russia
View GitHub Profile
@pbezpal
pbezpal / test.scala
Last active September 9, 2020 07:49
gatling.io
import BasicLoad.start
import Requests.usersLogin
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.core.scenario.Simulation
import io.socket.client.{Ack, IO, Socket}
import io.socket.emitter.Emitter
import org.json.JSONObject
import scala.concurrent.duration._
import BasicLoad.start
import Requests.usersLogin
import io.gatling.core.ConfigKeys.socket
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.core.scenario.Simulation
import io.gatling.jsonpath
import io.socket.client.{IO, Socket}
import io.socket.emitter.Emitter
import io.socket.emitter.Emitter.Listener
@pbezpal
pbezpal / result test artillery
Last active August 18, 2020 10:08
scenario.yml
Started phase 0 (Ramping up the load), duration: 1s @ 13:06:44(+0300) 2020-08-17
Login users 9000 on server
Report @ 13:06:49(+0300) 2020-08-17
Elapsed time: 4 seconds
Scenarios launched: 1
Scenarios completed: 1
Requests completed: 3
Mean response/sec: 0.86
Response time (msec):
min: 0.8
nexus | 2020-07-13 13:46:01,135+0000 ERROR [qtp1659810936-183] admin org.sonatype.nexus.coreui.UploadResource - Unable to perform upload to repository roschat-client.deb
nexus | java.io.IOException: unknown object in stream: 19
nexus | at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source)
nexus | at org.bouncycastle.openpgp.PGPSecretKeyRingCollection.<init>(Unknown Source)
nexus | at org.sonatype.nexus.repository.apt.internal.gpg.AptSigningFacet.readSecretKey(AptSigningFacet.java:170)
nexus | at org.sonatype.nexus.repository.apt.internal.gpg.AptSigningFacet.signInline(AptSigningFacet.java:108)
nexus | at org.sonatype.nexus.repository.apt.internal.hosted.AptHostedFacet.rebuildIndexes(AptHostedFacet.java:177)
nexus | at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:49)
nexus | at org.sonatype.nexus.repository.apt.internal.hosted.AptHostedFacet.ingestAsset(AptHostedFacet.java:133)
nexus
@pbezpal
pbezpal / Stacktrace selenide
Last active June 10, 2020 14:18
Stacktrace selenide after run test
unknown error: cannot find Chrome binary
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'aefda8d05b43', ip: '172.20.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-9-amd64', java.version: '1.8.0_171'
Driver info: driver.version: SelenideDriver
selenide.url: https://testing2.ros.chat:1110/
selenide.baseUrl: https://testing2.ros.chat:1110
remote stacktrace: #0 0x5608a5a81579 <unknown>
org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
C:\Users\pbezpal\Desktop>cmd.exe /k selenium-side-runner -w 1 -c "browserName=chrome" --filter Monitoring D:\Project\ITPhone_Firelink\ver.8.0\Tests\Selenium_IDE\Monitoring.side
info: Running D:/Project/ITPhone_Firelink/ver.8.0/Tests/Selenium_IDE/Monitoring.side
RUNS ./Monitoring.test.js
RUNS ./Monitoring.test.js
PASS ./Monitoring.test.js (22.792s)
Monitoring
√ Monitoring (17542ms)
C:\Users\pbezpal\Desktop>cmd.exe /k selenium-side-runner -w 1 -c "browserName=firefox" --filter Monitoring D:\Project\ITPhone_Firelink\ver.8.0\Tests\Selenium_IDE\Monitoring.side
info: Running D:/Project/ITPhone_Firelink/ver.8.0/Tests/Selenium_IDE/Monitoring.side
FAIL ./Monitoring.test.js
● Test suite failed to run
NoSuchSessionError: This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used.
at promise.finally (../../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/webdriver.js:726:38)
at Object.thenFinally [as finally] (../../AppData/Roaming/npm/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/promise.js:126:11)
{
"id": "4d169963-4652-47c9-bbfb-25bc26eda1cf",
"version": "2.0",
"name": "Monitoring",
"url": "http://172.22.50.100:88/",
"tests": [{
"id": "e1a0c8ac-dce0-4a8b-88af-25c873621623",
"name": "Func auth",
"commands": [{
"id": "ebe87063-5030-4ec5-b2aa-664f6beb7b3e",
C:\Users\pbezpal>selenium-side-runner -w 1 -c "browserName=firefox" --filter logout D:\Project\ITPhone_Firelink\ver.8.0\Tests\Selenium_IDE\itphone.side
info: Running D:/Project/ITPhone_Firelink/ver.8.0/Tests/Selenium_IDE/itphone.side
FAIL ./logout.test.js (13.46s)
logout
× 5_check_auth (6713ms)
● logout › 5_check_auth
ElementClickInterceptedError: Element <a class="logout_user"> is not clickable at point (235,72) because another element <div class="blockUI blockOverlay"> obscures it