Skip to content

Instantly share code, notes, and snippets.

View Ebazhanov's full-sized avatar
👋

Evgenii Bazhanov Ebazhanov

👋
View GitHub Profile
@Ebazhanov
Ebazhanov / java_homebrew.sh
Created October 21, 2017 13:08 — forked from kloudsamurai/java_homebrew.sh
Install Java via Homebrew (brew) on Mac OSX with unlimited strength JCE
brew update
brew cask install java
brew cask install jce-unlimited-strength-policy
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
@Ebazhanov
Ebazhanov / ConnectToEmailByImap.groovy
Created January 17, 2018 11:43
Support for selenium testing Connect to Email By Imap
package de.base.utils.GmailReader
import ru.yandex.qatools.allure.annotations.Step
/**
* Connect to Email By Imap
*
*/
class ConnectToEmailByImap {
@Ebazhanov
Ebazhanov / ReadGmailAccount.groovy
Created January 17, 2018 11:45
Support for selenium tests Go to Gmail "Inbox" then read received letters
package de.base.utils.GmailReader
import ru.yandex.qatools.allure.annotations.Step
import javax.mail.*
import static com.codeborne.selenide.Selenide.sleep
import static de.base.utils.GmailReader.ConnectToEmailByImap.gmailProperties
/**
@Ebazhanov
Ebazhanov / SshConnection.groovy
Created January 17, 2018 11:49
Establish connection by SSH to DataBase
package de.base.utils.SQL_connection
import com.jcraft.jsch.JSch
import com.jcraft.jsch.JSchException
import com.jcraft.jsch.Session
import com.jcraft.jsch.SftpException
import de.base.utils.AllOthersUtils.EnvProperties
import org.testng.annotations.Test
import ru.yandex.qatools.allure.annotations.Step
@Ebazhanov
Ebazhanov / DateProvider.groovy
Created January 17, 2018 11:50
For testing purpose we need to manipulate with DATE and TIME This class provide all necessary FORMAT of required date and time
package de.base.utils.AllOthersUtils
import java.text.DateFormat
import java.text.SimpleDateFormat
/**
* For testing purpose we need to manipulate with DATE and TIME
* This class provide all necessary FORMAT of required date and time
*/
@Ebazhanov
Ebazhanov / Selenide cheat sheet
Last active February 2, 2019 18:02 — forked from makolesnik/Selenide cheat sheet
Selenide cheat sheet to create concise UI tests in Java. What is Selenide? Selenide is a wrapper for Selenium WebDriver. http://selenide.org/
=Navigating=
baseUrl = "http://site.com";
open("/login");
open("http://google.com");
switchTo().frame($("#myFrame").toWebElement());
=WebDriver=
getWebDriver().findElement(By.id("username")); // import static com.codeborne.selenide.WebDriverRunner.getWebDriver;
//
// **** Kitchen Sink Tests ****
//
// This app was developed to demonstrate
// how to write tests in Cypress utilizing
// all of the available commands
//
// Feel free to modify this spec in your
// own application as a jumping off point
@Ebazhanov
Ebazhanov / GitCheatShceet
Created January 15, 2020 13:44
My GitCheatShceet
Remove Git cache:
`git rm -r -f --cached .`
Rebase with:
`git rebase -i develop`
@Ebazhanov
Ebazhanov / Go simple webserver
Created April 21, 2020 22:08 — forked from monkrus/Go simple webserver
Write web server in 5 lines of code
package main
import (
"log"
"net/http"
)
func main() {
//root path handles EVERY request received
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
@Ebazhanov
Ebazhanov / is:issue is:open
Created April 23, 2020 20:10
Direct GitHub searches. -> Search links that point directly to suitable issues to contribute to on GitHub.
is:issue is:open label:beginner
is:issue is:open label:easy
is:issue is:open label:first-timers-only
is:issue is:open label:good-first-bug
is:issue is:open label:"good first issue"
is:issue is:open label:starter
is:issue is:open label:up-for-grabs