Skip to content

Instantly share code, notes, and snippets.

View test.scala
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._
View My_test_gatlin.scala
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
View result test artillery
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
View Nexus logs
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 Jun 10, 2020
Stacktrace selenide after run test
View Stacktrace selenide
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'
View Test in browser chrome
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)
View Test in the browser firefox
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)
View test codes
{
"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",
View gist:116aab2ffeb8cab28ddff721637830ea
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