Skip to content

Instantly share code, notes, and snippets.

View vitaliiSmokov's full-sized avatar

Vitalii Smokov vitaliiSmokov

View GitHub Profile
pm.sendRequest({
url: environment.host + "url" + environment.a_signup + "url",
method: 'GET',
}, function(err, response) {
//запись в переменную ответа
var code = response.json();
//копирование в переменную код юзера
pm.environment.set("code_signup", code.code);
var random_id = parseInt(Math.random() * 10000);
pm.environment.set("random_id", random_id);
var domain = pm.environment.get("domain");
pm.sendRequest({
url: "https://api"+domain+"./signup",
method: 'POST',
header: {
'Content-Type': 'application/json',
},
pm.sendRequest({
url: '{{your url}}',
method: 'POST',
header: {
'Content-Type': 'multipart/form-data',
},
body: {
mode: 'formdata',
formdata: [
@vitaliiSmokov
vitaliiSmokov / .gitlab-ci.yml
Created December 10, 2020 15:53 — forked from daicham/.gitlab-ci.yml
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@vitaliiSmokov
vitaliiSmokov / LocalStorage.java
Created October 16, 2020 11:16 — forked from dariodiaz/LocalStorage.java
Java: WebDriver and LocalStorage
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
public class LocalStorage {
private JavascriptExecutor js;
public LocalStorage(WebDriver webDriver) {
this.js = (JavascriptExecutor) webDriver;
}
@vitaliiSmokov
vitaliiSmokov / how to learn advanced automation.md
Created July 27, 2020 13:00 — forked from yashaka/how to learn advanced automation.md
Навчання для просунутих автоматизаторів?

Навчання для просунутих автоматизаторів?

Зустрів тут питання на теренах ком’юніті – «курси для просунутих автоматизаторів? ну так щоб швидко в’їхати в тему, якщо в іншій вже шариш...»

Дуже круто знати підбірку таких курсів, ага :) Я от не знаю... Якщо у кого є що порадити – кидайте посилання в коменти;)

Мова йде про ресурси типу:

  • learnxinyminutes.com/ для швидкого знайомства з синтаксисом мови, якщо іншу вже знаєш
  • koans для швидкої практики в синтаксисі
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@vitaliiSmokov
vitaliiSmokov / Add_Existing_Project_To_Git.md
Created February 5, 2020 09:20 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@vitaliiSmokov
vitaliiSmokov / example.md
Created November 4, 2019 13:26 — forked from sdnts/example.md
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});
@vitaliiSmokov
vitaliiSmokov / install.sh
Created November 1, 2019 14:51 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`