├── AllureTestNG ├── Doc │ └── jenkins job ├── .gitignore └── src │ ├── test │ ├── resources │ │ ├── allure.properties │ │ ├── suites │ │ │ ├── AllTestsTogather.xml │ │ │ └── AllTestsTogatherWithRetryListener.xml │ │ ├── testng.xml │ │ └── log4j.properties │ └── java │ │ └── org │ │ └── automation │ │ └── unitTests │ │ ├── TestWithDescription.java │ │ └── TestWithFeatures.java │ └── main │ └── java │ └── org │ └── automation │ └── testng │ ├── annotation │ └── AppId.java │ ├── listeners │ └── RetryListener.java │ └── ReTry.java ├── SoapUi ├── testcases │ └── app.properties ├── src │ ├── main │ │ └── resources │ │ │ └── soapui.properties │ └── test │ │ └── java │ │ └── org │ │ └── automation │ │ └── TestRequest.java ├── .gitignore ├── README.md └── pom.xml ├── Serenity-Junit ├── Doc │ ├── page_object.txt │ ├── project structure │ └── step_defination.txt ├── .gitignore └── src │ ├── test │ ├── resources │ │ ├── zip_serenity.conf.zip │ │ └── features │ │ │ ├── search │ │ │ └── narrative.txt │ │ │ └── display_product │ │ │ └── narrative.txt │ └── java │ │ └── org │ │ └── automation │ │ ├── examples │ │ └── ManagedPages_Examples.java │ │ ├── suits │ │ └── TestRegressionSuit.java │ │ └── tests │ │ └── TestOpenCart.java │ └── main │ └── java │ └── org │ └── automation │ ├── model │ ├── SessionVariables.java │ ├── Pet.java │ └── OrderCostSummary.java │ ├── steps │ └── serenity │ │ └── SearchSteps.java │ └── pages │ └── opencart │ ├── HomePage.java │ ├── SearchResultPage.java │ └── SearchPanel.java ├── ChromeHeadless-Selenium ├── Logs │ └── chrome.log ├── Screenshots │ └── readme.md ├── src │ └── test │ │ └── java │ │ └── automation │ │ └── TestExamples.java ├── .gitignore └── README.md ├── pylenium └── readme.md ├── WiniumJunit ├── src │ └── main │ │ ├── resources │ │ ├── test.properties │ │ ├── app.properties │ │ └── winium.properties │ │ └── java │ │ └── org │ │ └── automation │ │ └── win │ │ └── app │ │ └── config │ │ └── WiniumOptionsForNotePad.java ├── run_driver.cmd ├── vmConfig.jpg ├── VMsavingFIle.jpg ├── server_running.JPG ├── project_structure.JPG └── .gitignore ├── pytest-allure └── readme.md ├── sikulix-junit ├── src │ ├── test │ │ ├── resources │ │ │ └── test.properties │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ └── putty │ │ │ ├── tests │ │ │ └── Login.java │ │ │ └── core │ │ │ ├── PuttyTestBase.java │ │ │ └── TestTimeOutPuttyTest.java │ └── main │ │ ├── resources │ │ └── sikuli.properties │ │ └── java │ │ └── org │ │ └── automation │ │ ├── app │ │ ├── CLI.java │ │ └── putty │ │ │ └── ui │ │ │ ├── forms │ │ │ ├── About.java │ │ │ ├── Session.java │ │ │ └── Terminal.java │ │ │ ├── common │ │ │ ├── TopBar.java │ │ │ ├── LeftPanel.java │ │ │ └── BottomItems.java │ │ │ ├── Components │ │ │ ├── Radio.java │ │ │ ├── Buttons.java │ │ │ ├── Scroll.java │ │ │ └── TextBox.java │ │ │ └── UiBase.java │ │ ├── actions │ │ └── StartPutty.java │ │ ├── Application.java │ │ ├── utils │ │ ├── AppProperties.java │ │ └── ImageUtil.java │ │ └── putty │ │ └── core │ │ └── ScreenFactory.java ├── .gitignore └── Doc │ └── readme.md ├── junit-fitnesse ├── src │ ├── test │ │ ├── resources │ │ │ └── plugins.properties │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ └── CalculatorTest.java │ └── main │ │ └── java │ │ └── org │ │ └── automation │ │ └── Calculator.java ├── .gitignore └── README.md ├── JfrUnit-example ├── .gitignore ├── readme.md └── src │ ├── test │ └── java │ │ └── org │ │ └── example │ │ └── jftunit │ │ ├── suites │ │ ├── SlaTests.java │ │ └── RegressionTests.java │ │ └── JftUnitTestBase.java │ └── main │ └── java │ └── org │ └── example │ └── jftunit │ └── Main.java ├── pytest-allure-behave └── readme.md ├── junit5-executable ├── test-classes.ini ├── .gitignore ├── package.properties ├── runner.properties └── src │ └── main │ ├── java │ └── org │ │ └── automation │ │ └── junit5 │ │ ├── reporting │ │ ├── TestStatus.java │ │ ├── CalculatorReporter.java │ │ └── TestLoggerProcessor.java │ │ ├── app │ │ └── Calculator.java │ │ ├── tests │ │ ├── AdhocTests.java │ │ ├── ExceptionTests.java │ │ └── CalculatorJunit5TestBase.java │ │ ├── config │ │ └── PackageConfigLoader.java │ │ └── runner │ │ └── Junit5Runner.java │ └── resources │ └── log4j.properties ├── testng-executable ├── suite.ini ├── .gitignore ├── doc │ ├── results.PNG │ ├── outputFolder.PNG │ ├── test_folder.png │ └── RunningFromJar.png ├── test.properties ├── src │ └── main │ │ ├── java │ │ └── org │ │ │ └── automation │ │ │ └── example │ │ │ ├── app │ │ │ └── Calculator.java │ │ │ ├── tests │ │ │ ├── AdhocTests.java │ │ │ ├── ExceptionTests.java │ │ │ └── CalculatorBaseTest.java │ │ │ ├── TestingApplication.java │ │ │ └── runner │ │ │ └── TestNgRunner.java │ │ └── resources │ │ └── log4j.properties ├── suites │ ├── ExceptionTests.xml │ └── AdhocTests.xml └── readme.md ├── Allure2-Junit5 ├── data │ └── addition.csv ├── allure-example.bat ├── allure-example.sh ├── build-show-report.bat ├── build-show-report.sh ├── src │ └── test │ │ ├── resources │ │ ├── META-INF │ │ │ └── services │ │ │ │ └── io.qameta.allure.listener.StepLifecycleListener │ │ ├── allure.properties │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── automation │ │ └── junit5 │ │ ├── tests │ │ ├── dynamic │ │ │ └── TestFactoryExample.java │ │ ├── extentions │ │ │ ├── TestRegisterExtensionExample.java │ │ │ └── TestExtendWithExample.java │ │ ├── template │ │ │ └── TestTemplateExample.java │ │ ├── TestTempDirExample.java │ │ ├── TestDisplayNameGenerationExample.java │ │ ├── TestRepeatExample.java │ │ └── parameterized │ │ │ ├── TestValueSourceExample.java │ │ │ └── TestMethodSource.java │ │ ├── core │ │ ├── CalTest.java │ │ ├── StringUtil.java │ │ ├── LogProcessor.java │ │ ├── NameGenerator.java │ │ └── CalculatorTest.java │ │ ├── support │ │ ├── StringParameters.java │ │ ├── MyIntDataValueSource.java │ │ ├── MyCharDataValueSource.java │ │ ├── MyLongDataValueSource.java │ │ ├── MyShortDataValueSource.java │ │ ├── MyBooleanDataValueSource.java │ │ ├── MyDoubleDataValueSource.java │ │ ├── MyFloatDataValueSource.java │ │ ├── MyStringArraySource.java │ │ ├── data │ │ │ ├── ClassA.java │ │ │ └── ClassB.java │ │ ├── MyClassAsValueSource.java │ │ ├── VariableStream.java │ │ ├── ErrorStringProvider.java │ │ └── UserAggregator.java │ │ └── suites │ │ ├── AllureExamples.java │ │ ├── releases │ │ ├── ReleaseBSuite.java │ │ └── ReleaseASuite.java │ │ ├── SlowTests.java │ │ ├── QuickAndParallelTests.java │ │ └── FunctionalTestSuite.java ├── images │ └── mave-build-congif.JPG ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties └── .gitignore ├── selenium-allure2-junit5 └── web-ui-test │ ├── properties │ ├── browser │ │ ├── firefox.properties │ │ ├── ie.properties │ │ ├── edge.properties │ │ ├── safari.properties │ │ └── chrome.properties │ ├── address │ │ └── address.prod.properties │ ├── default │ │ ├── META-INF │ │ │ └── services │ │ │ │ └── ru.yandex.qatools.allure.experimental.LifecycleListener │ │ └── allure.properties │ ├── user │ │ ├── user.dev.properties │ │ └── user.prod.properties │ ├── webdriver.properties │ ├── env │ │ ├── env.dormant.properties │ │ ├── env.dev9.properties │ │ ├── env.local.properties │ │ ├── env.dev10.properties │ │ ├── env.dev1.properties │ │ ├── env.dev2.properties │ │ ├── env.prod.properties │ │ └── env.ecomdev01.properties │ └── test.properties │ ├── src │ ├── test │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ └── webtest │ │ │ ├── tests │ │ │ ├── popup │ │ │ │ └── addaddress │ │ │ │ │ └── readme.md │ │ │ ├── features │ │ │ │ ├── ProductNavigationTests.java │ │ │ │ └── AddToCartTests.java │ │ │ └── page │ │ │ │ └── HelpPageTests.java │ │ │ ├── suits │ │ │ ├── SignInFeatureTest.java │ │ │ ├── pages │ │ │ │ └── ViewCartTestSuite.java │ │ │ ├── CreateAccountFeatureTest.java │ │ │ ├── RegressionTests.java │ │ │ ├── releasses │ │ │ │ └── Feb_15_regressions.java │ │ │ └── GroupTestsSuite.java │ │ │ ├── RunAll.java │ │ │ ├── steps │ │ │ └── singlepage │ │ │ │ └── DepartmentSteps.java │ │ │ └── core │ │ │ └── CommonElementTests.java │ └── main │ │ └── java │ │ └── org │ │ └── automation │ │ └── webtest │ │ ├── App.java │ │ ├── pages │ │ ├── readme.md │ │ ├── popups │ │ │ ├── PopupBase.java │ │ │ └── ContactUsPopup.java │ │ └── singlepages │ │ │ ├── AlcoholRestriction.java │ │ │ └── Department.java │ │ └── core │ │ └── DriverWindow.java │ └── lib │ └── ojdbc8.jar ├── junit-easytest ├── src │ ├── test │ │ ├── resources │ │ │ ├── test.properties │ │ │ ├── calculator2.csv │ │ │ ├── calculator3.csv │ │ │ ├── mydata.csv │ │ │ ├── cal.csv │ │ │ ├── calculator.xls │ │ │ ├── calculator2.xls │ │ │ ├── calculator.csv │ │ │ ├── log4j.properties │ │ │ └── calculator.xml │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ ├── UnitTests │ │ │ └── SimpleTest.java │ │ │ ├── testsExamples │ │ │ ├── suits │ │ │ │ └── ParallelSuitExample.java │ │ │ ├── TestPropertiesExample.java │ │ │ ├── ParallelTestExample.java │ │ │ └── TestWithPolicyExample.java │ │ │ ├── core │ │ │ ├── DataDrivenTest.java │ │ │ ├── DataDrivenTest_withPolicy.java │ │ │ └── DataDrivenTest_withDefaultAnnotation.java │ │ │ ├── policy │ │ │ ├── PerformanceTestPolicyExample.java │ │ │ ├── RegressionPolicyExample.java │ │ │ └── PolicyExample.java │ │ │ ├── customtype │ │ │ ├── CustomObjectConverterTest.java │ │ │ └── TestCustomObjectConverter.java │ │ │ └── reports │ │ │ └── DefaultReportExample.java │ └── main │ │ └── java │ │ └── org │ │ └── automation │ │ ├── customtype │ │ ├── MyDataService.java │ │ └── MyDataTypeConverter.java │ │ └── Calculator.java └── .gitignore ├── playwright-java └── readme.md ├── junit5-test-container └── readme.md ├── picocli-esamples └── readme.md ├── AzimoBlog ├── test-output │ ├── old │ │ ├── Default suite │ │ │ ├── groups.html │ │ │ ├── Default test.properties │ │ │ ├── reporter-output.html │ │ │ ├── methods-not-run.html │ │ │ ├── main.html │ │ │ ├── index.html │ │ │ ├── testng.xml.html │ │ │ └── classes.html │ │ └── index.html │ ├── failed.png │ ├── passed.png │ ├── skipped.png │ ├── bullet_point.png │ ├── collapseall.gif │ ├── navigator-bullet.png │ ├── testng.css │ ├── testng-failed.xml │ └── Default suite │ │ └── testng-failed.xml ├── .gitignore ├── src │ ├── Azimo │ │ └── com │ │ │ ├── Managers │ │ │ ├── LogManager.java │ │ │ └── ExceptionManager.java │ │ │ └── pages │ │ │ └── AzimoPageBase.java │ └── tests │ │ └── Nevigation.java └── README.md ├── Selenoid-examples └── readme.md ├── healenium-testing └── readme.md ├── visual-testing-with-automation └── readme.md ├── JerseyTest ├── .gitignore ├── pom.xml └── README.md ├── Extent-Junit ├── .gitignore ├── ide_running.jpg ├── generated_repot.jpg ├── project_structure.jpg └── src │ ├── main │ └── java │ │ └── org │ │ └── automation │ │ └── calculator │ │ └── Calculator.java │ └── test │ └── java │ └── org │ └── automation │ └── tests │ └── suites │ └── AllTests.java ├── Extent-TestNG ├── .gitignore ├── project.jpg ├── run_ide.jpg ├── ExtentReport.jpg ├── src │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ └── calculator │ │ │ └── Calculator.java │ └── test │ │ └── java │ │ └── resources │ │ └── testng.xml └── README.md ├── RestAssured ├── .gitignore └── src │ └── test │ └── java │ └── org │ └── automation │ ├── core │ └── TestBase.java │ ├── suits │ └── RegressionTest.java │ └── tests │ ├── readme.md │ └── ExceptionTests.java ├── webdriver.io-examples └── readme.md ├── Selenide-Junit ├── properties │ ├── opencart │ │ ├── env.dev.properties │ │ ├── env.qa.properties │ │ └── env.prod.properties │ ├── default │ │ ├── META-INF │ │ │ └── services │ │ │ │ └── ru.yandex.qatools.allure.experimental.LifecycleListener │ │ ├── allure.properties │ │ └── log4j.properties │ └── test.properties ├── .gitignore ├── src │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ ├── pages │ │ │ ├── PageBase.java │ │ │ ├── webgoat │ │ │ │ ├── HomePage.java │ │ │ │ └── LoginPage.java │ │ │ └── opencart │ │ │ │ ├── AboutUs.java │ │ │ │ ├── common │ │ │ │ ├── ProductCatagoryLinkCreator.java │ │ │ │ └── ProductOpenCartPageCommon.java │ │ │ │ ├── HomeOpenCartPage.java │ │ │ │ ├── ResultOpenCartPage.java │ │ │ │ ├── core │ │ │ │ └── OpenCartPageBase.java │ │ │ │ └── LoginOpenCartPage.java │ │ │ ├── steps │ │ │ └── webgoat │ │ │ │ └── UserSteps.java │ │ │ ├── core │ │ │ └── WebGoatConfig.java │ │ │ └── model │ │ │ └── WebGoatUser.java │ └── test │ │ └── java │ │ └── org │ │ └── automation │ │ ├── core │ │ └── TestBase.java │ │ ├── tests │ │ ├── google │ │ │ └── InitialTest.java │ │ └── DummyTest.java │ │ └── validation │ │ ├── LinkValidator.java │ │ └── validator.java └── README.md ├── Serenity-RestAssured ├── .gitignore ├── src │ └── test │ │ └── java │ │ ├── org │ │ └── automation │ │ │ └── suits │ │ │ └── RegressionTest.java │ │ └── resources │ │ └── log4j.properties └── README.md ├── jelenium-example └── readme.md ├── Junit-cucumber ├── readme.md ├── .gitignore └── src │ ├── main │ └── java │ │ └── org │ │ ├── calculator │ │ └── Calculator.java │ │ ├── automation │ │ └── CompletePage.java │ │ └── pages │ │ ├── SearchPanel.java │ │ ├── HomePage.java │ │ └── SearchResultPage.java │ └── test │ ├── resources │ └── features │ │ ├── calculator.feature │ │ ├── search.feature │ │ └── search2.feature │ └── java │ └── org │ └── automation │ └── tests │ ├── CalculatorTests.java │ ├── CucumberTest.java │ └── OpencartTests.java ├── justtestlah-example └── readme.md ├── .gitignore ├── Allure-cucumber ├── src │ ├── test │ │ ├── resources │ │ │ ├── junit-platform.properties │ │ │ ├── allure.properties │ │ │ └── features │ │ │ │ └── calculator.feature │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ └── CucumberRunner.java │ └── main │ │ └── java │ │ └── org │ │ └── calculator │ │ └── Calculator.java └── .gitignore ├── karate-junit-allure └── readme.md ├── artillery-example └── readme.md ├── awaitility-junit └── readme.md ├── gauge-java ├── img │ └── install.jpg ├── .gitignore ├── pom.xml └── readme.md ├── AssertJ-DB-Example └── readme.md ├── Junit-report ├── .gitignore ├── README.md └── src │ ├── test │ └── java │ │ └── org │ │ └── automation │ │ └── TestCalculator.java │ └── main │ └── java │ └── org │ └── automation │ └── Calculator.java ├── junitbenchmark ├── .gitignore ├── charts │ ├── .benchmarks.mv.db │ ├── org.performance.TestCalculator.jsonp │ ├── org.performance.TestCalculator_MethodLevelExample.jsonp │ ├── benchmark-lists2.jsonp │ ├── org.performance.custom.PerfTest_custom.jsonp │ └── benchmark-lists.jsonp └── src │ ├── test │ ├── resources │ │ ├── jub.properties │ │ └── data │ │ │ └── hsqldb │ │ │ ├── data.sql │ │ │ └── schema.sql │ └── java │ │ └── org │ │ └── performance │ │ └── custom │ │ └── PerfTest_custom.java │ └── main │ └── java │ └── org │ └── performance │ └── Calculator.java ├── k6-perf-test ├── images │ └── first-test.jpg └── opencart-perf-test │ ├── first-run-single-user-opencart.jpg │ └── opencart-perf-test.js ├── spock-junit5 ├── readme.md ├── .gitignore ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── example │ └── spock │ └── junit5 │ └── Main.java ├── Playwright-Testing ├── images │ └── install.jpg └── readme.md ├── htmlelement-eamples ├── src │ └── test │ │ └── java │ │ ├── org │ │ ├── owasp │ │ │ └── webgoat │ │ │ │ └── WebGoatPageBase.java │ │ ├── automation │ │ │ ├── exceptions │ │ │ │ └── CannotClickElementException.java │ │ │ ├── PageBase.java │ │ │ └── RandomizeHelper.java │ │ └── pages │ │ │ └── utils │ │ │ └── UtilBase.java │ │ └── com │ │ └── opencart │ │ └── demo │ │ └── OpenCartPageBase.java ├── readme.md └── Doc │ └── How to use ├── jprotractor-ngWebDriver └── readme.md ├── Cucumber-Parallel ├── generated_runners.JPG ├── .gitignore ├── src │ ├── test │ │ ├── resources │ │ │ └── org │ │ │ │ └── automation │ │ │ │ ├── calculator-add.feature │ │ │ │ ├── calculator-sub.feature │ │ │ │ ├── calculator-mul.feature │ │ │ │ ├── calculator-div.feature │ │ │ │ └── cucumber-runner.java.vm │ │ └── java │ │ │ └── org │ │ │ └── automation │ │ │ └── CucumberRunner.java │ └── main │ │ └── java │ │ └── org │ │ └── automation │ │ └── Calculator.java └── README.md ├── jira-java-example └── .gitignore ├── WebDriverManager ├── src │ └── test │ │ ├── resources │ │ └── test.properties │ │ └── java │ │ └── org │ │ └── automation │ │ └── core │ │ └── App.java ├── .gitignore └── README.md ├── jspringbot └── readme.md ├── Junit-XmlUnit ├── .gitignore ├── src │ └── test │ │ ├── resources │ │ ├── test2a.xml │ │ └── test1a.xml │ │ └── java │ │ └── TestXmlCompare.java ├── README.md └── pom.xml ├── AllureJunit ├── .gitignore ├── src │ └── test │ │ ├── resources │ │ ├── allure.properties │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── automation │ │ ├── core │ │ ├── MyRunner.java │ │ └── TestRule_ScreenShotOnEachStep.java │ │ ├── suits │ │ └── TestSuitForAttachment.java │ │ └── unitTests │ │ ├── TestWithDescription.java │ │ └── TestWithFeatures.java └── README.md ├── Allure-cucumber-failsafe ├── .gitignore ├── src │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── calculator │ │ │ └── Calculator.java │ └── test │ │ ├── resources │ │ ├── allure.properties │ │ └── features │ │ │ └── calculator.feature │ │ └── java │ │ └── org │ │ └── automation │ │ └── CucumberRunner.java └── README.md ├── frameworkium └── readme.md ├── unirest-apt-test ├── src │ └── test │ │ └── java │ │ └── org │ │ └── automation │ │ └── unirest │ │ ├── core │ │ └── ApiTestBase.java │ │ ├── tests │ │ └── UserTest.java │ │ └── config │ │ └── PropertyLoader.java ├── readme.md └── .gitignore ├── PyAutoGUI-example └── readme.md └── zalenium └── readme.md /AllureTestNG/Doc/jenkins job: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /SoapUi/testcases/app.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Serenity-Junit/Doc/page_object.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Serenity-Junit/Doc/project structure: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ChromeHeadless-Selenium/Logs/chrome.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /SoapUi/src/main/resources/soapui.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pylenium/readme.md: -------------------------------------------------------------------------------- 1 | # pylenium example(todo) -------------------------------------------------------------------------------- /WiniumJunit/src/main/resources/test.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pytest-allure/readme.md: -------------------------------------------------------------------------------- 1 | # Pytest with allure 2 | -------------------------------------------------------------------------------- /sikulix-junit/src/test/resources/test.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /junit-fitnesse/src/test/resources/plugins.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /JfrUnit-example/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .git 3 | .target/ -------------------------------------------------------------------------------- /pytest-allure-behave/readme.md: -------------------------------------------------------------------------------- 1 | # Pytest with behave 2 | -------------------------------------------------------------------------------- /junit5-executable/test-classes.ini: -------------------------------------------------------------------------------- 1 | AdhocTests 2 | ExceptionTests -------------------------------------------------------------------------------- /testng-executable/suite.ini: -------------------------------------------------------------------------------- 1 | AdhocTests.xml 2 | ExceptionTests.xml -------------------------------------------------------------------------------- /Allure2-Junit5/data/addition.csv: -------------------------------------------------------------------------------- 1 | a,b,result 2 | 5,7,12 3 | 2.2,7.5,9.7 -------------------------------------------------------------------------------- /ChromeHeadless-Selenium/Screenshots/readme.md: -------------------------------------------------------------------------------- 1 | # Screenshot from chrome -------------------------------------------------------------------------------- /junit5-executable/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | target 3 | *iml 4 | test-output -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/browser/firefox.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WiniumJunit/run_driver.cmd: -------------------------------------------------------------------------------- 1 | @echo 2 | cd driver 3 | Winium.Desktop.Driver.exe -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/test.properties: -------------------------------------------------------------------------------- 1 | test.title=Easy Test Demos -------------------------------------------------------------------------------- /playwright-java/readme.md: -------------------------------------------------------------------------------- 1 | # playwright example with Java 2 | - init plan 3 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/address/address.prod.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /junit5-test-container/readme.md: -------------------------------------------------------------------------------- 1 | # [Test Container](https://www.testcontainers.org/) -------------------------------------------------------------------------------- /picocli-esamples/readme.md: -------------------------------------------------------------------------------- 1 | 2 | modern JVM CLI utils 3 | 4 | https://picocli.info/ -------------------------------------------------------------------------------- /testng-executable/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .iml 3 | target 4 | output 5 | test-output -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/calculator2.csv: -------------------------------------------------------------------------------- 1 | testAdd,a,b,expected 2 | ,11.0,16.0,27 -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/calculator3.csv: -------------------------------------------------------------------------------- 1 | testAdd,a,b,expected 2 | ,25.0,25.0,50 -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/groups.html: -------------------------------------------------------------------------------- 1 |

Groups used for this test run

-------------------------------------------------------------------------------- /Selenoid-examples/readme.md: -------------------------------------------------------------------------------- 1 | Selenium in Docker 2 | 3 | https://aerokube.com/selenoid/latest/ -------------------------------------------------------------------------------- /WiniumJunit/src/main/resources/app.properties: -------------------------------------------------------------------------------- 1 | notepad.path=C:\\Windows\\System32\\notepad.exe -------------------------------------------------------------------------------- /healenium-testing/readme.md: -------------------------------------------------------------------------------- 1 | # Healenium 2 | 3 | # [Main Project Link](https://healenium.io/) -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/Default test.properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=Default test] -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/mydata.csv: -------------------------------------------------------------------------------- 1 | testParameter,id 2 | ,253 3 | ,256 4 | ,257 5 | -------------------------------------------------------------------------------- /visual-testing-with-automation/readme.md: -------------------------------------------------------------------------------- 1 | # Main [Project Link](https://automotion.itarray.net/) -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/reporter-output.html: -------------------------------------------------------------------------------- 1 |

Reporter output

-------------------------------------------------------------------------------- /JerseyTest/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .idea 3 | .classpath 4 | *.project 5 | target 6 | .settings 7 | *.iml -------------------------------------------------------------------------------- /junit5-executable/package.properties: -------------------------------------------------------------------------------- 1 | package.name=org.automation.junit5.tests 2 | class.pattern=.*Tests -------------------------------------------------------------------------------- /Extent-Junit/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .idea 3 | .classpath 4 | *.project 5 | target 6 | .settings 7 | *.iml -------------------------------------------------------------------------------- /Extent-TestNG/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .idea 3 | .classpath 4 | *.project 5 | target 6 | .settings 7 | *.iml -------------------------------------------------------------------------------- /RestAssured/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .idea 3 | .classpath 4 | *.project 5 | target 6 | .settings 7 | *.iml -------------------------------------------------------------------------------- /webdriver.io-examples/readme.md: -------------------------------------------------------------------------------- 1 | # swebdriver.io examples (todo) 2 | - Project [link](https://webdriver.io) -------------------------------------------------------------------------------- /Allure2-Junit5/allure-example.bat: -------------------------------------------------------------------------------- 1 | mvnw -Dtest.suite=org.automation.junit5.suites.FunctionalTestSuite.class test -------------------------------------------------------------------------------- /Selenide-Junit/properties/opencart/env.dev.properties: -------------------------------------------------------------------------------- 1 | app.host=localhost 2 | host.protocol=http 3 | host.port=80 -------------------------------------------------------------------------------- /Serenity-RestAssured/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .idea 3 | .classpath 4 | *.project 5 | target 6 | .settings 7 | *.iml -------------------------------------------------------------------------------- /jelenium-example/readme.md: -------------------------------------------------------------------------------- 1 | # jelenium examples (todo) 2 | - Main [project](https://github.com/lukelast/jelenium) -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/cal.csv: -------------------------------------------------------------------------------- 1 | testsubFromCSV,a,b,expected 2 | ,25.0,15.0,10.0 3 | ,100.0, 50.0, 50.0 -------------------------------------------------------------------------------- /Allure2-Junit5/allure-example.sh: -------------------------------------------------------------------------------- 1 | ./mvnw -Dtest.suite=org.automation.junit5.suites.FunctionalTestSuite.class clean test -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/methods-not-run.html: -------------------------------------------------------------------------------- 1 |

Methods that were not run

2 |
-------------------------------------------------------------------------------- /Allure2-Junit5/build-show-report.bat: -------------------------------------------------------------------------------- 1 | ./mvnw site io.qameta.allure:allure-maven:report io.qameta.allure:allure-maven:serve -------------------------------------------------------------------------------- /Allure2-Junit5/build-show-report.sh: -------------------------------------------------------------------------------- 1 | ./mvnw site io.qameta.allure:allure-maven:report io.qameta.allure:allure-maven:serve -------------------------------------------------------------------------------- /Junit-cucumber/readme.md: -------------------------------------------------------------------------------- 1 | # Junit4 Cucumber Project 2 | 3 | ### Major Library 4 | - Selenium 5 | - Junit 6 | - Cucumber -------------------------------------------------------------------------------- /Selenide-Junit/properties/opencart/env.qa.properties: -------------------------------------------------------------------------------- 1 | app.host=demo.opencart.com 2 | host.protocol=https 3 | host.port=443 -------------------------------------------------------------------------------- /justtestlah-example/readme.md: -------------------------------------------------------------------------------- 1 | # [justtestlah](https://github.com/martinschneider/justtestlah/tree/master/justtestlah-demos) -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.idea 3 | *.classpath 4 | *.project 5 | target/ 6 | *.settings 7 | .class 8 | bin/ 9 | obj/ 10 | -------------------------------------------------------------------------------- /Allure-cucumber/src/test/resources/junit-platform.properties: -------------------------------------------------------------------------------- 1 | cucumber.plugin=io.qameta.allure.cucumber7jvm.AllureCucumber7Jvm -------------------------------------------------------------------------------- /Extent-TestNG/project.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Extent-TestNG/project.jpg -------------------------------------------------------------------------------- /Extent-TestNG/run_ide.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Extent-TestNG/run_ide.jpg -------------------------------------------------------------------------------- /WiniumJunit/vmConfig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/WiniumJunit/vmConfig.jpg -------------------------------------------------------------------------------- /karate-junit-allure/readme.md: -------------------------------------------------------------------------------- 1 | # karate Example 2 | 3 | # Technology Stack 4 | - Java 5 | - Maven 6 | - Karate 7 | - Allure 8 | -------------------------------------------------------------------------------- /ChromeHeadless-Selenium/src/test/java/automation/TestExamples.java: -------------------------------------------------------------------------------- 1 | package automation; 2 | 3 | public class TestExamples { 4 | } 5 | -------------------------------------------------------------------------------- /Extent-Junit/ide_running.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Extent-Junit/ide_running.jpg -------------------------------------------------------------------------------- /WiniumJunit/VMsavingFIle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/WiniumJunit/VMsavingFIle.jpg -------------------------------------------------------------------------------- /artillery-example/readme.md: -------------------------------------------------------------------------------- 1 | # [artillery](artillery.io) 2 | 3 | 4 | https://haquemousume.medium.com/socket-load-test-4f24d2a2f6d9 -------------------------------------------------------------------------------- /awaitility-junit/readme.md: -------------------------------------------------------------------------------- 1 | # Awaitility Examples with Junit 2 | 3 | #Main Link : 4 | https://github.com/awaitility/awaitility 5 | -------------------------------------------------------------------------------- /gauge-java/img/install.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/gauge-java/img/install.jpg -------------------------------------------------------------------------------- /sikulix-junit/src/main/resources/sikuli.properties: -------------------------------------------------------------------------------- 1 | default.wait=2.0 2 | image.app.folder= 3 | image.test.folder= 4 | report.folder= -------------------------------------------------------------------------------- /Extent-TestNG/ExtentReport.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Extent-TestNG/ExtentReport.jpg -------------------------------------------------------------------------------- /Selenide-Junit/properties/default/META-INF/services/ru.yandex.qatools.allure.experimental.LifecycleListener: -------------------------------------------------------------------------------- 1 | com.sony.connect.core.TestBase -------------------------------------------------------------------------------- /WiniumJunit/server_running.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/WiniumJunit/server_running.JPG -------------------------------------------------------------------------------- /AssertJ-DB-Example/readme.md: -------------------------------------------------------------------------------- 1 | # AssertJ-DB example 2 | - DB assertions 3 | - 4 | - db unit tests 5 | 6 | ### Project moved to its own repo 7 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/AzimoBlog/test-output/failed.png -------------------------------------------------------------------------------- /AzimoBlog/test-output/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/AzimoBlog/test-output/passed.png -------------------------------------------------------------------------------- /AzimoBlog/test-output/skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/AzimoBlog/test-output/skipped.png -------------------------------------------------------------------------------- /Extent-Junit/generated_repot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Extent-Junit/generated_repot.jpg -------------------------------------------------------------------------------- /Junit-report/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.idea 3 | *.classpath 4 | *.project 5 | target/ 6 | *.settings 7 | .class 8 | bin/ 9 | obj/ 10 | -------------------------------------------------------------------------------- /WiniumJunit/project_structure.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/WiniumJunit/project_structure.JPG -------------------------------------------------------------------------------- /junit-fitnesse/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | target/ 6 | .settings/ 7 | .class 8 | bin/ 9 | obj/ 10 | -------------------------------------------------------------------------------- /junitbenchmark/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | target/ 6 | .settings/ 7 | .class 8 | bin/ 9 | obj/ 10 | -------------------------------------------------------------------------------- /testng-executable/doc/results.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/testng-executable/doc/results.PNG -------------------------------------------------------------------------------- /testng-executable/test.properties: -------------------------------------------------------------------------------- 1 | suite.folder=suites 2 | suite.config=suite.ini 3 | test.name=Calculator Test 4 | enableDefaultListeners=true -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/resources/META-INF/services/io.qameta.allure.listener.StepLifecycleListener: -------------------------------------------------------------------------------- 1 | org.automation.junit5.core.CalculatorTestBase -------------------------------------------------------------------------------- /AzimoBlog/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | -------------------------------------------------------------------------------- /Extent-Junit/project_structure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Extent-Junit/project_structure.jpg -------------------------------------------------------------------------------- /JfrUnit-example/readme.md: -------------------------------------------------------------------------------- 1 | # [Main Project](https://github.com/moditect/jfrunit) 2 | 3 | # Basics methods 4 | 5 | ### Annnotations 6 | 7 | ### Tips -------------------------------------------------------------------------------- /k6-perf-test/images/first-test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/k6-perf-test/images/first-test.jpg -------------------------------------------------------------------------------- /spock-junit5/readme.md: -------------------------------------------------------------------------------- 1 | # Spoke Framework 2 | - Junit Examples 3 | 4 | # [Main Project] (https://spockframework.org/spock/docs/2.3/all_in_one.html) -------------------------------------------------------------------------------- /AzimoBlog/test-output/bullet_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/AzimoBlog/test-output/bullet_point.png -------------------------------------------------------------------------------- /AzimoBlog/test-output/collapseall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/AzimoBlog/test-output/collapseall.gif -------------------------------------------------------------------------------- /ChromeHeadless-Selenium/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.idea 3 | *.classpath 4 | *.project 5 | target/ 6 | *.settings 7 | .class 8 | bin/ 9 | obj/ 10 | -------------------------------------------------------------------------------- /JfrUnit-example/src/test/java/org/example/jftunit/suites/SlaTests.java: -------------------------------------------------------------------------------- 1 | package org.example.jftunit.suites; 2 | 3 | public class SlaTests { 4 | } 5 | -------------------------------------------------------------------------------- /Playwright-Testing/images/install.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Playwright-Testing/images/install.jpg -------------------------------------------------------------------------------- /Selenide-Junit/properties/opencart/env.prod.properties: -------------------------------------------------------------------------------- 1 | app.host=demo.opencart.com 2 | host.protocol=https 3 | host.port=443 4 | username= 5 | password= -------------------------------------------------------------------------------- /gauge-java/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | logs -------------------------------------------------------------------------------- /htmlelement-eamples/src/test/java/org/owasp/webgoat/WebGoatPageBase.java: -------------------------------------------------------------------------------- 1 | package org.owasp.webgoat; 2 | 3 | public class WebGoatPageBase { 4 | } 5 | -------------------------------------------------------------------------------- /jprotractor-ngWebDriver/readme.md: -------------------------------------------------------------------------------- 1 | # Jprotractor & ngWebdriver combined examples (todo) 2 | - [ngWebDriver](https://github.com/paul-hammant/ngWebDriver) -------------------------------------------------------------------------------- /junit5-executable/runner.properties: -------------------------------------------------------------------------------- 1 | is.package.runner=false 2 | is.class.runner=true 3 | package.file=package.properties 4 | class.config=test.classes.ini -------------------------------------------------------------------------------- /sikulix-junit/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | -------------------------------------------------------------------------------- /testng-executable/doc/outputFolder.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/testng-executable/doc/outputFolder.PNG -------------------------------------------------------------------------------- /testng-executable/doc/test_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/testng-executable/doc/test_folder.png -------------------------------------------------------------------------------- /Cucumber-Parallel/generated_runners.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Cucumber-Parallel/generated_runners.JPG -------------------------------------------------------------------------------- /jira-java-example/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.idea 3 | *.classpath 4 | *.project 5 | target/ 6 | *.settings 7 | .class 8 | bin/ 9 | obj/ 10 | *.jar 11 | -------------------------------------------------------------------------------- /junitbenchmark/charts/.benchmarks.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/junitbenchmark/charts/.benchmarks.mv.db -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/tests/popup/addaddress/readme.md: -------------------------------------------------------------------------------- 1 | # How to remove all saved address from existing user. -------------------------------------------------------------------------------- /testng-executable/doc/RunningFromJar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/testng-executable/doc/RunningFromJar.png -------------------------------------------------------------------------------- /Allure2-Junit5/images/mave-build-congif.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Allure2-Junit5/images/mave-build-congif.JPG -------------------------------------------------------------------------------- /AzimoBlog/test-output/navigator-bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/AzimoBlog/test-output/navigator-bullet.png -------------------------------------------------------------------------------- /JfrUnit-example/src/test/java/org/example/jftunit/suites/RegressionTests.java: -------------------------------------------------------------------------------- 1 | package org.example.jftunit.suites; 2 | 3 | public class RegressionTests { 4 | } 5 | -------------------------------------------------------------------------------- /SoapUi/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | -------------------------------------------------------------------------------- /htmlelement-eamples/src/test/java/com/opencart/demo/OpenCartPageBase.java: -------------------------------------------------------------------------------- 1 | package com.opencart.demo; 2 | 3 | public abstract class OpenCartPageBase { 4 | } 5 | -------------------------------------------------------------------------------- /Allure2-Junit5/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Allure2-Junit5/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /WebDriverManager/src/test/resources/test.properties: -------------------------------------------------------------------------------- 1 | default.browser=chrome 2 | #wdm.targetPath=./target/webdriver 3 | url.protocol=https 4 | base.url=demo.opencart.com -------------------------------------------------------------------------------- /jspringbot/readme.md: -------------------------------------------------------------------------------- 1 | # jspringbot (todo) 2 | 3 | # Main Project [Link](http://www.jspringbot.org/) 4 | 5 | # Example [Source](https://github.com/jspringbot?page=1) -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/default/META-INF/services/ru.yandex.qatools.allure.experimental.LifecycleListener: -------------------------------------------------------------------------------- 1 | com.freshdirect.testing.core.TestBase -------------------------------------------------------------------------------- /Cucumber-Parallel/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | -------------------------------------------------------------------------------- /Junit-XmlUnit/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | -------------------------------------------------------------------------------- /Junit-XmlUnit/src/test/resources/test2a.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 134 4 | 5 | 5 6 | 7 | 6 8 | 9 | 7 10 | 11 | -------------------------------------------------------------------------------- /Junit-cucumber/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | -------------------------------------------------------------------------------- /WebDriverManager/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/calculator.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/junit-easytest/src/test/resources/calculator.xls -------------------------------------------------------------------------------- /Allure-cucumber/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | .allure -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/main.html: -------------------------------------------------------------------------------- 1 | Results for Default suite 2 | Select a result on the left-hand pane. 3 | -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/calculator2.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/junit-easytest/src/test/resources/calculator2.xls -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/lib/ojdbc8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/selenium-allure2-junit5/web-ui-test/lib/ojdbc8.jar -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/CLI.java: -------------------------------------------------------------------------------- 1 | package org.automation.app; 2 | 3 | /** 4 | * Created by shantonu on 7/7/16. 5 | */ 6 | public class CLI { 7 | } 8 | -------------------------------------------------------------------------------- /AllureJunit/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | Images 12 | logs 13 | .allure -------------------------------------------------------------------------------- /AllureTestNG/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | Images 12 | logs 13 | .allure -------------------------------------------------------------------------------- /Serenity-Junit/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | output/ 12 | aggregate_report/ -------------------------------------------------------------------------------- /WiniumJunit/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | driver 13 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/user/user.dev.properties: -------------------------------------------------------------------------------- 1 | user1=loginuser@freshdirect.com 2 | password1=testing 3 | user2=loginuser@freshdirect.com 4 | password2=testing -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/user/user.prod.properties: -------------------------------------------------------------------------------- 1 | user1=loginuser@freshdirect.com 2 | password1=testing 3 | user2=loginuser@freshdirect.com 4 | password2=testing -------------------------------------------------------------------------------- /Allure-cucumber-failsafe/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | .project 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | .allure -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/dynamic/TestFactoryExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests.dynamic; 2 | 3 | public class TestFactoryExample { 4 | } 5 | -------------------------------------------------------------------------------- /Serenity-Junit/src/test/resources/zip_serenity.conf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/Serenity-Junit/src/test/resources/zip_serenity.conf.zip -------------------------------------------------------------------------------- /junit-easytest/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.iml 3 | .idea 4 | .classpath 5 | target/ 6 | .settings/ 7 | .class 8 | bin/ 9 | obj/ 10 | *.log 11 | TestReports 12 | Reports 13 | *.pdf -------------------------------------------------------------------------------- /Selenide-Junit/.gitignore: -------------------------------------------------------------------------------- 1 | reports 2 | .project 3 | *.iml 4 | .idea 5 | .classpath 6 | target/ 7 | .settings/ 8 | .class 9 | bin/ 10 | obj/ 11 | screenshots 12 | driver 13 | build 14 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/PageBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages; 2 | 3 | /*** 4 | * Base page for webgoa 5 | */ 6 | public abstract class PageBase { 7 | } 8 | -------------------------------------------------------------------------------- /frameworkium/readme.md: -------------------------------------------------------------------------------- 1 | # frameworkium test project (todo) 2 | 3 | # Main project [link](https://frameworkium.github.io/) 4 | 5 | # Maven Commands 6 | 7 | # Reports 8 | 9 | # Integration -------------------------------------------------------------------------------- /AzimoBlog/src/Azimo/com/Managers/LogManager.java: -------------------------------------------------------------------------------- 1 | package Azimo.com.Managers; 2 | 3 | public class LogManager { 4 | public static void performDefaultLogging(String message){ 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Serenity-Junit/src/test/resources/features/search/narrative.txt: -------------------------------------------------------------------------------- 1 | Feature: Search 2 | 3 | In order to find stuff I would like to 4 | As a buyer 5 | I want to be able to search for interesting things -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/webdriver.properties: -------------------------------------------------------------------------------- 1 | browser.maximize=true 2 | #if maximize is false then x, y will be honored 3 | browser.width=1024 4 | browser.height=768 5 | 6 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/suits/SignInFeatureTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.suits; 2 | 3 | public interface SignInFeatureTest { 4 | } 5 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/actions/StartPutty.java: -------------------------------------------------------------------------------- 1 | package org.automation.actions; 2 | 3 | /** 4 | * Created by shantonu on 7/7/16. 5 | */ 6 | public class StartPutty { 7 | } 8 | -------------------------------------------------------------------------------- /sikulix-junit/src/test/java/org/automation/putty/tests/Login.java: -------------------------------------------------------------------------------- 1 | package org.automation.putty.tests; 2 | 3 | /** 4 | * Created by shantonu on 7/6/16. 5 | */ 6 | public class Login { 7 | } 8 | -------------------------------------------------------------------------------- /AzimoBlog/src/Azimo/com/Managers/ExceptionManager.java: -------------------------------------------------------------------------------- 1 | package Azimo.com.Managers; 2 | 3 | public class ExceptionManager { 4 | public static void performDefaultAction(Exception e){ 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Junit-XmlUnit/src/test/resources/test1a.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 134 5 | 6 | 5 7 | 8 | 6 9 | 10 | 7 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Junit-XmlUnit/README.md: -------------------------------------------------------------------------------- 1 | # Xml Unit Example 2 | 3 | A simple XML compare example 4 | 5 | # Target 6 | 7 | In a project, it is very common to compare XML attributes/data.This project have some examples. -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/reporting/TestStatus.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.reporting; 2 | 3 | public enum TestStatus { 4 | PASSED,FAILEd,ABORTED, DISABLED; 5 | } 6 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/browser/ie.properties: -------------------------------------------------------------------------------- 1 | js.wait=15 2 | implicit.wait=7 3 | browser.wait=10 4 | page.element.wait=5 5 | page.frame.wait=5 6 | page.wait=10 7 | step.default.wait=500 -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/suits/pages/ViewCartTestSuite.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.suits.pages; 2 | 3 | 4 | public class ViewCartTestSuite { 5 | } 6 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/extentions/TestRegisterExtensionExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests.extentions; 2 | 3 | public class TestRegisterExtensionExample { 4 | } 5 | -------------------------------------------------------------------------------- /k6-perf-test/opencart-perf-test/first-run-single-user-opencart.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarkershantonu/Automation-Getting-Started/HEAD/k6-perf-test/opencart-perf-test/first-run-single-user-opencart.jpg -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/browser/edge.properties: -------------------------------------------------------------------------------- 1 | js.wait=15 2 | implicit.wait=7 3 | browser.wait=10 4 | page.element.wait=5 5 | page.frame.wait=5 6 | page.wait=10 7 | step.default.wait=500 -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/browser/safari.properties: -------------------------------------------------------------------------------- 1 | js.wait=15 2 | implicit.wait=15 3 | browser.wait=10 4 | page.element.wait=10 5 | page.frame.wait=5 6 | page.wait=10 7 | step.default.wait=500 -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/suits/CreateAccountFeatureTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.suits; 2 | 3 | public interface CreateAccountFeatureTest { 4 | } 5 | -------------------------------------------------------------------------------- /unirest-apt-test/src/test/java/org/automation/unirest/core/ApiTestBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.unirest.core; 2 | 3 | /** 4 | * Created by shantonu on 4/7/2021 5 | */ 6 | public class ApiTestBase { 7 | } 8 | -------------------------------------------------------------------------------- /unirest-apt-test/src/test/java/org/automation/unirest/tests/UserTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.unirest.tests; 2 | 3 | /** 4 | * Created by shantonu on 4/7/2021 5 | */ 6 | public class UserTest { 7 | } 8 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/webgoat/HomePage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.webgoat; 2 | 3 | import org.automation.pages.PageBase; 4 | 5 | public class HomePage extends PageBase { 6 | } 7 | -------------------------------------------------------------------------------- /junit-fitnesse/README.md: -------------------------------------------------------------------------------- 1 | # Fitnesse Maven Junit 2 | 3 | A complete example of fitness test run 4 | 5 | 1. Local PC 6 | 7 | 2. CI servers/test indentures. 8 | 9 | 10 | # Run 11 | 12 | mvn verify -Pwiki -------------------------------------------------------------------------------- /junit-fitnesse/src/main/java/org/automation/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | 4 | public class Calculator { 5 | public double add(double a, double b){ 6 | return a+b; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /k6-perf-test/opencart-perf-test/opencart-perf-test.js: -------------------------------------------------------------------------------- 1 | import {sleep} from "k6"; 2 | import http from "k6/http"; 3 | 4 | export default function(){ 5 | http.get("https://demo.opencart.com"); 6 | sleep(5); 7 | } -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/browser/chrome.properties: -------------------------------------------------------------------------------- 1 | js.wait=15 2 | implicit.wait=7 3 | browser.wait=10 4 | page.element.wait=5 5 | page.frame.wait=5 6 | page.wait=10 7 | step.default.wait=500 8 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.dormant.properties: -------------------------------------------------------------------------------- 1 | api.host= 2 | api.port= 3 | db.url= 4 | db.client=jdbc:oracle:thin 5 | db.host= 6 | db.port=1521 7 | db.schema= 8 | db.user= 9 | db.password= -------------------------------------------------------------------------------- /sikulix-junit/src/test/java/org/automation/putty/core/PuttyTestBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.putty.core; 2 | 3 | /** 4 | * Created by shantonu on 7/6/16. 5 | */ 6 | public abstract class PuttyTestBase { 7 | } 8 | -------------------------------------------------------------------------------- /Serenity-Junit/src/test/resources/features/display_product/narrative.txt: -------------------------------------------------------------------------------- 1 | Feature: Display product 2 | 3 | In order to decide if I want to make a purchase 4 | As a buyer 5 | I want to be able to see details about a product -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/tests/features/ProductNavigationTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.tests.features; 2 | 3 | public class ProductNavigationTests { 4 | } 5 | -------------------------------------------------------------------------------- /unirest-apt-test/src/test/java/org/automation/unirest/config/PropertyLoader.java: -------------------------------------------------------------------------------- 1 | package org.automation.unirest.config; 2 | 3 | /** 4 | * Created by shantonu on 4/7/2021 5 | */ 6 | public class PropertyLoader { 7 | } 8 | -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/model/SessionVariables.java: -------------------------------------------------------------------------------- 1 | package org.automation.model; 2 | 3 | /** 4 | * Created by john on 12/11/14. 5 | */ 6 | public enum SessionVariables { 7 | SELECTED_LISTING 8 | } 9 | -------------------------------------------------------------------------------- /PyAutoGUI-example/readme.md: -------------------------------------------------------------------------------- 1 | # PyAutoGUI example (todo) 2 | - Simple python lib for GUI testing 3 | 4 | 5 | # Installation 6 | 7 | pip install pyautogui 8 | 9 | # Main Project [link](https://pyautogui.readthedocs.io/en/latest/) -------------------------------------------------------------------------------- /Serenity-Junit/src/test/java/org/automation/examples/ManagedPages_Examples.java: -------------------------------------------------------------------------------- 1 | package org.automation.examples; 2 | 3 | /** 4 | * Created by shantonu on 9/26/16. 5 | * todo 6 | */ 7 | public class ManagedPages_Examples { 8 | } 9 | -------------------------------------------------------------------------------- /htmlelement-eamples/readme.md: -------------------------------------------------------------------------------- 1 | # Html Element finding with selenium (todo) 2 | - Yandex http element 3 | 4 | # Architecture : Design by component 5 | 6 | # Design to reuse elements 7 | 8 | # Webgoat 9 | - Run webgoat server locally. -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/App.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest; 2 | 3 | /** 4 | * @author sarker.shantonu@gmail.com 5 | * @created 10/3/2020 6 | */ 7 | public class App { 8 | } 9 | -------------------------------------------------------------------------------- /sikulix-junit/Doc/readme.md: -------------------------------------------------------------------------------- 1 | for demo purpose , we will automate putty 2 | 3 | 4 | Download putty from here... http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 5 | 6 | we will use this as demo project for automation. 7 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/RunAll.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest; 2 | 3 | /** 4 | * @author sarker.shantonu@gmail.com 5 | * @created 10/3/2020 6 | */ 7 | public class RunAll { 8 | } 9 | -------------------------------------------------------------------------------- /unirest-apt-test/readme.md: -------------------------------------------------------------------------------- 1 | # Unirest Example (ToDo) 2 | 3 | 4 | # Links 5 | - [Document](http://kong.github.io/unirest-java/) 6 | - [Source](https://github.com/Kong/unirest-java) 7 | - [Maven](https://mvnrepository.com/search?q=com.konghq) -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/extentions/TestExtendWithExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests.extentions; 2 | 3 | /*** 4 | * Alternative junit 4 @Rule 5 | */ 6 | public class TestExtendWithExample { 7 | } 8 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/Application.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | /** 4 | * Created by shantonu on 7/7/16. 5 | */ 6 | public class Application { 7 | public static void main(String[] args) { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/index.html: -------------------------------------------------------------------------------- 1 | Results for Default suite 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/core/CalTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.core; 2 | 3 | import org.junit.jupiter.api.Tag; 4 | import org.junit.jupiter.api.Test; 5 | 6 | @Tag("CalT2") 7 | @Test 8 | public @interface CalTest { 9 | } 10 | -------------------------------------------------------------------------------- /Allure-cucumber/src/main/java/org/calculator/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.calculator; 2 | 3 | /** 4 | * Created by shantonu on 5/9/16. 5 | */ 6 | public class Calculator { 7 | public double add(double a, double b){ 8 | return a+b; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Allure2-Junit5/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /Junit-cucumber/src/main/java/org/calculator/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.calculator; 2 | 3 | /** 4 | * Created by shantonu on 5/9/16. 5 | */ 6 | public class Calculator { 7 | public double add(double a, double b){ 8 | return a+b; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/steps/webgoat/UserSteps.java: -------------------------------------------------------------------------------- 1 | package org.automation.steps.webgoat; 2 | 3 | import org.automation.model.WebGoatUser; 4 | 5 | public class UserSteps { 6 | public void loginAs(WebGoatUser user){ 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/core/StringUtil.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.core; 2 | 3 | public class StringUtil { 4 | public static boolean isBlank(final String input){ 5 | return (null==input)||(input.trim().isEmpty()); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/template/TestTemplateExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests.template; 2 | 3 | import org.automation.junit5.core.CalculatorTestBase; 4 | 5 | public class TestTemplateExample extends CalculatorTestBase { 6 | } 7 | -------------------------------------------------------------------------------- /WiniumJunit/src/main/resources/winium.properties: -------------------------------------------------------------------------------- 1 | init.launcher.delay=5 2 | winium.host=localhost 3 | winium.port=9999 4 | winium.driver.path=./driver/Winium.Desktop.Driver.exe 5 | winium.log.path=./logs/winium.log 6 | vm.host=192.168.1.9 7 | vm.port=9999 8 | vm.folder=C:\\winium\\ -------------------------------------------------------------------------------- /Allure-cucumber-failsafe/src/main/java/org/calculator/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.calculator; 2 | 3 | /** 4 | * Created by shantonu on 5/9/16. 5 | */ 6 | public class Calculator { 7 | public double add(double a, double b){ 8 | return a+b; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AllureJunit/src/test/resources/allure.properties: -------------------------------------------------------------------------------- 1 | allure.issues.tracker.pattern=http://localhost:9000/issues/%s 2 | allure.tests.management.pattern=http://localhost:9000/tests/%s 3 | #defining allure result directory, default="allure-results". 4 | allure.results.directory=target/allure-results -------------------------------------------------------------------------------- /AllureTestNG/src/test/resources/allure.properties: -------------------------------------------------------------------------------- 1 | allure.issues.tracker.pattern=http://localhost:9000/issues/%s 2 | allure.tests.management.pattern=http://localhost:9000/tests/%s 3 | #defining allure result directory, default="allure-results". 4 | allure.results.directory=target/allure-results -------------------------------------------------------------------------------- /Junit-cucumber/src/main/java/org/automation/CompletePage.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | import org.automation.PageBase; 4 | 5 | /** 6 | * Created by shantonu on 6/4/16. 7 | */ 8 | public interface CompletePage { 9 | String getUrl(); 10 | PageBase load(); 11 | } 12 | -------------------------------------------------------------------------------- /Extent-TestNG/src/main/java/org/automation/calculator/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation.calculator; 2 | 3 | /** 4 | * Created by shantonu on 7/12/17. 5 | */ 6 | public class Calculator { 7 | public double add(double a, double b){ 8 | return a+b; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /htmlelement-eamples/Doc/How to use: -------------------------------------------------------------------------------- 1 | This project contains example of 2 | 1. How to use yandex httm elements 3 | 2. How to use yandex page factory 4 | 3. How to write helpers for those elements 5 | 6 | 7 | This is a helper project of mail Automation-UI, we can use items from here to minimize code -------------------------------------------------------------------------------- /Extent-Junit/src/main/java/org/automation/calculator/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation.calculator; 2 | 3 | /** 4 | * Created by shantonu on 7/12/17. 5 | */ 6 | public class Calculator { 7 | 8 | public double add(double a, double b){ 9 | return a+b; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/steps/serenity/SearchSteps.java: -------------------------------------------------------------------------------- 1 | package org.automation.steps.serenity; 2 | 3 | import net.thucydides.core.steps.ScenarioSteps; 4 | 5 | /** 6 | * Created by shantonu on 7/4/16. 7 | */ 8 | public class SearchSteps extends ScenarioSteps{ 9 | } 10 | -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/calculator.csv: -------------------------------------------------------------------------------- 1 | testAddFromCSV,a,b,expected 2 | ,15.0,25.0,40 3 | ,15.0,25.0,40 4 | ,15.0,25.0,40 5 | ,15.0,25.0,40 6 | ,15.0,25.0,40 7 | ,15.0,25.0,40 8 | ,15.0,25.0,40 9 | ,15.0,25.0,40 10 | ,15.0,25.0,40 11 | ,15.0,25.0,40 12 | ,900.0,250.0,1150.0 -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/utils/AppProperties.java: -------------------------------------------------------------------------------- 1 | package org.automation.utils; 2 | 3 | /** 4 | * Created by shantonu on 7/7/16. 5 | */ 6 | public class AppProperties { 7 | public static long defaultWait=25; 8 | public static double waitForImage=5.0; 9 | } 10 | -------------------------------------------------------------------------------- /zalenium/readme.md: -------------------------------------------------------------------------------- 1 | # zalenium basics (todo) 2 | 3 | - [Source](https://github.com/zalando/zalenium) 4 | - [Site] (https://opensource.zalando.com/zalenium) 5 | 6 | # Docker setup 7 | 8 | # VM setup 9 | 10 | # Related Project 11 | - [docker selenium](https://github.com/elgalu/docker-selenium) -------------------------------------------------------------------------------- /Allure-cucumber/src/test/resources/allure.properties: -------------------------------------------------------------------------------- 1 | allure.link.issue.pattern = https://jira.example.org/browse/{} 2 | #defining allure result directory, default="allure-results". 3 | allure.results.directory=target/allure-results 4 | allure.label.epic = Authentication 5 | allure.label.severity = blocker -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/AboutUs.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | import org.automation.pages.opencart.core.OpenCartPageBase; 4 | 5 | public class AboutUs extends OpenCartPageBase { 6 | public String description_css="#content > p"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /SoapUi/src/test/java/org/automation/TestRequest.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | import com.eviware.soapui.tools.SoapUITestCaseRunner; 4 | import org.junit.runner.RunWith; 5 | 6 | /** 7 | * Created by shantonu on 7/6/17. 8 | */ 9 | 10 | 11 | public class TestRequest { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/app/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.app; 2 | 3 | public class Calculator { 4 | 5 | public double add(double a, double b){return a+b;} 6 | public int add(int a, int b){return a+b;} 7 | public long add(long a, long b){return a+b;} 8 | } 9 | -------------------------------------------------------------------------------- /testng-executable/src/main/java/org/automation/example/app/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation.example.app; 2 | 3 | public class Calculator { 4 | 5 | public double add(double a, double b){return a+b;} 6 | public int add(int a, int b){return a+b;} 7 | public long add(long a, long b){return a+b;} 8 | } 9 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/StringParameters.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import java.util.stream.Stream; 4 | 5 | public class StringParameters { 6 | public static Stream emptyStrings(){ 7 | return Stream.of(null,""," "); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Extent-TestNG/src/test/java/resources/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/pages/readme.md: -------------------------------------------------------------------------------- 1 | # Best Practices 2 | 3 | a button should start btn_ 4 | An input field should start inp_ 5 | a dropdown drpDwn_ 6 | a label lbl_ 7 | a link lnk_ 8 | a frame frm_ 9 | a radio button rdoBtn_ 10 | an image img_ 11 | a checkbox chkbox_ 12 | -------------------------------------------------------------------------------- /Selenide-Junit/properties/default/allure.properties: -------------------------------------------------------------------------------- 1 | allure.results.directory=target/allure-results 2 | allure.link.issue.pattern=https://example.org/issue/{} 3 | allure.link.tms.pattern=https://example.org/tms/{} 4 | allure.issues.tracker.pattern=https://sony_tracker/browse/%s 5 | allure.tests.management.pattern=https://example.org/tms%s 6 | -------------------------------------------------------------------------------- /htmlelement-eamples/src/test/java/org/automation/exceptions/CannotClickElementException.java: -------------------------------------------------------------------------------- 1 | package org.automation.exceptions; 2 | 3 | /** 4 | * Created by shantonu on 6/7/16. 5 | */ 6 | public class CannotClickElementException extends Exception { 7 | public CannotClickElementException(String text) { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/core/DriverWindow.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.core; 2 | 3 | 4 | public enum DriverWindow { 5 | FIRST(0), 6 | SECOND(1); 7 | public int index; 8 | private DriverWindow(int index){ 9 | this.index = index; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/test.properties: -------------------------------------------------------------------------------- 1 | #prod, dev 2 | active.env=ecomdev01 3 | active.env.user=dev 4 | active.env.address=dev 5 | active.env.payment=dev 6 | active.env.product=dev 7 | active.web.thread=5 8 | test.thread.count=2 9 | browser.default=chrome 10 | delta=0.01 11 | # todo loading 12 | page.wait=5 13 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/resources/allure.properties: -------------------------------------------------------------------------------- 1 | allure.results.directory=target/allure-results 2 | allure.link.issue.pattern=https://example.org/issue/{} 3 | allure.link.tms.pattern=https://example.org/tms/{} 4 | allure.issues.tracker.pattern=https:/tracker.mycompany.com/browse/%s 5 | allure.tests.management.pattern=https://example.org/tms%s 6 | -------------------------------------------------------------------------------- /Junit-report/README.md: -------------------------------------------------------------------------------- 1 | # Simple Report Example for Junit (TODO) 2 | Junit Test Reports similar to cucumber pretty reports 3 | This is default surefire report 4 | 5 | # Target 6 | Run & See junit reports 7 | - Report Location ```/target/surefire-reports``` 8 | 9 | # Run command 10 | 11 | ```shell 12 | mvn clean test 13 | ``` 14 | 15 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/suits/RegressionTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.suits; 2 | 3 | 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.Suite; 6 | 7 | @RunWith(Suite.class) 8 | @Suite.SuiteClasses({ 9 | 10 | }) 11 | public class RegressionTests { 12 | } 13 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/TestTempDirExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests; 2 | 3 | /*** 4 | * todo https://www.baeldung.com/junit-5-temporary-directory 5 | * https://junit.org/junit5/docs/5.4.0-RC1/api/org/junit/jupiter/api/support/io/TempDirectory.html 6 | */ 7 | public class TestTempDirExample { 8 | } 9 | -------------------------------------------------------------------------------- /junit-easytest/src/main/java/org/automation/customtype/MyDataService.java: -------------------------------------------------------------------------------- 1 | package org.automation.customtype; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Created by shantonu on 8/28/16. 7 | */ 8 | public interface MyDataService { 9 | public List getAll(String searchText); 10 | public MyDataType get(Long id); 11 | } 12 | -------------------------------------------------------------------------------- /junit-easytest/src/main/java/org/automation/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | /** 4 | * Created by shantonu on 7/15/16. 5 | */ 6 | public class Calculator { 7 | public Double add(Double a, Double b){ 8 | return a+b; 9 | } 10 | public Double sub(Double a, Double b){ 11 | return a-b; 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /junitbenchmark/src/test/resources/jub.properties: -------------------------------------------------------------------------------- 1 | jub.ignore.annotations=false 2 | jub.ignore.callgc=true 3 | jub.consumers=CONSOLE,H2 4 | 5 | jub.db.file=charts/.benchmarks 6 | #jub.xml.file= 7 | #jub.mysql.url= 8 | jub.charts.dir=charts 9 | 10 | #jub.rounds.warmup= 11 | #jub.rounds.benchmark= 12 | #jub.concurrency= 13 | 14 | jub.customkey=AddBenchMark -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.dev9.properties: -------------------------------------------------------------------------------- 1 | app.protocol=https 2 | api.host=dev9.nj01 3 | api.port=443 4 | api.version=/mobileapi/v/1 5 | app.url=https://dev9.nj01 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=devora12cscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.local.properties: -------------------------------------------------------------------------------- 1 | app.protocol=http 2 | api.host=localhost 3 | api.port=8080 4 | api.version=/mobileapi/v/1 5 | app.url=https://dev9.nj01 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=devora12cscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/forms/About.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.forms; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class About extends UiBase { 9 | public About(String folder) { 10 | super(folder); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /AllureTestNG/src/test/resources/suites/AllTestsTogather.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /RestAssured/src/test/java/org/automation/core/TestBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import org.junit.Rule; 4 | import org.junit.rules.ErrorCollector; 5 | 6 | /** 7 | * Created by SSarker on 8/4/2018. 8 | */ 9 | public abstract class TestBase { 10 | 11 | @Rule 12 | public ErrorCollector collector = new ErrorCollector(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/default/allure.properties: -------------------------------------------------------------------------------- 1 | allure.results.directory=target/allure-results 2 | allure.link.issue.pattern=https://example.org/issue/{} 3 | allure.link.tms.pattern=https://example.org/tms/{} 4 | allure.issues.tracker.pattern=https://jira.freshdirect.com/browse/%s 5 | allure.tests.management.pattern=https://example.org/tms%s 6 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.dev10.properties: -------------------------------------------------------------------------------- 1 | app.protocol=https 2 | api.host=dev10.nj01 3 | api.port=443 4 | api.version=/mobileapi/v/1 5 | app.url=https://dev10.nj01 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=devora12cscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST -------------------------------------------------------------------------------- /JfrUnit-example/src/test/java/org/example/jftunit/JftUnitTestBase.java: -------------------------------------------------------------------------------- 1 | package org.example.jftunit; 2 | 3 | import org.junit.BeforeClass; 4 | import org.junit.jupiter.api.Test; 5 | import org.moditect.jfrunit.JfrEventTest; 6 | 7 | @JfrEventTest 8 | public abstract class JftUnitTestBase { 9 | @BeforeClass 10 | public static void beforeClass(){} 11 | } 12 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.dev1.properties: -------------------------------------------------------------------------------- 1 | app.protocol=https 2 | api.host=dev1.nj01 3 | api.port=443 4 | api.version=/mobileapi/v/1 5 | app.url=https://dev1.nj01 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=storedevdbscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST 13 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.dev2.properties: -------------------------------------------------------------------------------- 1 | app.protocol=https 2 | api.host=dev2.nj01 3 | api.port=443 4 | api.version=/mobileapi/v/1 5 | app.url=https://dev2.nj01 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=storedevdbscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST 13 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/common/TopBar.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.common; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class TopBar extends UiBase { 9 | 10 | public TopBar(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/testng.css: -------------------------------------------------------------------------------- 1 | .invocation-failed, .test-failed { background-color: #DD0000; } 2 | .invocation-percent, .test-percent { background-color: #006600; } 3 | .invocation-passed, .test-passed { background-color: #00AA00; } 4 | .invocation-skipped, .test-skipped { background-color: #CCCC00; } 5 | 6 | .main-page { 7 | font-size: x-large; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/Components/Radio.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.Components; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class Radio extends UiBase { 9 | 10 | public Radio(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.prod.properties: -------------------------------------------------------------------------------- 1 | app.protocol=https 2 | api.host=www.freshdirect.com 3 | api.port=443 4 | api.version=/mobileapi/v/1 5 | app.url=https://www.freshdirect.com 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=devora12cscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/Components/Buttons.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.Components; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class Buttons extends UiBase{ 9 | 10 | public Buttons(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/Components/Scroll.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.Components; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class Scroll extends UiBase { 9 | 10 | public Scroll(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/Components/TextBox.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.Components; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class TextBox extends UiBase { 9 | 10 | public TextBox(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/common/LeftPanel.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.common; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class LeftPanel extends UiBase { 9 | 10 | public LeftPanel(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Selenide-Junit/src/test/java/org/automation/core/TestBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import org.junit.jupiter.api.BeforeAll; 4 | 5 | /** 6 | * Created by shantonu on 8/14/17. 7 | */ 8 | public class TestBase { 9 | 10 | 11 | @BeforeAll 12 | public static void initAllTests(){ 13 | PropertyLoader.loadProperties(); 14 | } 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/properties/env/env.ecomdev01.properties: -------------------------------------------------------------------------------- 1 | app.protocol=https 2 | api.host=ecomdev01.nj01 3 | api.port=443 4 | api.version=/mobileapi/v/1 5 | app.url=https://ecomdev01.nj01 6 | db.url=jdbc:oracle:thin 7 | db.client=jdbc:oracle:thin 8 | db.host=storedevdbscan.nj01 9 | db.port=1521 10 | db.schema=devint 11 | db.user=CUST 12 | db.password=CUST 13 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/common/BottomItems.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.common; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class BottomItems extends UiBase { 9 | 10 | public BottomItems(String folder) { 11 | super(folder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /RestAssured/src/test/java/org/automation/suits/RegressionTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.suits; 2 | 3 | import org.automation.tests.BasicTests; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.Suite; 6 | 7 | /** 8 | * Created by shantonu on 12/23/16. 9 | */ 10 | @RunWith(Suite.class) 11 | @Suite.SuiteClasses({BasicTests.class}) 12 | public class RegressionTest { 13 | } 14 | -------------------------------------------------------------------------------- /Allure-cucumber-failsafe/src/test/resources/allure.properties: -------------------------------------------------------------------------------- 1 | allure.issues.tracker.pattern=http://localhost:9000/issues/%s 2 | allure.tests.management.pattern=http://localhost:9000/tests/%s 3 | #defining allure result directory, default="allure-results". 4 | #allure.results.directory= 5 | allure.results.directory=target/allure-results 6 | allure.label.epic = Authentication 7 | allure.label.severity = blocker -------------------------------------------------------------------------------- /Serenity-RestAssured/src/test/java/org/automation/suits/RegressionTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.suits; 2 | 3 | import org.automation.tests.BasicTests; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.Suite; 6 | 7 | /** 8 | * Created by shantonu on 12/23/16. 9 | */ 10 | @RunWith(Suite.class) 11 | @Suite.SuiteClasses({BasicTests.class}) 12 | public class RegressionTest { 13 | } 14 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/pages/popups/PopupBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.pages.popups; 2 | 3 | import org.automation.webtest.actions.CommonActions; 4 | import org.openqa.selenium.WebDriver; 5 | 6 | public abstract class PopupBase extends CommonActions { 7 | 8 | public PopupBase(WebDriver driver){ 9 | super(driver); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/tests/features/AddToCartTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.tests.features; 2 | 3 | 4 | import org.automation.webtest.core.TestBase; 5 | import org.junit.Before; 6 | 7 | public class AddToCartTests extends TestBase { 8 | 9 | @Before 10 | public void initTest() throws InterruptedException { 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Serenity-Junit/src/test/java/org/automation/suits/TestRegressionSuit.java: -------------------------------------------------------------------------------- 1 | package org.automation.suits; 2 | 3 | import org.automation.tests.TestOpenCart; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.Suite; 6 | 7 | /** 8 | * Created by shantonu on 9/16/16. 9 | */ 10 | 11 | @RunWith(Suite.class) 12 | @Suite.SuiteClasses({TestOpenCart.class}) 13 | public class TestRegressionSuit { 14 | } 15 | -------------------------------------------------------------------------------- /sikulix-junit/src/test/java/org/automation/putty/core/TestTimeOutPuttyTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.putty.core; 2 | 3 | import org.junit.Rule; 4 | import org.junit.rules.Timeout; 5 | 6 | 7 | /** 8 | * Created by shantonu on 7/6/16. 9 | */ 10 | public abstract class TestTimeOutPuttyTest extends PuttyTestBase { 11 | 12 | @Rule 13 | public Timeout globalTimeOut = Timeout.seconds(2); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyIntDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(ints = {10,25,35}) 10 | public @interface MyIntDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyCharDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(chars = {'a','1','*'}) 10 | public @interface MyCharDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyLongDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(longs = {10l,24l,34l}) 10 | public @interface MyLongDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyShortDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(shorts = {10,24,34}) 10 | public @interface MyShortDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/common/ProductCatagoryLinkCreator.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart.common; 2 | 3 | /** 4 | * Created by shantonu on 4/10/17. 5 | */ 6 | public class ProductCatagoryLinkCreator { 7 | 8 | public static String getCatagoryLink(int path){ 9 | return "https://demo.opencart.com/index.php?route=product/category&path=34_"+path; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/suits/releasses/Feb_15_regressions.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.suits.releasses; 2 | 3 | 4 | import org.automation.webtest.tests.page.AboutUsTests; 5 | import org.junit.runner.RunWith; 6 | import org.junit.runners.Suite; 7 | 8 | @RunWith(Suite.class) 9 | @Suite.SuiteClasses({AboutUsTests.class}) 10 | public class Feb_15_regressions { 11 | } 12 | -------------------------------------------------------------------------------- /ChromeHeadless-Selenium/README.md: -------------------------------------------------------------------------------- 1 | # Chrome Headless 2 | 3 | A simple example project to show examples on running chrome in headless mode for selenium 4 | 5 | 6 | # Ways 7 | - using Chrome Options with arguments 8 | 9 | # Current state 10 | - Not working with latest chrome with drivers. 11 | - working for chrome 63+ only 12 | 13 | # How to use this 14 | - Use this library to get Java constant to include in CLI path 15 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/core/WebGoatConfig.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import com.codeborne.selenide.SelenideConfig; 4 | 5 | public class WebGoatConfig { 6 | private SelenideConfig config; 7 | public static final String BASE_URL = "http://127.0.0.1:8080"; 8 | 9 | public WebGoatConfig() { 10 | config = new SelenideConfig(); 11 | config.baseUrl(BASE_URL); 12 | } 13 | } -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyBooleanDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(booleans = {true, false, true}) 10 | public @interface MyBooleanDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyDoubleDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(doubles = {10.25d,24.85d,35.10d}) 10 | public @interface MyDoubleDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyFloatDataValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(floats = {10.25f,24.85f,35.10f}) 10 | public @interface MyFloatDataValueSource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyStringArraySource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ValueSource; 4 | 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @ValueSource(strings = {"10+25=35", "30-20=10", "5*10=50"}) 10 | public @interface MyStringArraySource { 11 | } 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/TestDisplayNameGenerationExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests; 2 | 3 | import org.automation.junit5.core.CalculatorTestBase; 4 | import org.automation.junit5.core.NameGenerator; 5 | import org.junit.jupiter.api.DisplayNameGeneration; 6 | 7 | @DisplayNameGeneration(NameGenerator.class) 8 | public class TestDisplayNameGenerationExample extends CalculatorTestBase { 9 | } 10 | -------------------------------------------------------------------------------- /Extent-Junit/src/test/java/org/automation/tests/suites/AllTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests.suites; 2 | 3 | import org.automation.tests.TestCalculator; 4 | import org.automation.tests.TestCalculatorWithCustomRunner; 5 | import org.junit.runner.RunWith; 6 | import org.junit.runners.Suite; 7 | 8 | @RunWith(Suite.class) 9 | @Suite.SuiteClasses({TestCalculator.class, TestCalculatorWithCustomRunner.class}) 10 | public class AllTests { 11 | } 12 | -------------------------------------------------------------------------------- /AllureTestNG/src/main/java/org/automation/testng/annotation/AppId.java: -------------------------------------------------------------------------------- 1 | package org.automation.testng.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target({ElementType.METHOD}) 10 | public @interface AppId { 11 | String[] profileIds() default {}; 12 | } 13 | -------------------------------------------------------------------------------- /Selenide-Junit/properties/test.properties: -------------------------------------------------------------------------------- 1 | browser.default=chrome 2 | browser.maximize=true 3 | #if maximize is false then x, y will be honored 4 | browser.width=1024 5 | browser.height=768 6 | webdriver.chrome.driver= 7 | test.app.name=opencart 8 | test.env=qa 9 | js.wait=15 10 | implicit.wait=7 11 | browser.wait=10 12 | page.element.wait=5 13 | page.frame.wait=5 14 | page.wait=5 15 | step.default.wait=500 16 | delta=0.01 17 | webdriver.chrome.silentOutput=true -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/HomeOpenCartPage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | 4 | import org.automation.pages.opencart.common.FooterArea; 5 | import org.automation.pages.opencart.core.OpenCartPageBase; 6 | 7 | /** 8 | * Created by shantonu on 5/16/16. 9 | */ 10 | public class HomeOpenCartPage extends OpenCartPageBase { 11 | public SearchPanel search; 12 | 13 | public FooterArea footer; 14 | } 15 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/suites/AllureExamples.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.suites; 2 | 3 | import org.junit.platform.runner.JUnitPlatform; 4 | import org.junit.platform.suite.api.SelectPackages; 5 | import org.junit.runner.RunWith; 6 | 7 | /** 8 | * Created by shantonu on 4/30/2021 9 | */ 10 | @RunWith(JUnitPlatform.class) 11 | @SelectPackages({"org.automation.junit5.tests.allure"}) 12 | public class AllureExamples { 13 | } 14 | -------------------------------------------------------------------------------- /RestAssured/src/test/java/org/automation/tests/readme.md: -------------------------------------------------------------------------------- 1 | # This contains all test classes 2 | 3 | # Functional Tests 4 | - Sunny day scenarios 5 | - Boundery Scenarios 6 | - Invalid data scenarios 7 | 8 | # Exception tests/invalid data tests 9 | - for all HTTP exceptions except 200. 10 | 11 | # Basic Security Tests 12 | - CSRF 13 | - XSS 14 | - Injections (auth, SQL) 15 | 16 | # Performance Tests 17 | - Performance /Load 18 | - Performance /Security 19 | 20 | 21 | -------------------------------------------------------------------------------- /WebDriverManager/README.md: -------------------------------------------------------------------------------- 1 | # WebDriver Manager Example 2 | A simple project to show how to use web driver manager 3 | 4 | # Story 5 | I used to maintain webdriver in my way following factory & singletone. 6 | Webdriver manager makes properties easy with driver management in more smarter way. 7 | So, lets use it. 8 | # Target 9 | 10 | How to use webdriver manager in a project 11 | 12 | # How to run 13 | - mvn test 14 | 15 | - or use your IDE Junit runner 16 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/suits/GroupTestsSuite.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.suits; 2 | 3 | 4 | import org.junit.experimental.categories.Categories; 5 | import org.junit.runner.RunWith; 6 | import org.junit.runners.Suite; 7 | 8 | 9 | @RunWith(Categories.class) 10 | @Categories.IncludeCategory(CreateAccountFeatureTest.class) 11 | @Suite.SuiteClasses({ 12 | 13 | }) 14 | 15 | public class GroupTestsSuite { 16 | } 17 | -------------------------------------------------------------------------------- /junitbenchmark/src/test/resources/data/hsqldb/data.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO Bug (title,summary,Description ,AttachmentPath,exceptions,logs,foundDateTime,foundTags) 2 | VALUES ('title','summary','Description ','AttachmentPath','exceptions','logs','foundDateTime','foundTags'); 3 | 4 | INSERT INTO Bug (title,summary,Description ,AttachmentPath,exceptions,logs,foundDateTime,foundTags) 5 | VALUES ('title2','summary2','Description2 ','AttachmentPath2','exceptions2','logs2','foundDateTime2','foundTags2'); -------------------------------------------------------------------------------- /junitbenchmark/src/test/resources/data/hsqldb/schema.sql: -------------------------------------------------------------------------------- 1 | drop table Bug if exists; 2 | 3 | create table Bug ( 4 | id BIGINT GENERATED by default as IDENTITY(START with 1, INCREMENT by 1) not null, 5 | 6 | title VARCHAR(100) , 7 | summary VARCHAR(100) , 8 | Description VARCHAR(100) , 9 | AttachmentPath VARCHAR(500) , 10 | exceptions VARCHAR(100) , 11 | logs VARCHAR(100) , 12 | foundDateTime VARCHAR(100) , 13 | foundTags VARCHAR(100) , 14 | 15 | primary key(id) 16 | ); -------------------------------------------------------------------------------- /Allure-cucumber/src/test/resources/features/calculator.feature: -------------------------------------------------------------------------------- 1 | Feature: Addition 2 | 3 | Scenario: adding two float 4 | Given I want to test calculator 5 | When I in insert 5.5 and 6.5 6 | Then I got 12 as result 7 | 8 | Scenario Outline: adding two integer 9 | Given I want to test calculator 10 | When I in insert and 11 | Then I got as result 12 | Examples: 13 | | a | b | c | 14 | | 5 | 6 | 11 | 15 | | 12| 9 | 21 | 16 | 17 | -------------------------------------------------------------------------------- /JerseyTest/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.automation 8 | JerseyTest 9 | 1.0-SNAPSHOT 10 | 11 | 12 | -------------------------------------------------------------------------------- /Junit-cucumber/src/test/resources/features/calculator.feature: -------------------------------------------------------------------------------- 1 | Feature: Addition 2 | 3 | Scenario: adding two float 4 | Given I want to test calculator 5 | When I in insert 5.5 and 6.5 6 | Then I got 12 as result 7 | 8 | Scenario Outline: adding two integer 9 | Given I want to test calculator 10 | When I in insert and 11 | Then I got as result 12 | Examples: 13 | | a | b | c | 14 | | 5 | 6 | 11 | 15 | | 12| 9 | 21 | 16 | 17 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/tests/page/HelpPageTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.tests.page; 2 | 3 | import com.freshdirect.testing.core.TestBase; 4 | import com.freshdirect.testing.pages.Help; 5 | import org.junit.Ignore; 6 | 7 | /** 8 | * Created By: Tanvir Ahmed 9 | * Date: 2/6/2019 10 | * Time: 3:32 PM 11 | */ 12 | @Ignore 13 | public class HelpPageTests extends TestBase { 14 | public static Help help; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /gauge-java/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.example 8 | gauge-java-example 9 | 1.0-SNAPSHOT 10 | 11 | 12 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/utils/ImageUtil.java: -------------------------------------------------------------------------------- 1 | package org.automation.utils; 2 | 3 | import org.sikuli.script.Image; 4 | 5 | public class ImageUtil { 6 | public static String getStringFromImage(Image image){ 7 | return null;//todo 8 | } 9 | public static Image getImageOf(String data){ 10 | return null;//todo 11 | } 12 | 13 | public static Image getImageOf(T data){ 14 | return null; //todo 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Allure-cucumber-failsafe/src/test/resources/features/calculator.feature: -------------------------------------------------------------------------------- 1 | Feature: Addition 2 | 3 | Scenario: adding two float 4 | Given I want to test calculator 5 | When I in insert 5.5 and 6.5 6 | Then I got 12 as result 7 | 8 | Scenario Outline: adding two integer 9 | Given I want to test calculator 10 | When I in insert and 11 | Then I got as result 12 | Examples: 13 | | a | b | c | 14 | | 5 | 6 | 11 | 15 | | 12| 9 | 21 | 16 | 17 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/suites/releases/ReleaseBSuite.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.suites.releases; 2 | 3 | import org.junit.platform.runner.JUnitPlatform; 4 | import org.junit.platform.suite.api.IncludeTags; 5 | import org.junit.platform.suite.api.SelectPackages; 6 | import org.junit.runner.RunWith; 7 | 8 | @RunWith(JUnitPlatform.class) 9 | @IncludeTags({"releaseB"}) 10 | @SelectPackages("org.automation.junit5.tests.orders") 11 | public class ReleaseBSuite { 12 | } 13 | -------------------------------------------------------------------------------- /Allure-cucumber-failsafe/README.md: -------------------------------------------------------------------------------- 1 | # Allure Cucumber Example 2 | Using Allure with cucumber JVM 3 | This is example for integration tests 4 | 5 | # Target 6 | a simple calculator with allure report 7 | this will show how can we run in verify phase as integration test using maven failsafe plugins. 8 | 9 | # Testing commands 10 | 11 | ### Running Tests 12 | 13 | - Run test ```mvn clean verify``` 14 | 15 | ### Running Report 16 | - Build Site ```mvn allure:report``` 17 | - Run Site ```mvn allure:serve``` 18 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/suites/releases/ReleaseASuite.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.suites.releases; 2 | 3 | import org.junit.platform.runner.JUnitPlatform; 4 | import org.junit.platform.suite.api.IncludeTags; 5 | import org.junit.platform.suite.api.SelectPackages; 6 | import org.junit.runner.RunWith; 7 | 8 | @RunWith(JUnitPlatform.class) 9 | @IncludeTags({"CalT","CalT2"}) 10 | @SelectPackages("org.automation.junit5.tests.extentions") 11 | public class ReleaseASuite { 12 | } 13 | -------------------------------------------------------------------------------- /Cucumber-Parallel/src/test/resources/org/automation/calculator-add.feature: -------------------------------------------------------------------------------- 1 | Feature: Addition 2 | 3 | Scenario: adding two float 4 | Given I want to test calculator 5 | When I insert 5.5 and 6.5 for adding 6 | Then I got 12 as result 7 | 8 | Scenario Outline: adding two integer 9 | Given I want to test calculator 10 | When I insert and for adding 11 | Then I got as result 12 | Examples: 13 | | a | b | c | 14 | | 5 | 6 | 11 | 15 | | 12| 9 | 21 | 16 | 17 | -------------------------------------------------------------------------------- /Playwright-Testing/readme.md: -------------------------------------------------------------------------------- 1 | # Cross Browser testing playwright (todo) 2 | 3 | # project ![Link] (https://playwright.dev/) 4 | 5 | # Installatiion 6 | - install node js from ![here](https://nodejs.org/en/download/) 7 | - make sure your NPM installed when you install nodejs. to do that , check versions 8 | 9 | node -v 10 | npm -v 11 | 12 | you should be able to see version info. 13 | This is from my PC installed ![node](./images/install.jpg) 14 | 15 | - install playwright 16 | 17 | npm i playwright -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/pages/opencart/HomePage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | import net.thucydides.core.annotations.At; 4 | import net.thucydides.core.annotations.DefaultUrl; 5 | import net.thucydides.core.pages.PageObject; 6 | 7 | import org.openqa.selenium.WebDriver; 8 | 9 | /** 10 | * Created by shantonu on 5/16/16. 11 | */ 12 | @DefaultUrl("http://demo.opencart.com") 13 | @At("http://demo.opencart.com") 14 | public class HomePage extends PageObject { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /AzimoBlog/README.md: -------------------------------------------------------------------------------- 1 | # AzimoBlog 2 | Experimental Selenium Framework practice 3 | initially eclipse project, I will convert maven POM lateron. 4 | 5 | Dependency : 6 | Java 1.8 7 | TestNG 8 | Selenium 46 9 | 10 | Main idea : Extending webdriver and use as wrapper with utilities builtin browser object(singletone). Initially default firefox browser, but, factory is there, i will add XML setting based browser configurations. 11 | 12 | GitFlow applied , so take latest codde from develop branch. 13 | 14 | Thanks 15 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/forms/Session.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.forms; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class Session extends UiBase { 9 | 10 | public Session(String folder) { 11 | super(folder); 12 | } 13 | 14 | public class Logging extends UiBase{ 15 | public Logging(String folder) { 16 | super(folder); 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/suites/SlowTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.suites; 2 | 3 | import org.junit.platform.runner.JUnitPlatform; 4 | import org.junit.platform.suite.api.IncludeTags; 5 | import org.junit.platform.suite.api.SelectPackages; 6 | import org.junit.runner.RunWith; 7 | 8 | /** 9 | * Created by shantonu on 4/15/2021 10 | */ 11 | @RunWith(JUnitPlatform.class) 12 | @IncludeTags("slow") 13 | @SelectPackages("org.automation.junit5.tests") 14 | public class SlowTests { 15 | } 16 | -------------------------------------------------------------------------------- /Selenide-Junit/src/test/java/org/automation/tests/google/InitialTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests.google; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.openqa.selenium.By; 5 | 6 | import static com.codeborne.selenide.Selenide.*; 7 | /** 8 | * Created by shantonu on 7/14/17. 9 | */ 10 | public class InitialTest { 11 | 12 | @Test 13 | public void search_google(){ 14 | open("https://www.google.com"); 15 | $(By.name("q")).val("shantonu sarker").pressEnter(); 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /SoapUi/README.md: -------------------------------------------------------------------------------- 1 | # Soap UI Example 2 | 3 | Using soap UI libs to run soap UI test cases 4 | 5 | # Target 6 | 7 | 1. Functional Test Runner 8 | 9 | 2. Performance Test Runner 10 | 11 | 3. Security Test Runner 12 | 13 | # Prerequisite 14 | - Download and run SOAP UI to make a test case 15 | - You should have test cases generated from SoapUI 16 | 17 | 18 | # Testing command 19 | (use maven 3.3.9) 20 | 21 | mvn clean test 22 | 23 | # Target 24 | - Adding SoapUI for extending capability of existing project 25 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/data/ClassA.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support.data; 2 | 3 | public class ClassA { 4 | private long id; 5 | private String name; 6 | 7 | public long getId() { 8 | return id; 9 | } 10 | 11 | public void setId(long id) { 12 | this.id = id; 13 | } 14 | 15 | public String getName() { 16 | return name; 17 | } 18 | 19 | public void setName(String name) { 20 | this.name = name; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /AllureTestNG/src/test/resources/suites/AllTestsTogatherWithRetryListener.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Allure2-Junit5/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | .allure/ 33 | allure-results/ 34 | reports/ -------------------------------------------------------------------------------- /AllureJunit/src/test/java/org/automation/core/MyRunner.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import org.junit.internal.runners.InitializationError; 4 | import org.junit.internal.runners.JUnit4ClassRunner; 5 | 6 | /** 7 | * Created by shantonu on 9/10/16. 8 | */ 9 | public class MyRunner extends JUnit4ClassRunner { 10 | public MyRunner(Class klass) throws InitializationError { 11 | super(klass); 12 | } 13 | 14 | protected void validate() throws InitializationError { 15 | // ignore 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Junit-cucumber/src/test/java/org/automation/tests/CalculatorTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests; 2 | 3 | import io.cucumber.junit.Cucumber; 4 | import io.cucumber.junit.CucumberOptions; 5 | import org.junit.runner.RunWith; 6 | 7 | @RunWith(Cucumber.class) 8 | @CucumberOptions(plugin = {"pretty", 9 | "html:target/cucumberReport", 10 | "json:target/cucumber.json" } 11 | , features = {"src/test/resources/features/calculator.feature"} 12 | , glue = {""}) 13 | 14 | public class CalculatorTests { 15 | } 16 | -------------------------------------------------------------------------------- /junitbenchmark/src/main/java/org/performance/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.performance; 2 | 3 | public class Calculator { 4 | public double add(double a, double b){ 5 | return a+b; 6 | } 7 | public double sub(double a, double b){ 8 | return a-b; 9 | } 10 | public double mul(double a, double b){ 11 | return a*b; 12 | } 13 | public double div(double a, double b){ 14 | return a/b; 15 | } 16 | public double mod(double a, double b){ 17 | return a%b; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /testng-executable/src/main/java/org/automation/example/tests/AdhocTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.example.tests; 2 | 3 | import org.testng.Assert; 4 | import org.testng.annotations.Test; 5 | 6 | public class AdhocTests extends CalculatorBaseTest { 7 | 8 | @Test 9 | public void testIntAdd(){ 10 | Assert.assertEquals(calculator.add(5,3),8,"Addition Fail"); 11 | } 12 | 13 | @Test 14 | public void testFloatAdd(){ 15 | Assert.assertEquals(calculator.add(5.8,3.3),9.1,"Addition Fail"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /testng-executable/src/main/java/org/automation/example/tests/ExceptionTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.example.tests; 2 | 3 | import org.testng.Assert; 4 | import org.testng.annotations.Test; 5 | 6 | public class ExceptionTests extends CalculatorBaseTest { 7 | 8 | @Test 9 | public void testAdd(){ 10 | Assert.assertEquals(calculator.add(5.0,3L),8,"Addition Fail"); 11 | } 12 | 13 | @Test 14 | public void testFail(){ 15 | Assert.assertEquals(calculator.add(5.0,3),9,"Addition Fail"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/MyClassAsValueSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.automation.junit5.support.data.ClassA; 4 | import org.automation.junit5.support.data.ClassB; 5 | import org.junit.jupiter.params.provider.ValueSource; 6 | 7 | import java.lang.annotation.Retention; 8 | import java.lang.annotation.RetentionPolicy; 9 | 10 | @Retention(RetentionPolicy.RUNTIME) 11 | @ValueSource(classes = {ClassA.class, ClassB.class}) 12 | public @interface MyClassAsValueSource { 13 | } 14 | -------------------------------------------------------------------------------- /Cucumber-Parallel/src/test/resources/org/automation/calculator-sub.feature: -------------------------------------------------------------------------------- 1 | Feature: Subtraction 2 | 3 | Scenario: Subtracting two float 4 | Given I want to test calculator 5 | When I insert 5.5 and 6.5 for subtraction 6 | Then I got -1.0 as result 7 | 8 | Scenario Outline: Subtracting two integer 9 | Given I want to test calculator 10 | When I insert and for subtraction 11 | Then I got as result 12 | Examples: 13 | | a | b | c | 14 | | 200 | 50 | 150 | 15 | | 300| 90 | 210 | 16 | 17 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/ResultOpenCartPage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | 4 | import org.automation.pages.opencart.core.OpenCartPageBase; 5 | import org.openqa.selenium.WebElement; 6 | import org.openqa.selenium.support.FindBy; 7 | 8 | /** 9 | * Created by shantonu on 6/4/16. 10 | */ 11 | public class ResultOpenCartPage extends OpenCartPageBase { 12 | 13 | @FindBy(xpath = ".//*[@id='content']/p[2]") 14 | public WebElement invalid_search_result_message; 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/core/OpenCartPageBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart.core; 2 | 3 | /** 4 | * Created by shantonu on 8/23/17. 5 | */ 6 | public class OpenCartPageBase { 7 | public String title_css="h1"; 8 | public String base_url =System.getProperty("host.protocol")+"://"+ 9 | System.getProperty("app.host");//+":"+System.getProperty("host.port"); 10 | 11 | protected String getLinkCSS(String link){ 12 | 13 | return "a[href='"+link+"']"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/UnitTests/SimpleTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.UnitTests; 2 | 3 | import org.automation.core.DataDrivenTest; 4 | import org.junit.Assert; 5 | import org.junit.Test; 6 | 7 | /** 8 | * Created by shantonu on 8/6/16. 9 | * No use of easy test, this is to prove how we test without easy test 10 | */ 11 | public class SimpleTest extends DataDrivenTest{ 12 | 13 | @Test 14 | public void testAddition(){ 15 | Assert.assertEquals(25.5,calculator.add(10.5,15.0),0.01); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /unirest-apt-test/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | .allure/ 33 | allure-results/ 34 | reports/ -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/data/ClassB.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support.data; 2 | 3 | public class ClassB { 4 | private long id; 5 | private String address; 6 | 7 | public long getId() { 8 | return id; 9 | } 10 | 11 | public void setId(long id) { 12 | this.id = id; 13 | } 14 | 15 | public String getAddress() { 16 | return address; 17 | } 18 | 19 | public void setAddress(String address) { 20 | this.address = address; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Cucumber-Parallel/src/test/resources/org/automation/calculator-mul.feature: -------------------------------------------------------------------------------- 1 | Feature: Multiplication 2 | 3 | Scenario: Multiplying two float 4 | Given I want to test calculator 5 | When I insert 5.5 and 6.5 for multiplication 6 | Then I got 35.75 as result 7 | 8 | Scenario Outline: Multiplying two integer 9 | Given I want to test calculator 10 | When I insert and for multiplication 11 | Then I got as result 12 | Examples: 13 | | a | b | c | 14 | | 5 | 6 | 30 | 15 | | 12| 9 | 108 | 16 | 17 | -------------------------------------------------------------------------------- /Junit-cucumber/src/test/resources/features/search.feature: -------------------------------------------------------------------------------- 1 | Feature: valid search 2 | 3 | Scenario: Going to Opencart and search an item 4 | Given I open chrome browser 5 | When I type http://demo.opencart.com/ and press enter 6 | Then I can see page loaded with title "The OpenCart demo store" 7 | And I type "Iphone" in search box And I click search button 8 | Then I can see search results with title "Search - Iphone" 9 | And I can see the search should not take more than 10 second 10 | Then I quit browser 11 | 12 | 13 | -------------------------------------------------------------------------------- /Junit-report/src/test/java/org/automation/TestCalculator.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | import org.junit.Assert; 4 | import org.junit.Before; 5 | import org.junit.Test; 6 | 7 | /** 8 | * Created by SSarker on 7/9/2018. 9 | */ 10 | public class TestCalculator { 11 | private Calculator aCalculator; 12 | @Before 13 | public void init(){ 14 | aCalculator = new Calculator(); 15 | } 16 | @Test 17 | public void addition(){ 18 | Assert.assertEquals(25.0, aCalculator.add(10.0,15.0), 0.01); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/putty/core/ScreenFactory.java: -------------------------------------------------------------------------------- 1 | package org.automation.putty.core; 2 | 3 | import org.sikuli.script.Screen; 4 | 5 | /** 6 | * Created by sarkers on 4/15/2016. 7 | */ 8 | public class ScreenFactory { 9 | private static Screen aScreen = null; 10 | 11 | public static Screen getScreen(){ 12 | if(aScreen==null){ 13 | aScreen = new Screen(); 14 | } 15 | return aScreen; 16 | } 17 | 18 | public static void exit(){ 19 | aScreen=null; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/pages/opencart/SearchResultPage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | import net.thucydides.core.pages.PageObject; 4 | import org.openqa.selenium.WebDriver; 5 | import org.openqa.selenium.WebElement; 6 | import org.openqa.selenium.support.FindBy; 7 | 8 | /** 9 | * Created by shantonu on 6/4/16. 10 | */ 11 | public class SearchResultPage extends PageObject { 12 | 13 | 14 | @FindBy(xpath = ".//*[@id='content']/p[2]") 15 | public WebElement invalid_search_result_message; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/suites/QuickAndParallelTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.suites; 2 | 3 | import org.junit.platform.runner.JUnitPlatform; 4 | import org.junit.platform.suite.api.IncludeTags; 5 | import org.junit.platform.suite.api.SelectPackages; 6 | import org.junit.runner.RunWith; 7 | 8 | /** 9 | * Created by shantonu on 4/15/2021 10 | */ 11 | @RunWith(JUnitPlatform.class) 12 | @IncludeTags({"quick","parallel"}) 13 | @SelectPackages("org.automation.junit5.tests") 14 | public class QuickAndParallelTests { 15 | } 16 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/model/WebGoatUser.java: -------------------------------------------------------------------------------- 1 | package org.automation.model; 2 | 3 | public class WebGoatUser { 4 | private String user; 5 | private String password; 6 | 7 | public String getPassword() { 8 | return password; 9 | } 10 | 11 | public void setPassword(String password) { 12 | this.password = password; 13 | } 14 | 15 | public String getUser() { 16 | return user; 17 | } 18 | 19 | public void setUser(String user) { 20 | this.user = user; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/tests/AdhocTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import static org.junit.jupiter.api.Assertions.assertEquals; 6 | 7 | public class AdhocTests extends CalculatorJunit5TestBase { 8 | @Test 9 | public void testIntAdd(){ 10 | assertEquals(calculator.add(5,3),8,"Addition Fail"); 11 | } 12 | 13 | @Test 14 | public void testFloatAdd(){ 15 | assertEquals(calculator.add(5.8,3.3),9.1,"Addition Fail"); 16 | } 17 | } -------------------------------------------------------------------------------- /junitbenchmark/charts/org.performance.TestCalculator.jsonp: -------------------------------------------------------------------------------- 1 | receiveJsonpData({ 2 | "cols": [ 3 | {"label": "Run", "type": "string"}, 4 | {"label": "Custom key", "type": "string"}, 5 | {"label": "Timestamp", "type": "string"}, 6 | {"label": "testAddition", "type": "string"} , 7 | {"label": "testSub", "type": "string"} ], 8 | "rows": [ 9 | {"c": [{"v": "1"}, {"v": "AddBenchMark"}, {"v": "2016-10-22 19:16:31.201"}, {"v": 7.92}, {"v": 0.25}]}, 10 | {"c": [{"v": "2"}, {"v": "AddBenchMark"}, {"v": "2016-10-22 19:21:23.699"}, {"v": 8.55}, {"v": 0.25}]} 11 | ]}); 12 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/VariableStream.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.params.provider.ArgumentsSource; 4 | 5 | import java.lang.annotation.ElementType; 6 | import java.lang.annotation.Retention; 7 | import java.lang.annotation.RetentionPolicy; 8 | import java.lang.annotation.Target; 9 | 10 | @Target(ElementType.METHOD) 11 | @Retention(RetentionPolicy.RUNTIME) 12 | @ArgumentsSource(StreamArgumentProvider.class) 13 | public @interface VariableStream { 14 | String value(); 15 | } 16 | -------------------------------------------------------------------------------- /junitbenchmark/charts/org.performance.TestCalculator_MethodLevelExample.jsonp: -------------------------------------------------------------------------------- 1 | receiveJsonpData({ 2 | "cols": [ 3 | {"label": "Run", "type": "string"}, 4 | {"label": "Custom key", "type": "string"}, 5 | {"label": "Timestamp", "type": "string"}, 6 | {"label": "testAddition", "type": "string"} , 7 | {"label": "testSub", "type": "string"} ], 8 | "rows": [ 9 | {"c": [{"v": "1"}, {"v": "AddBenchMark"}, {"v": "2016-10-22 19:16:31.201"}, {"v": 0.2}, {"v": 1}]}, 10 | {"c": [{"v": "2"}, {"v": "AddBenchMark"}, {"v": "2016-10-22 19:21:23.699"}, {"v": 0.2}, {"v": 1}]} 11 | ]}); 12 | -------------------------------------------------------------------------------- /Junit-cucumber/src/test/java/org/automation/tests/CucumberTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests; 2 | 3 | 4 | import io.cucumber.junit.Cucumber; 5 | import io.cucumber.junit.CucumberOptions; 6 | import org.junit.runner.RunWith; 7 | 8 | /** 9 | * Created by shantonu on 5/9/16. 10 | */ 11 | @RunWith(Cucumber.class) 12 | @CucumberOptions(plugin = {"pretty", 13 | "html:target/cucumberReport", 14 | "json:target/cucumber.json" } 15 | , features = {"src/test/resources/features"} 16 | , glue = {""}) 17 | 18 | public class CucumberTest { 19 | } 20 | -------------------------------------------------------------------------------- /htmlelement-eamples/src/test/java/org/automation/PageBase.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | import ru.yandex.qatools.htmlelements.loader.HtmlElementLoader; 4 | 5 | /** 6 | * Created by shantonu on 6/8/16. 7 | */ 8 | public abstract class PageBase { 9 | 10 | protected String name; 11 | private PageBase(){} 12 | public PageBase(String name){ 13 | this.name=name; 14 | init(this); 15 | } 16 | protected static void init(PageBase page){ 17 | HtmlElementLoader.populatePageObject(page, Browser.getInstance()); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /junit-fitnesse/src/test/java/org/automation/CalculatorTest.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | 4 | import org.junit.Assert; 5 | import org.junit.Before; 6 | import org.junit.Test; 7 | 8 | public class CalculatorTest { 9 | 10 | private Calculator calculator; 11 | private double result; 12 | @Before 13 | public void init(){ 14 | calculator = new Calculator(); 15 | } 16 | 17 | @Test 18 | public void testAdd() throws Throwable { 19 | 20 | Assert.assertEquals(5.0,calculator.add(3.0, 2.0),0.01); 21 | } 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/tests/ExceptionTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests; 2 | 3 | 4 | import org.junit.jupiter.api.Test; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertEquals; 7 | 8 | public class ExceptionTests extends CalculatorJunit5TestBase { 9 | 10 | @Test 11 | public void testAdd(){ 12 | assertEquals(calculator.add(5.0,3L),8,"Addition Fail"); 13 | } 14 | 15 | @Test 16 | public void testFail(){ 17 | assertEquals(calculator.add(5.0,3),9,"Addition Fail"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Allure-cucumber-failsafe/src/test/java/org/automation/CucumberRunner.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | import org.junit.runner.RunWith; 4 | 5 | /** 6 | * Created by shantonu on 5/9/16. 7 | * update apr 1 , 2025 8 | */ 9 | @RunWith(io.cucumber.junit.Cucumber.class) 10 | @io.cucumber.junit.CucumberOptions( 11 | features = "src/test/resources/features", 12 | plugin = { 13 | "io.qameta.allure.cucumber7jvm.AllureCucumber7Jvm", 14 | "progress", 15 | "summary" 16 | } 17 | ) 18 | public class CucumberRunner { 19 | } 20 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/suites/FunctionalTestSuite.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.suites; 2 | 3 | import org.junit.jupiter.api.Tag; 4 | import org.junit.platform.runner.JUnitPlatform; 5 | import org.junit.platform.suite.api.IncludeTags; 6 | import org.junit.platform.suite.api.SelectClasses; 7 | import org.junit.platform.suite.api.SelectPackages; 8 | import org.junit.runner.RunWith; 9 | 10 | /** 11 | * Suite Example 12 | */ 13 | @RunWith(JUnitPlatform.class) 14 | @SelectPackages({"org.automation.junit5.tests"}) 15 | public class FunctionalTestSuite { 16 | } 17 | -------------------------------------------------------------------------------- /testng-executable/src/main/java/org/automation/example/tests/CalculatorBaseTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.example.tests; 2 | 3 | import org.automation.example.app.Calculator; 4 | import org.automation.example.listeners.CalculatorTestLogger; 5 | import org.testng.annotations.BeforeClass; 6 | import org.testng.annotations.Listeners; 7 | 8 | @Listeners(CalculatorTestLogger.class) 9 | public abstract class CalculatorBaseTest { 10 | protected Calculator calculator; 11 | @BeforeClass 12 | public void initClass(){ 13 | calculator = new Calculator(); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /AllureTestNG/src/test/resources/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /AzimoBlog/src/Azimo/com/pages/AzimoPageBase.java: -------------------------------------------------------------------------------- 1 | package Azimo.com.pages; 2 | 3 | import browserAPI.Browser; 4 | 5 | 6 | public abstract class AzimoPageBase { 7 | public Browser myBrowser; 8 | public String baseUrl; 9 | public AzimoPageBase(){ 10 | baseUrl = "https://azimo.com"; 11 | myBrowser = Browser.getBrowser(); 12 | myBrowser.driver.get(baseUrl); 13 | } 14 | public AzimoPageBase clickOnLogo(){ 15 | myBrowser.driver.get(baseUrl + "/pl/"); 16 | return new HomePage(); 17 | } 18 | 19 | public String getTitle(){ 20 | return myBrowser.driver.getTitle(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /JerseyTest/README.md: -------------------------------------------------------------------------------- 1 | # Jersey Test Example 2 | Demo web service testing project 3 | 4 | # Test Webservice 5 | https://github.com/sarkershantonu/Bug-Storing-WS 6 | 7 | # Run this before running tests 8 | We need to run Bug web service release 9 | https://github.com/sarkershantonu/Bug-Storing-WS/releases 10 | 11 | to test them. 12 | 13 | Use command 14 | 15 | Java -Jar bug-store-1.2-SNAPSHOT.jar 16 | 17 | Credentials : shantonu, 123456 18 | 19 | # Main Link 20 | 21 | https://jersey.java.net/documentation/latest/test-framework.html 22 | 23 | 24 | # todo 25 | 26 | - remove this 27 | -------------------------------------------------------------------------------- /testng-executable/suites/ExceptionTests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/testng-failed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Junit-cucumber/src/test/java/org/automation/tests/OpencartTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests; 2 | 3 | import io.cucumber.junit.Cucumber; 4 | import io.cucumber.junit.CucumberOptions; 5 | import org.junit.runner.RunWith; 6 | 7 | @RunWith(Cucumber.class) 8 | @CucumberOptions(plugin = {"pretty", 9 | "html:target/cucumberReport", 10 | "json:target/cucumber.json" } 11 | , features = { 12 | "src/test/resources/features/search.feature", 13 | "src/test/resources/features/search2.feature" 14 | } 15 | , glue = {""}) 16 | 17 | public class OpencartTests { 18 | } 19 | -------------------------------------------------------------------------------- /Selenide-Junit/src/test/java/org/automation/validation/LinkValidator.java: -------------------------------------------------------------------------------- 1 | package org.automation.validation; 2 | 3 | import org.openqa.selenium.By; 4 | 5 | import static com.codeborne.selenide.Selenide.$; 6 | import static com.codeborne.selenide.Selenide.title; 7 | 8 | public class LinkValidator { 9 | private final String css; 10 | 11 | public LinkValidator(String css) { 12 | this.css = css; 13 | } 14 | public boolean isTitle(final String expectedTitleText){ 15 | $(By.cssSelector(this.css)).click(); 16 | return expectedTitleText.equals(title()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/TestRepeatExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests; 2 | 3 | import org.automation.junit5.core.CalculatorTestBase; 4 | import org.junit.jupiter.api.RepeatedTest; 5 | import org.junit.jupiter.api.Test; 6 | 7 | import static org.junit.jupiter.api.Assertions.assertEquals; 8 | 9 | 10 | public class TestRepeatExample extends CalculatorTestBase { 11 | 12 | @RepeatedTest(value = 5, name = "Repeat Example") 13 | public void testRepeatAddInt(){ 14 | int[] data = {5,10,25,6,4}; 15 | assertEquals(50,myCal.add(data)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/Default suite/testng-failed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Cucumber-Parallel/src/test/java/org/automation/CucumberRunner.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | 4 | import io.cucumber.junit.Cucumber; 5 | import io.cucumber.junit.CucumberOptions; 6 | import org.junit.runner.RunWith; 7 | 8 | /** 9 | * Created by shantonu on 5/9/16. 10 | */ 11 | @RunWith(Cucumber.class) 12 | @CucumberOptions( 13 | plugin = {"pretty", 14 | //"html:target/cucumberReports/", 15 | "json:target/cucumberReports/cucumber.json" } 16 | , features = {"src/test/resources/org/automation"} 17 | , glue = {""}) 18 | public class CucumberRunner { 19 | } 20 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/config/PackageConfigLoader.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.config; 2 | 3 | import java.io.IOException; 4 | import java.util.Properties; 5 | 6 | public class PackageConfigLoader { 7 | private final String propertyFile; 8 | 9 | public PackageConfigLoader(String propertyFile) { 10 | this.propertyFile = propertyFile; 11 | } 12 | public Properties load() throws IOException { 13 | Properties prop = PropertyLoaders.read(propertyFile); 14 | PropertyLoaders.setAsSystemProperty(prop); 15 | return prop; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/tests/CalculatorJunit5TestBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests; 2 | 3 | import org.automation.junit5.app.Calculator; 4 | import org.automation.junit5.reporting.TestLoggerExtension; 5 | import org.junit.jupiter.api.BeforeAll; 6 | import org.junit.jupiter.api.extension.ExtendWith; 7 | 8 | @ExtendWith(TestLoggerExtension.class) 9 | public abstract class CalculatorJunit5TestBase { 10 | protected static Calculator calculator; 11 | @BeforeAll 12 | public static void initClass(){ 13 | calculator = new Calculator(); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /htmlelement-eamples/src/test/java/org/automation/RandomizeHelper.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | import java.security.SecureRandom; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | 7 | /** 8 | * Created by shantonu on 6/8/16. 9 | */ 10 | public class RandomizeHelper { 11 | public static Integer getInt(int a, int b){ 12 | 13 | return new SecureRandom().nextInt(b-a+1)+a; 14 | } 15 | 16 | public static T getRandomItem(List items){ 17 | int max = items.size()-1; 18 | int random = getInt(0,max).intValue(); 19 | return items.get(random); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/testsExamples/suits/ParallelSuitExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.testsExamples.suits; 2 | 3 | /** 4 | * Created by shantonu on 7/16/16. 5 | */ 6 | import org.automation.testsExamples.RepeatExample; 7 | import org.automation.testsExamples.TestWithPolicyExample; 8 | import org.easetech.easytest.annotation.ParallelSuite; 9 | import org.junit.runner.RunWith; 10 | import org.junit.runners.Suite; 11 | 12 | @RunWith(Suite.class) 13 | @ParallelSuite(threads = 3) 14 | @Suite.SuiteClasses({RepeatExample.class, TestWithPolicyExample.class}) 15 | public class ParallelSuitExample { 16 | } 17 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/webgoat/LoginPage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.webgoat; 2 | 3 | import org.automation.core.WebGoatConfig; 4 | import org.automation.pages.PageBase; 5 | 6 | import static com.codeborne.selenide.Selenide.open; 7 | 8 | public class LoginPage extends PageBase { 9 | public static String path ="/WebGoat/login"; 10 | 11 | public LoginPage load(){ 12 | //open(WebGoatConfig); 13 | open(WebGoatConfig.BASE_URL+path); 14 | return this; 15 | } 16 | 17 | public static void main(String[] args) { 18 | new LoginPage().load(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/core/DataDrivenTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import org.automation.Calculator; 4 | import org.easetech.easytest.annotation.Report; 5 | import org.easetech.easytest.runner.DataDrivenTestRunner; 6 | import org.junit.Before; 7 | import org.junit.runner.RunWith; 8 | 9 | /** 10 | * Created by shantonu on 7/15/16. 11 | * this is default test template (parent class) 12 | */ 13 | 14 | public abstract class DataDrivenTest { 15 | protected Calculator calculator; 16 | 17 | @Before 18 | public void init(){ 19 | calculator = new Calculator(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/steps/singlepage/DepartmentSteps.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.steps.singlepage; 2 | 3 | import org.automation.webtest.pages.singlepages.Department; 4 | import org.automation.webtest.steps.StepBase; 5 | import ru.yandex.qatools.allure.annotations.Step; 6 | 7 | 8 | public class DepartmentSteps extends StepBase { 9 | 10 | private Department page; 11 | 12 | public DepartmentSteps(Department page){ 13 | this.page = page; 14 | } 15 | 16 | @Step 17 | public void navigateTo(){ 18 | navigate(page.pageUrl); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Allure-cucumber/src/test/java/org/automation/CucumberRunner.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | 4 | import io.cucumber.junit.Cucumber; 5 | import io.cucumber.junit.CucumberOptions; 6 | import org.junit.runner.RunWith; 7 | 8 | /** 9 | * Created by shantonu on 5/9/16. 10 | * updated on mar 29, 25 11 | */ 12 | 13 | @RunWith(Cucumber.class) 14 | @CucumberOptions( 15 | features = "src/test/resources/features", 16 | plugin = { 17 | "io.qameta.allure.cucumber7jvm.AllureCucumber7Jvm", 18 | "progress", 19 | "summary" 20 | } 21 | ) 22 | public class CucumberRunner { 23 | } 24 | -------------------------------------------------------------------------------- /Junit-cucumber/src/test/resources/features/search2.feature: -------------------------------------------------------------------------------- 1 | 2 | 3 | Feature: Invalid search 4 | 5 | Scenario: Checking invalid search 6 | Given I open chrome browser 7 | When I type http://demo.opencart.com/ and press enter 8 | Then I can see page loaded with title "The OpenCart demo store" 9 | And I type "invalid check to prove tests" in search box And I click search button 10 | Then I can see invalid search title with "Search - invalid check to prove tests" and message "There is no product that matches the search criteria." 11 | And I can see the search should not take more than 250 second 12 | Then I quit browser -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/ErrorStringProvider.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.junit.jupiter.api.extension.ExtensionContext; 4 | import org.junit.jupiter.params.provider.Arguments; 5 | import org.junit.jupiter.params.provider.ArgumentsProvider; 6 | 7 | import java.util.stream.Stream; 8 | 9 | public class ErrorStringProvider implements ArgumentsProvider { 10 | @Override 11 | public Stream provideArguments(ExtensionContext context) throws Exception { 12 | return Stream.of(Arguments.of((String)null),Arguments.of(""),Arguments.of(" ")); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Junit-report/src/main/java/org/automation/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | /** 4 | * Created by shantonu on 5/9/16. 5 | */ 6 | public class Calculator { 7 | public double add(double a, double b) { 8 | return a + b; 9 | } 10 | 11 | public double sub(double a, double b) { 12 | return a - b; 13 | } 14 | 15 | public double mul(double a, double b) { 16 | return a * b; 17 | } 18 | 19 | public double div(double a, double b) { 20 | if (b == 0) { 21 | throw new ArithmeticException("Divide by zero"); 22 | } else { 23 | return a / b; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Selenide-Junit/src/test/java/org/automation/tests/DummyTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests; 2 | 3 | import org.junit.jupiter.api.Assertions; 4 | import org.junit.jupiter.api.Test; 5 | import org.openqa.selenium.By; 6 | 7 | import static com.codeborne.selenide.Selenide.*; 8 | 9 | public class DummyTest { 10 | 11 | @Test 12 | public void testMe(){ 13 | open("http://demo.opencart.com"); 14 | screenshot("InitialScreenshot"); 15 | $(By.xpath("//div[@id='search']/input")).val("ipod").pressEnter(); 16 | $(By.xpath("//div[@id='search']/span/button")).click(); 17 | Assertions.assertFalse(true); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Cucumber-Parallel/src/main/java/org/automation/Calculator.java: -------------------------------------------------------------------------------- 1 | package org.automation; 2 | 3 | /** 4 | * Created by shantonu on 5/9/16. 5 | */ 6 | public class Calculator { 7 | public double add(double a, double b) { 8 | return a + b; 9 | } 10 | 11 | public double sub(double a, double b) { 12 | return a - b; 13 | } 14 | 15 | public double mul(double a, double b) { 16 | return a * b; 17 | } 18 | 19 | public double div(double a, double b) { 20 | if (b == 0) { 21 | throw new ArithmeticException("Divide by zero"); 22 | } else { 23 | return a / b; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/policy/PerformanceTestPolicyExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.policy; 2 | 3 | import org.easetech.easytest.annotation.Display; 4 | import org.easetech.easytest.annotation.Parallel; 5 | import org.easetech.easytest.annotation.Report; 6 | import org.junit.Ignore; 7 | 8 | /** 9 | * Created by shantonu on 8/26/16. 10 | */ 11 | 12 | @Ignore 13 | @Parallel(threads = 15) 14 | @Display(fields = "expected") 15 | @Report(reportTypes = Report.REPORT_TYPE.METHOD_DURATION, 16 | outputFormats = Report.EXPORT_FORMAT.XLS, 17 | outputLocation = "file:TestReports") 18 | public class PerformanceTestPolicyExample { 19 | } 20 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/reporting/CalculatorReporter.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.reporting; 2 | 3 | import org.junit.jupiter.api.TestReporter; 4 | 5 | import java.util.Map; 6 | 7 | public class CalculatorReporter implements TestReporter { 8 | @Override 9 | public void publishEntry(Map map) { 10 | 11 | } 12 | 13 | @Override 14 | public void publishEntry(String key, String value) { 15 | TestReporter.super.publishEntry(key, value); 16 | } 17 | 18 | @Override 19 | public void publishEntry(String value) { 20 | TestReporter.super.publishEntry(value); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /spock-junit5/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | !**/src/main/**/target/ 4 | !**/src/test/**/target/ 5 | 6 | ### IntelliJ IDEA ### 7 | .idea/modules.xml 8 | .idea/jarRepositories.xml 9 | .idea/compiler.xml 10 | .idea/libraries/ 11 | *.iws 12 | *.iml 13 | *.ipr 14 | 15 | ### Eclipse ### 16 | .apt_generated 17 | .classpath 18 | .factorypath 19 | .project 20 | .settings 21 | .springBeans 22 | .sts4-cache 23 | 24 | ### NetBeans ### 25 | /nbproject/private/ 26 | /nbbuild/ 27 | /dist/ 28 | /nbdist/ 29 | /.nb-gradle/ 30 | build/ 31 | !**/src/main/**/build/ 32 | !**/src/test/**/build/ 33 | 34 | ### VS Code ### 35 | .vscode/ 36 | 37 | ### Mac OS ### 38 | .DS_Store -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/policy/RegressionPolicyExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.policy; 2 | 3 | import org.easetech.easytest.annotation.*; 4 | import org.easetech.easytest.loader.LoaderType; 5 | import org.easetech.easytest.runner.DataDrivenTestRunner; 6 | import org.junit.Ignore; 7 | import org.junit.runner.RunWith; 8 | 9 | /** 10 | * Created by shantonu on 7/16/16. 11 | */ 12 | @Ignore 13 | @Parallel(threads = 1) 14 | @Display(fields = "expected") 15 | @Report(reportTypes = Report.REPORT_TYPE.DEFAULT, 16 | outputFormats = Report.EXPORT_FORMAT.XLS, 17 | outputLocation = "classpath:reports") 18 | public class RegressionPolicyExample { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /AllureTestNG/src/main/java/org/automation/testng/listeners/RetryListener.java: -------------------------------------------------------------------------------- 1 | package org.automation.testng.listeners; 2 | 3 | import org.automation.testng.ReTry; 4 | import org.testng.IAnnotationTransformer; 5 | import org.testng.annotations.ITestAnnotation; 6 | 7 | import java.lang.reflect.Constructor; 8 | import java.lang.reflect.Method; 9 | 10 | public class RetryListener implements IAnnotationTransformer { 11 | public void transform(ITestAnnotation annotation, Class testClass, 12 | Constructor testConstructor, Method testMethod) { 13 | System.out.println("Retry Listener >>>> "); 14 | annotation.setRetryAnalyzer(ReTry.class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Junit-cucumber/src/main/java/org/pages/SearchPanel.java: -------------------------------------------------------------------------------- 1 | package org.pages; 2 | 3 | import org.automation.PageBase; 4 | import org.openqa.selenium.WebDriver; 5 | import org.openqa.selenium.WebElement; 6 | import org.openqa.selenium.support.FindBy; 7 | 8 | /** 9 | * Created by shantonu on 5/17/16. 10 | */ 11 | public class SearchPanel extends PageBase { 12 | 13 | @FindBy(xpath = "//div[@id='search']/input") 14 | public WebElement textBox ; 15 | 16 | @FindBy(xpath = "//div[@id='search']/span/button")//property loading or after parsing or static 17 | public WebElement button; 18 | 19 | public SearchPanel(WebDriver aDriver) { 20 | super(aDriver); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/model/Pet.java: -------------------------------------------------------------------------------- 1 | package org.automation.model; 2 | 3 | /** 4 | * Created by john on 27/05/2015. 5 | */ 6 | public class Pet { 7 | private String name; 8 | private String status; 9 | private int id; 10 | 11 | public Pet(String status, String name) { 12 | this.status = status; 13 | this.name = name; 14 | } 15 | 16 | public String getStatus() { 17 | return status; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | 24 | public void setId(int id) { 25 | this.id = id; 26 | } 27 | 28 | public int getId() { 29 | return id; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/core/LogProcessor.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.core; 2 | 3 | import org.junit.jupiter.api.extension.ExtensionContext; 4 | import org.junit.jupiter.api.extension.TestInstancePostProcessor; 5 | import org.slf4j.Logger; 6 | import org.slf4j.LoggerFactory; 7 | 8 | 9 | public class LogProcessor implements TestInstancePostProcessor { 10 | @Override 11 | public void postProcessTestInstance(Object testInstance, ExtensionContext context) throws Exception { 12 | Logger logger = LoggerFactory.getLogger(testInstance.getClass()); 13 | logger.getClass().getMethod("setLogger", Logger.class).invoke(testInstance,logger); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/reporting/TestLoggerProcessor.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.reporting; 2 | 3 | import org.junit.jupiter.api.extension.ExtensionContext; 4 | import org.junit.jupiter.api.extension.TestInstancePostProcessor; 5 | import org.slf4j.Logger; 6 | import org.slf4j.LoggerFactory; 7 | 8 | public class TestLoggerProcessor implements TestInstancePostProcessor { 9 | @Override 10 | public void postProcessTestInstance(Object o, ExtensionContext extensionContext) throws Exception { 11 | Logger logger = LoggerFactory.getLogger(o.getClass()); 12 | logger.getClass().getMethod("setLogger", Logger.class).invoke(o,logger); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Selenide-Junit/src/test/java/org/automation/validation/validator.java: -------------------------------------------------------------------------------- 1 | package org.automation.validation; 2 | 3 | import org.junit.jupiter.api.Assertions; 4 | import org.openqa.selenium.By; 5 | 6 | import static com.codeborne.selenide.Selenide.$; 7 | import static com.codeborne.selenide.Selenide.title; 8 | 9 | /** 10 | * Created by shantonu on 9/3/17. 11 | */ 12 | public class validator { 13 | 14 | public static void linkValidator(By by, String title){ 15 | $(by).click(); 16 | Assertions.assertEquals(title, title()); 17 | } 18 | 19 | public static void link(By by, String title){ 20 | $(by).click(); 21 | Assertions.assertEquals(title, title()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /htmlelement-eamples/src/test/java/org/pages/utils/UtilBase.java: -------------------------------------------------------------------------------- 1 | package org.pages.utils; 2 | 3 | import org.openqa.selenium.JavascriptExecutor; 4 | import org.openqa.selenium.WebDriver; 5 | 6 | /** 7 | * This is mother of all utils 8 | * Must wired with driver 9 | * Static method only contains global items, except that all are actually object items. 10 | * All utils keeping this as base are contextualized on page. 11 | */ 12 | public abstract class UtilBase { 13 | 14 | protected WebDriver driver = null; 15 | protected JavascriptExecutor executor ; 16 | 17 | public UtilBase(WebDriver aDriver){ 18 | this.driver = aDriver; 19 | executor=(JavascriptExecutor)driver; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/UiBase.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui; 2 | 3 | import org.automation.putty.core.ScreenBase; 4 | import org.sikuli.script.FindFailed; 5 | 6 | /** 7 | * Created by shantonu on 7/7/16. 8 | */ 9 | public abstract class UiBase extends ScreenBase{ 10 | protected String folder; 11 | 12 | public UiBase(String folder) { 13 | this.folder = folder; 14 | } 15 | 16 | public void click(String image) throws FindFailed { 17 | screen.wait(image).click(); 18 | } 19 | 20 | public void defaultWait(){ 21 | wait(2.0); 22 | } 23 | public void wait(double sec){ 24 | screen.wait(sec); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/testng.xml.html: -------------------------------------------------------------------------------- 1 | testng.xml for Default suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Default suite">
  <test verbose="2" name="Default test">
    <classes>
      <class name="tests.Nevigation"/>
    </classes>
  </test> <!-- Default test -->
</suite> <!-- Default suite -->
-------------------------------------------------------------------------------- /Cucumber-Parallel/src/test/resources/org/automation/calculator-div.feature: -------------------------------------------------------------------------------- 1 | Feature: Division 2 | 3 | Scenario: Dividing two float 4 | Given I want to test calculator 5 | When I insert 5.5 and 0.5 for division 6 | Then I got 11 as result 7 | 8 | Scenario: Dividing a number with ZERO 9 | Given I want to test calculator 10 | When I insert 5.5 and 0.0 for division 11 | Then I got Exception ArithmeticException 12 | 13 | Scenario Outline: Dividing two integer 14 | Given I want to test calculator 15 | When I insert
and for division 16 | Then I got as result 17 | Examples: 18 | | a | b | c | 19 | | 2000 | 200 | 10.0 | 20 | | 5000| 250 | 20.0 | 21 | 22 | -------------------------------------------------------------------------------- /Junit-XmlUnit/src/test/java/TestXmlCompare.java: -------------------------------------------------------------------------------- 1 | import org.automation.xml.XMLCompare; 2 | import org.junit.Test; 3 | import org.xml.sax.SAXException; 4 | 5 | import java.io.IOException; 6 | 7 | /** 8 | * Created by shantonu on 6/30/17. 9 | */ 10 | public class TestXmlCompare { 11 | 12 | private static String root_path = "./src/test/resources/"; 13 | 14 | @Test 15 | public void testDiff() throws IOException, SAXException { 16 | XMLCompare.compare(root_path+"test1a.xml",root_path+"test2a.xml"); 17 | } 18 | 19 | 20 | @Test 21 | public void testSame() throws IOException, SAXException { 22 | XMLCompare.compare(root_path+"test1a.xml",root_path+"test1a.xml"); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Junit-cucumber/src/main/java/org/pages/HomePage.java: -------------------------------------------------------------------------------- 1 | package org.pages; 2 | 3 | import org.automation.CompletePage; 4 | import org.automation.PageBase; 5 | import org.openqa.selenium.WebDriver; 6 | 7 | /** 8 | * Created by shantonu on 5/16/16. 9 | */ 10 | public class HomePage extends PageBase implements CompletePage{ 11 | public SearchPanel search; 12 | public HomePage(WebDriver aDriver) { 13 | super(aDriver); 14 | search = new SearchPanel(driver); 15 | } 16 | 17 | public HomePage open(String url){ 18 | driver.get(url); 19 | return this; 20 | } 21 | 22 | public PageBase load() { 23 | driver.get(getUrl()); 24 | return this; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Serenity-RestAssured/README.md: -------------------------------------------------------------------------------- 1 | # Rest Assure Example with serenity 2 | Demo web service testing project 3 | Report will be created by serenity 4 | Report will be published locally using jetty 5 | 6 | # Test Webservice 7 | https://github.com/sarkershantonu/Bug-Storing-WS 8 | 9 | # Run this before running tests 10 | We need to run Bug web service release 11 | https://github.com/sarkershantonu/Bug-Storing-WS/releases 12 | 13 | Java -Jar bug-store-1.2-SNAPSHOT.jar 14 | 15 | # Serenity Test running 16 | mvn clean 17 | 18 | mvn verify 19 | 20 | mvn deploy 21 | 22 | mvn jetty:run 23 | 24 | you can see reports in http://localhost:9001 , your site should be ready 25 | 26 | Note : 27 | 28 | - Need to update 29 | -------------------------------------------------------------------------------- /junit-easytest/src/main/java/org/automation/customtype/MyDataTypeConverter.java: -------------------------------------------------------------------------------- 1 | package org.automation.customtype; 2 | 3 | import org.easetech.easytest.converter.AbstractConverter; 4 | 5 | import java.util.Map; 6 | 7 | /** 8 | * Created by shantonu on 8/27/16. 9 | * it does simple thing... takes a map(check mapping) and convert into my object. 10 | */ 11 | public class MyDataTypeConverter extends AbstractConverter { 12 | public MyDataType convert(Map from) { 13 | return new MyDataType( 14 | (Long) from.get("MyDataTypeId"), 15 | (String) from.get("MyDataTypeName"), 16 | (String) from.get("MyDataTypeMobile")); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /AllureTestNG/src/main/java/org/automation/testng/ReTry.java: -------------------------------------------------------------------------------- 1 | package org.automation.testng; 2 | 3 | import org.testng.IRetryAnalyzer; 4 | import org.testng.ITestResult; 5 | 6 | public class ReTry implements IRetryAnalyzer { 7 | int counter = 0; 8 | int retryLimit = 2; 9 | 10 | @Override 11 | public boolean retry(ITestResult iTestResult) { 12 | if(iTestResult.isSuccess()){ 13 | return false; 14 | }else { 15 | if (counter < retryLimit) { 16 | System.out.println(">>>> " + counter); 17 | counter++; 18 | return true; 19 | } 20 | else 21 | return false; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /AllureJunit/src/test/java/org/automation/suits/TestSuitForAttachment.java: -------------------------------------------------------------------------------- 1 | package org.automation.suits; 2 | 3 | import org.automation.unitTests.attachment.TestWithAttachment; 4 | import org.automation.unitTests.attachment.TestWithAttachment_withEachStepSnapRule; 5 | import org.automation.unitTests.attachment.TestWithAttachment_directFromTestMethod_customRunner; 6 | import org.junit.runner.RunWith; 7 | import org.junit.runners.Suite; 8 | 9 | /** 10 | * Created by shantonu on 10/1/16. 11 | */ 12 | @RunWith(Suite.class) 13 | @Suite.SuiteClasses({TestWithAttachment.class, TestWithAttachment_withEachStepSnapRule.class, TestWithAttachment_directFromTestMethod_customRunner.class}) 14 | public class TestSuitForAttachment { 15 | } 16 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/parameterized/TestValueSourceExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests.parameterized; 2 | 3 | import org.automation.junit5.core.CalculatorTestBase; 4 | import org.automation.junit5.support.MyFloatDataValueSource; 5 | import org.junit.jupiter.params.ParameterizedTest; 6 | import org.junit.jupiter.params.provider.ValueSource; 7 | 8 | import static org.junit.jupiter.api.Assertions.assertEquals; 9 | 10 | public class TestValueSourceExample extends CalculatorTestBase { 11 | @ParameterizedTest 12 | @ValueSource(ints = {5,6,7}) 13 | public void testIntValueSource(int input){ 14 | assertEquals(input*2,myCal.add(input,input)); 15 | } 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /testng-executable/suites/AdhocTests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Serenity-Junit/Doc/step_defination.txt: -------------------------------------------------------------------------------- 1 | 2 | Step definition : 3 | 1. your stes class must extends ScenarioSteps//net.thucydides.core.steps.ScenarioSteps 4 | 2. All step method(public, non static) should be annotated with @Step//net.thucydides.core.annotations.Step; 5 | 3. if you keep a superclass for all steps in your project, make sure that super class extends ScenarioSteps 6 | 4. Step defination class may contains multiple pages, make sure those are following page object. 7 | The target is, all of those pages should maintain common session. If you need to make a new session, you have to define seperately. 8 | 9 | 10 | Best practice :( i follow) 11 | 1. have assertions for each step 12 | Expected data 13 | Expected item validation -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/tests/parameterized/TestMethodSource.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.tests.parameterized; 2 | 3 | import org.automation.junit5.core.CalculatorTestBase; 4 | import org.junit.jupiter.params.ParameterizedTest; 5 | import org.junit.jupiter.params.provider.MethodSource; 6 | 7 | import static org.automation.junit5.core.StringUtil.isBlank; 8 | import static org.junit.jupiter.api.Assertions.assertTrue; 9 | 10 | public class TestMethodSource extends CalculatorTestBase { 11 | @ParameterizedTest 12 | @MethodSource("org.automation.junit5.support.StringParameters#emptyStrings") 13 | public void testMethodSource(String input){ 14 | assertTrue(isBlank(input)); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/core/DataDrivenTest_withPolicy.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import org.automation.Calculator; 4 | import org.automation.policy.RegressionPolicyExample; 5 | import org.easetech.easytest.annotation.TestPolicy; 6 | import org.easetech.easytest.runner.DataDrivenTestRunner; 7 | import org.junit.Before; 8 | import org.junit.runner.RunWith; 9 | 10 | /** 11 | * Created by shantonu on 8/29/16. 12 | */ 13 | @TestPolicy(RegressionPolicyExample.class) 14 | @RunWith(DataDrivenTestRunner.class) 15 | public abstract class DataDrivenTest_withPolicy { 16 | protected Calculator calculator; 17 | @Before 18 | public void init(){ 19 | calculator = new Calculator(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /spock-junit5/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.example.spock.junit5 8 | spock-junit5 9 | 1.0-SNAPSHOT 10 | 11 | 12 | 21 13 | 21 14 | UTF-8 15 | 16 | 17 | -------------------------------------------------------------------------------- /testng-executable/src/main/java/org/automation/example/TestingApplication.java: -------------------------------------------------------------------------------- 1 | package org.automation.example; 2 | 3 | import org.automation.example.runner.TestNgRunner; 4 | 5 | import java.io.IOException; 6 | import java.util.List; 7 | 8 | import static org.automation.example.config.AppConfigHelper.loadAppProperties; 9 | import static org.automation.example.config.SuiteLoaderFromFile.*; 10 | 11 | public class TestingApplication { 12 | public static void main(String[] args) throws IOException { 13 | System.out.println(" Trying to run test"); 14 | loadAppProperties(); 15 | List files = getSuitesWithPath(); 16 | TestNgRunner runner = new TestNgRunner(files); 17 | runner.run(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Selenide-Junit/README.md: -------------------------------------------------------------------------------- 1 | # Example Project with Selenide 2 | Selenide is a selenium wrapper framework that makes selenium easy to use and organize 3 | 4 | # Dependency 5 | - Java 6 | - Junit 7 | - Selenide 8 | 9 | # Run Command 10 | - mvn clean test 11 | 12 | 13 | # Main Site Link 14 | 15 | - https://selenide.org/quick-start.html 16 | 17 | # Test 1 18 | Simple searching google (my name) 19 | 20 | # Side goal 21 | 22 | Adding steps logs 23 | An annotaion way 24 | 25 | # Opencart Structure 26 | - Page structure 27 | - WebPart structure 28 | - Header & Footer area 29 | - Preview element 30 | 31 | # WebGoat Structure 32 | 33 | ### Project Link 34 | - [Standalone JAR](https://github.com/WebGoat/WebGoat/releases) 35 | - Document [todo] 36 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/testsExamples/TestPropertiesExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.testsExamples; 2 | 3 | import org.automation.core.DataDrivenTest_withDefaultAnnotation; 4 | import org.easetech.easytest.annotation.TestProperties; 5 | import org.junit.Assert; 6 | import org.junit.Test; 7 | 8 | import java.util.Properties; 9 | 10 | /** 11 | * Created by shantonu on 8/26/16. 12 | */ 13 | 14 | public class TestPropertiesExample extends DataDrivenTest_withDefaultAnnotation { 15 | @TestProperties(value = {"test.properties"}) 16 | private Properties myProps; 17 | 18 | @Test 19 | public void testAddition() { 20 | Assert.assertEquals("Easy Test Demos", myProps.getProperty("test.title")); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Extent-TestNG/README.md: -------------------------------------------------------------------------------- 1 | # Extent report example with TestNG 2 | Making report with extent 3 | - Update => done 4 | 5 | # Target 6 | We will use custom TestNG Listener to create report. 7 | So that we do not need to manually inject reporting. 8 | Just annotate our listener to the test class. 9 | TestNG will do the rest 10 | 11 | # main project link 12 | http://extentreports.com/community/ 13 | 14 | # Run 15 | 1. You can run with you IDE runner (eclipse/intelliJ) 16 | 2. With maven : ```mvn clean test``` 17 | 3. [Report Location is => /Reports/index.html](./Reports/index.html) 18 | # Running in IDE 19 | ![IDE Running ](run_ide.jpg) 20 | 21 | # Generated Report 22 | ![Report Example](ExtentReport.jpg) 23 | 24 | # Project Structure 25 | ![Project](project.jpg) -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/core/NameGenerator.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.core; 2 | 3 | import org.junit.jupiter.api.DisplayNameGenerator; 4 | 5 | import java.lang.reflect.Method; 6 | 7 | /*** 8 | * Example of Display Name Generator 9 | */ 10 | public class NameGenerator implements DisplayNameGenerator { 11 | @Override 12 | public String generateDisplayNameForClass(Class testClass) { 13 | return null; 14 | } 15 | 16 | @Override 17 | public String generateDisplayNameForNestedClass(Class nestedClass) { 18 | return null; 19 | } 20 | 21 | @Override 22 | public String generateDisplayNameForMethod(Class testClass, Method testMethod) { 23 | return null; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/pages/singlepages/AlcoholRestriction.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.pages.singlepages; 2 | 3 | 4 | import org.automation.webtest.pages.PageBase; 5 | import org.openqa.selenium.WebDriver; 6 | 7 | 8 | public class AlcoholRestriction extends PageBase { 9 | public int timeout = 15; 10 | 11 | public AlcoholRestriction() { 12 | super(); 13 | initStaticItems(); 14 | } 15 | 16 | public AlcoholRestriction(WebDriver driver) { 17 | super(driver); 18 | initStaticItems(); 19 | } 20 | 21 | @Override 22 | public void initStaticItems() { 23 | super.initStaticItems(); 24 | this.title = "Alcohol Restriction"; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/customtype/CustomObjectConverterTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.customtype; 2 | 3 | import org.easetech.easytest.annotation.DataLoader; 4 | import org.easetech.easytest.runner.DataDrivenTestRunner; 5 | import org.junit.BeforeClass; 6 | import org.junit.Test; 7 | import org.junit.runner.RunWith; 8 | 9 | /** 10 | * Created by shantonu on 7/16/16. 11 | * todo 12 | */ 13 | @RunWith(DataDrivenTestRunner.class) 14 | public class CustomObjectConverterTest { 15 | 16 | @BeforeClass 17 | public static void initClass(){ 18 | 19 | } 20 | 21 | @Test 22 | @DataLoader(filePaths = "mydata.csv") 23 | public void testParam(MyDataType data){ 24 | 25 | System.out.println(data.toString()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /junitbenchmark/src/test/java/org/performance/custom/PerfTest_custom.java: -------------------------------------------------------------------------------- 1 | package org.performance.custom; 2 | 3 | import com.carrotsearch.junitbenchmarks.BenchmarkOptions; 4 | import org.junit.Assert; 5 | import org.junit.Test; 6 | 7 | /** 8 | * Created by shantonu on 1/8/17. 9 | */ 10 | public class PerfTest_custom extends Benchmarking { 11 | @Test 12 | @BenchmarkOptions(concurrency = 2, warmupRounds = 0, benchmarkRounds = 5) 13 | public void testSub(){ 14 | Assert.assertEquals(-5.0, aCalculator.sub(10.0,15.0), 0.01); 15 | //To run the test slow enough to see it running 16 | try { 17 | Thread.sleep(1000); 18 | } catch (InterruptedException e) { 19 | e.printStackTrace(); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/test/java/org/automation/webtest/core/CommonElementTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.core; 2 | 3 | import org.openqa.selenium.WebElement; 4 | 5 | import static org.junit.Assert.assertEquals; 6 | import static org.junit.Assert.assertTrue; 7 | 8 | 9 | public class CommonElementTests { 10 | 11 | public static void testTextField(final WebElement element, final String expectedResult){ 12 | assertTrue("Element is not displayed", element.isDisplayed()); 13 | assertTrue("Element is not enabled", element.isEnabled()); 14 | element.clear(); 15 | element.sendKeys(expectedResult); 16 | assertEquals("String miss matched", expectedResult, element.getAttribute("value")); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO, file, stdout 2 | 3 | # Direct log messages to a log file 4 | log4j.appender.file=org.apache.log4j.RollingFileAppender 5 | log4j.appender.file.File=./target/logs/Test_logs.log 6 | log4j.appender.file.MaxFileSize=10MB 7 | log4j.appender.file.MaxBackupIndex=10 8 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 10 | 11 | # Direct log messages to stdout 12 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 13 | log4j.appender.stdout.Target=System.out 14 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 15 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/index.html: -------------------------------------------------------------------------------- 1 | 2 | Test results 3 | 4 | 5 |

Test results

6 | 7 | 8 | 9 |
SuitePassedFailedSkippedtestng.xml
Total010 
Default suite010Link
10 | -------------------------------------------------------------------------------- /Junit-cucumber/src/main/java/org/pages/SearchResultPage.java: -------------------------------------------------------------------------------- 1 | package org.pages; 2 | 3 | import org.automation.CompletePage; 4 | import org.automation.PageBase; 5 | import org.openqa.selenium.WebDriver; 6 | import org.openqa.selenium.WebElement; 7 | import org.openqa.selenium.support.FindBy; 8 | import org.openqa.selenium.support.How; 9 | 10 | /** 11 | * Created by shantonu on 6/4/16. 12 | */ 13 | public class SearchResultPage extends PageBase implements CompletePage{ 14 | public SearchResultPage(WebDriver aDriver) { 15 | super(aDriver); 16 | } 17 | @FindBy(xpath = ".//*[@id='content']/p[2]") 18 | public WebElement invalid_search_result_message; 19 | 20 | public PageBase load() { 21 | driver.get(getUrl()); 22 | return this; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /junitbenchmark/charts/benchmark-lists2.jsonp: -------------------------------------------------------------------------------- 1 | receiveJsonpData({ 2 | "cols": [ 3 | {"label": "method", "type": "string"}, 4 | {"label": "Average time [s]", "type": "number"}, 5 | {"label": "StdDev", "type": "number"}, 6 | {"label": "GC time [s]", "type": "number"}, 7 | {"label": "GC average [s]", "type": "number"}, 8 | {"label": "StdDev", "type": "number"}, 9 | {"label": "GC calls", "type": "number"}, 10 | {"label": "benchmark rounds", "type": "number"}, 11 | {"label": "warmup rounds", "type": "number"}, 12 | {"label": "Total benchmark time", "type": "number"}, 13 | {"label": "Total warmup time", "type": "number"} 14 | ], 15 | "rows": [ 16 | {"c": [{"v": "testSub"}, {"v": 1.0}, {"v": 0.0}, {"v": 0.0}, {"v": 0.0}, {"v": 0.0}, {"v": 0}, {"v": 5}, {"v": 0}, {"v": 3.0}, {"v": 0.0}]} 17 | ]}); 18 | -------------------------------------------------------------------------------- /junit5-executable/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=debug, file, stdout 2 | 3 | # Direct log messages to a log file 4 | log4j.appender.file=org.apache.log4j.RollingFileAppender 5 | log4j.appender.file.File=./target/logs/TestExecutionLogs.log 6 | log4j.appender.file.MaxFileSize=10MB 7 | log4j.appender.file.MaxBackupIndex=10 8 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 10 | 11 | # Direct log messages to stdout 12 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 13 | log4j.appender.stdout.Target=System.out 14 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 15 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n -------------------------------------------------------------------------------- /testng-executable/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=error, file, stdout 2 | 3 | # Direct log messages to a log file 4 | log4j.appender.file=org.apache.log4j.RollingFileAppender 5 | log4j.appender.file.File=./test-output/logs/TestLogging.log 6 | log4j.appender.file.MaxFileSize=10MB 7 | log4j.appender.file.MaxBackupIndex=10 8 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 10 | 11 | # Direct log messages to stdout 12 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 13 | log4j.appender.stdout.Target=System.out 14 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 15 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n -------------------------------------------------------------------------------- /AllureJunit/src/test/java/org/automation/unitTests/TestWithDescription.java: -------------------------------------------------------------------------------- 1 | package org.automation.unitTests; 2 | 3 | import io.qameta.allure.Description; 4 | import org.automation.core.TestingCalculator; 5 | import org.junit.Assert; 6 | import org.junit.Test; 7 | /** 8 | * Created by shantonu on 9/11/16. 9 | */ 10 | 11 | public class TestWithDescription extends TestingCalculator { 12 | @Test 13 | @Description("Method Description : This will test addidtion") 14 | public void testAddition() { 15 | Assert.assertEquals(25.0, aCalculator.add(10.0, 15.0), 0.01); 16 | } 17 | @Test 18 | @Description("Method Description : This will test Division") 19 | public void testDiv(){ 20 | Assert.assertEquals(5.0, aCalculator.div(250.0,50.0), 0.01); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /AllureJunit/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Root logger option 2 | log4j.rootLogger=INFO, file, stdout 3 | 4 | # Direct log messages to a log file 5 | log4j.appender.file=org.apache.log4j.RollingFileAppender 6 | log4j.appender.file.File=./target/logs/logging.log 7 | log4j.appender.file.MaxFileSize=10MB 8 | log4j.appender.file.MaxBackupIndex=10 9 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 10 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 11 | 12 | # Direct log messages to stdout 13 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 14 | log4j.appender.stdout.Target=System.out 15 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 16 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n -------------------------------------------------------------------------------- /AllureTestNG/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Root logger option 2 | log4j.rootLogger=INFO, file, stdout 3 | 4 | # Direct log messages to a log file 5 | log4j.appender.file=org.apache.log4j.RollingFileAppender 6 | log4j.appender.file.File=./target/logs/logging.log 7 | log4j.appender.file.MaxFileSize=10MB 8 | log4j.appender.file.MaxBackupIndex=10 9 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 10 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 11 | 12 | # Direct log messages to stdout 13 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 14 | log4j.appender.stdout.Target=System.out 15 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 16 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/pages/opencart/SearchPanel.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | import net.serenitybdd.core.pages.WebElementFacade; 4 | import net.thucydides.core.pages.PageObject; 5 | import org.openqa.selenium.WebDriver; 6 | import org.openqa.selenium.WebElement; 7 | import org.openqa.selenium.support.FindBy; 8 | import org.slf4j.Logger; 9 | import org.slf4j.LoggerFactory; 10 | 11 | /** 12 | * Created by shantonu on 5/17/16. 13 | */ 14 | public class SearchPanel extends PageObject { 15 | 16 | @FindBy(xpath = "//div[@id='search']/input") 17 | public WebElementFacade textBox ; 18 | 19 | @FindBy(xpath = "//div[@id='search']/span/button")//property loading or after parsing or static 20 | public WebElementFacade button; 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /sikulix-junit/src/main/java/org/automation/app/putty/ui/forms/Terminal.java: -------------------------------------------------------------------------------- 1 | package org.automation.app.putty.ui.forms; 2 | 3 | import org.automation.app.putty.ui.UiBase; 4 | 5 | /** 6 | * Created by shantonu on 7/7/16. 7 | */ 8 | public class Terminal extends UiBase { 9 | public Terminal(String folder) { 10 | super(folder); 11 | } 12 | 13 | public class Keyboard extends UiBase{ 14 | public Keyboard(String folder) { 15 | super(folder); 16 | } 17 | } 18 | public class Bell extends UiBase{ 19 | public Bell(String folder) { 20 | super(folder); 21 | } 22 | } 23 | public class Features extends UiBase{ 24 | public Features(String folder) { 25 | super(folder); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/core/CalculatorTest.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.core; 2 | 3 | import io.qameta.allure.Description; 4 | import io.qameta.allure.Epic; 5 | import io.qameta.allure.Link; 6 | import io.qameta.allure.Step; 7 | import org.junit.jupiter.api.DisplayName; 8 | import org.junit.jupiter.api.Tag; 9 | import org.junit.jupiter.api.Test; 10 | import org.junit.jupiter.api.Timeout; 11 | 12 | import java.lang.annotation.ElementType; 13 | import java.lang.annotation.Retention; 14 | import java.lang.annotation.RetentionPolicy; 15 | import java.lang.annotation.Target; 16 | 17 | @Retention(RetentionPolicy.RUNTIME) 18 | @Target(ElementType.METHOD) 19 | @Test 20 | @Timeout(2) 21 | @Epic("Epic Calculator") 22 | @Link("aLink") 23 | @Tag("CalT") 24 | public @interface CalculatorTest { 25 | } 26 | -------------------------------------------------------------------------------- /AllureTestNG/src/test/java/org/automation/unitTests/TestWithDescription.java: -------------------------------------------------------------------------------- 1 | package org.automation.unitTests; 2 | 3 | import io.qameta.allure.Description; 4 | import org.automation.core.TestCalculatorBase; 5 | import org.testng.Assert; 6 | import org.testng.annotations.Test; 7 | 8 | 9 | /** 10 | * Created by shantonu on 9/11/16. 11 | */ 12 | 13 | public class TestWithDescription extends TestCalculatorBase { 14 | @Test 15 | @Description("Method Description : This will test addidtion") 16 | public void testAddition() { 17 | Assert.assertEquals(25.0, aCalculator.add(10.0, 15.0), 0.01); 18 | } 19 | @Test 20 | @Description("Method Description : This will test Division") 21 | public void testDiv(){ 22 | Assert.assertEquals(5.0, aCalculator.div(250.0,50.0), 0.01); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /AzimoBlog/test-output/old/Default suite/classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
Class nameMethod nameGroups
tests.Nevigation  
@Test
 test 
@BeforeClass
 init 
@BeforeMethod
@AfterMethod
@AfterClass
 End 
37 | -------------------------------------------------------------------------------- /Serenity-RestAssured/src/test/java/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Root logger option 2 | log4j.rootLogger=INFO, file, stdout 3 | 4 | # Direct log messages to a log file 5 | log4j.appender.file=org.apache.log4j.RollingFileAppender 6 | log4j.appender.file.File=./logs/logging_from_slf4j_log4J.log 7 | log4j.appender.file.MaxFileSize=10MB 8 | log4j.appender.file.MaxBackupIndex=10 9 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 10 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 11 | 12 | # Direct log messages to stdout 13 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 14 | log4j.appender.stdout.Target=System.out 15 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 16 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 17 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/pages/popups/ContactUsPopup.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.pages.popups; 2 | 3 | import org.openqa.selenium.WebDriver; 4 | import org.openqa.selenium.WebElement; 5 | import org.openqa.selenium.support.CacheLookup; 6 | import org.openqa.selenium.support.FindBy; 7 | 8 | 9 | public class ContactUsPopup extends PopupBase{ 10 | 11 | public int timeout = 15; 12 | 13 | @FindBy(xpath = "//div[@class='chat-cont']/div[@class='chat-header']") 14 | @CacheLookup 15 | public WebElement txt_contactUsPopup; 16 | 17 | public ContactUsPopup(WebDriver driver) { 18 | super(driver); 19 | initElement(driver,this); 20 | } 21 | 22 | public void initContactUsPopup(){ 23 | initElement(driver,this); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /Junit-XmlUnit/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.automation 8 | xml-unit 9 | 1.0-SNAPSHOT 10 | 11 | 12 | 13 | xmlunit 14 | xmlunit 15 | 1.6 16 | 17 | 18 | junit 19 | junit 20 | 4.13.1 21 | 22 | 23 | -------------------------------------------------------------------------------- /junit5-executable/src/main/java/org/automation/junit5/runner/Junit5Runner.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.runner; 2 | 3 | import org.junit.platform.launcher.TestExecutionListener; 4 | import org.junit.platform.launcher.listeners.SummaryGeneratingListener; 5 | import org.slf4j.Logger; 6 | import org.slf4j.LoggerFactory; 7 | 8 | import java.util.List; 9 | 10 | public abstract class Junit5Runner { 11 | protected static final Logger logger = LoggerFactory.getLogger("CalculatorLogger"); 12 | private List> listeners; 13 | 14 | public TestExecutionListener getDefaultListener(){ 15 | return new SummaryGeneratingListener(); 16 | } 17 | 18 | public void setListeners(List> listeners) { 19 | this.listeners = listeners; 20 | } 21 | 22 | public static Logger getLogger(){return logger;} 23 | } 24 | -------------------------------------------------------------------------------- /junitbenchmark/charts/org.performance.custom.PerfTest_custom.jsonp: -------------------------------------------------------------------------------- 1 | receiveJsonpData({ 2 | "cols": [ 3 | {"label": "Run", "type": "string"}, 4 | {"label": "Custom key", "type": "string"}, 5 | {"label": "Timestamp", "type": "string"}, 6 | {"label": "testSub", "type": "string"} ], 7 | "rows": [ 8 | {"c": [{"v": "3"}, {"v": "AddBenchMark"}, {"v": "2017-01-08 02:05:20.669"}, {"v": 1}]}, 9 | {"c": [{"v": "4"}, {"v": "AddBenchMark"}, {"v": "2017-01-08 02:34:08.802"}, {"v": 1.001}]}, 10 | {"c": [{"v": "5"}, {"v": "AddBenchMark"}, {"v": "2017-01-08 02:59:40.017"}, {"v": 1}]}, 11 | {"c": [{"v": "6"}, {"v": "AddBenchMark"}, {"v": "2017-01-08 03:37:58.697"}, {"v": 1}]}, 12 | {"c": [{"v": "7"}, {"v": "AddBenchMark"}, {"v": "2017-01-08 03:38:22.158"}, {"v": 1}]}, 13 | {"c": [{"v": "8"}, {"v": "AddBenchMark"}, {"v": "2017-01-08 03:39:03.437"}, {"v": 1}]} 14 | ]}); 15 | -------------------------------------------------------------------------------- /gauge-java/readme.md: -------------------------------------------------------------------------------- 1 | # Gauge Java (todo) 2 | A small business case testing framework 3 | 4 | 5 | # Installation 6 | - Download this in your PC or server where test will run 7 | 8 | For my case, I am using windows 10 installation. 9 | - https://github.com/getgauge/gauge/releases/download/v1.0.6/gauge-1.0.6-windows.x86_64.exe 10 | - Options : I have chosen all language & reporting plugins (everything) 11 | 12 | ![installing option](./img/install.jpg) 13 | 14 | # Prepare your IDE 15 | - install VsCode 16 | - install Gauge [Extension](https://marketplace.visualstudio.com/items?itemName=getgauge.gauge) 17 | 18 | # Use Maven Arc type 19 | -gauge-archetype-java 20 | 21 | 22 | 23 | # How to use the example 24 | 25 | # Documentation Home 26 | - https://docs.gauge.org/index.html 27 | # IntelliJ Plugins 28 | - https://plugins.jetbrains.com/plugin/7535-gauge -------------------------------------------------------------------------------- /AllureJunit/src/test/java/org/automation/unitTests/TestWithFeatures.java: -------------------------------------------------------------------------------- 1 | package org.automation.unitTests; 2 | 3 | import io.qameta.allure.Feature; 4 | import io.qameta.allure.Features; 5 | import org.automation.core.TestingCalculator; 6 | import org.junit.Assert; 7 | import org.junit.Test; 8 | 9 | /** 10 | * Created by shantonu on 9/11/16. 11 | */ 12 | @Features( {@Feature("Class Feature : Add"),@Feature("Class Feature : divide")}) 13 | public class TestWithFeatures extends TestingCalculator{ 14 | @Test 15 | @Feature("Method Features : Addition") 16 | public void testAddition() { 17 | Assert.assertEquals(25.0, aCalculator.add(10.0, 15.0), 0.01); 18 | } 19 | @Test 20 | @Feature("Method Features : division ") 21 | public void testDiv(){ 22 | Assert.assertEquals(5.0, aCalculator.div(250.0,50.0), 0.01); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /WebDriverManager/src/test/java/org/automation/core/App.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import java.io.File; 4 | import java.io.FileInputStream; 5 | import java.io.IOException; 6 | import java.util.Properties; 7 | 8 | /** 9 | * Created by shantonu on 7/20/17. 10 | */ 11 | public class App { 12 | public static void loadDefaultProperties(){ 13 | try { 14 | loadProperties("./src/test/resources/test.properties"); 15 | } catch (IOException e) { 16 | e.printStackTrace(); 17 | } 18 | } 19 | private static void loadProperties(String path) throws IOException { 20 | Properties p = new Properties(); 21 | p.load(new FileInputStream(new File(path))); 22 | for(String k:p.stringPropertyNames()){ 23 | System.setProperty(k,p.getProperty(k)); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/LoginOpenCartPage.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart; 2 | 3 | import org.automation.pages.opencart.core.OpenCartPageBase; 4 | import org.openqa.selenium.WebElement; 5 | import org.openqa.selenium.support.CacheLookup; 6 | import org.openqa.selenium.support.FindBy; 7 | 8 | /** 9 | * Created by shantonu on 4/3/17. 10 | */ 11 | public class LoginOpenCartPage extends OpenCartPageBase { 12 | private final String pageUrl = "/index.php?route=account/login"; 13 | 14 | @FindBy(id = "input-email") 15 | @CacheLookup 16 | private WebElement emailAddress; 17 | @FindBy(id = "input-password") 18 | @CacheLookup 19 | private WebElement password; 20 | private void clickLoginButton() { 21 | } 22 | public LoginOpenCartPage fill() { 23 | 24 | return this; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/testsExamples/ParallelTestExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.testsExamples; 2 | 3 | import org.automation.core.DataDrivenTest_withDefaultAnnotation; 4 | import org.easetech.easytest.annotation.*; 5 | import org.easetech.easytest.loader.LoaderType; 6 | import org.junit.Assert; 7 | import org.junit.Test; 8 | 9 | /** 10 | * Created by shantonu on 7/16/16. 11 | */ 12 | @Parallel(threads = 5)//this is very fragile 13 | public class ParallelTestExample extends DataDrivenTest_withDefaultAnnotation { 14 | 15 | @Test 16 | @DataLoader(filePaths = "calculator.xls", loaderType = LoaderType.EXCEL) 17 | public void testAddFromExcel(@Param(name = "a") Double a, @Param(name = "b")Double b, @Param(name = "expected")Double expected){ 18 | Assert.assertEquals(expected, calculator.add(a,b),0.1); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /AllureTestNG/src/test/java/org/automation/unitTests/TestWithFeatures.java: -------------------------------------------------------------------------------- 1 | package org.automation.unitTests; 2 | 3 | import io.qameta.allure.Feature; 4 | import io.qameta.allure.Features; 5 | import org.automation.core.TestCalculatorBase; 6 | import org.testng.Assert; 7 | import org.testng.annotations.Test; 8 | 9 | /** 10 | * Created by shantonu on 9/11/16. 11 | */ 12 | @Features({@Feature("Class Feature : Add"),@Feature("Class Feature : divide")}) 13 | public class TestWithFeatures extends TestCalculatorBase { 14 | @Test 15 | @Feature("Method Features : Addition") 16 | public void testAddition() { 17 | Assert.assertEquals(25.0, aCalculator.add(10.0, 15.0), 0.01); 18 | } 19 | @Test 20 | @Feature("Method Features : division ") 21 | public void testDiv(){ 22 | Assert.assertEquals(5.0, aCalculator.div(250.0,50.0), 0.01); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /RestAssured/src/test/java/org/automation/tests/ExceptionTests.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests; 2 | 3 | import io.restassured.RestAssured; 4 | import io.restassured.http.ContentType; 5 | import org.apache.http.HttpStatus; 6 | import org.automation.core.BugTestBase; 7 | import org.junit.Test; 8 | 9 | import static io.restassured.RestAssured.given; 10 | 11 | /** 12 | * Created by SSarker on 8/6/2018. 13 | */ 14 | public class ExceptionTests extends BugTestBase { 15 | 16 | @Test 17 | public void test_InvaidInput_viewAll_queryParam(){ 18 | 19 | given().log().all() 20 | .auth().basic(user,pass) 21 | .contentType(ContentType.JSON) 22 | .queryParam("2") 23 | .get().then().assertThat() 24 | .statusCode(HttpStatus.SC_BAD_REQUEST) 25 | .contentType(ContentType.JSON); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /selenium-allure2-junit5/web-ui-test/src/main/java/org/automation/webtest/pages/singlepages/Department.java: -------------------------------------------------------------------------------- 1 | package org.automation.webtest.pages.singlepages; 2 | 3 | import org.automation.webtest.model.DepartmentParameter; 4 | import org.automation.webtest.pages.PageBase; 5 | import org.openqa.selenium.WebDriver; 6 | import org.openqa.selenium.WebElement; 7 | import org.openqa.selenium.support.FindBy; 8 | 9 | 10 | public class Department extends PageBase { 11 | 12 | @FindBy(xpath = "/html/body/section/section[4]/section/div[10]/div/section[1]/div[2]/div[1]/a/div[2]") 13 | public WebElement first_; 14 | 15 | public Department setURLParameter(final DepartmentParameter parameters){ 16 | this.setUrl("/browse.jsp?" + parameters.toString()); 17 | return this; 18 | } 19 | 20 | public Department(WebDriver driver) { 21 | super(driver); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AllureJunit/src/test/java/org/automation/core/TestRule_ScreenShotOnEachStep.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import io.qameta.allure.Attachment; 4 | import org.automation.util.ScreenShot; 5 | import org.junit.rules.TestWatcher; 6 | import org.junit.runner.Description; 7 | 8 | /** 9 | * Created by shantonu on 9/11/16. 10 | */ 11 | public class TestRule_ScreenShotOnEachStep extends TestWatcher { 12 | @Override 13 | protected void failed(Throwable e, Description description) { 14 | super.failed(e, description); 15 | snap(); 16 | } 17 | @Override 18 | protected void succeeded(Description description) { 19 | super.succeeded(description); 20 | snap(); 21 | } 22 | 23 | @Attachment(value = "Taking Screenshot with Junit rule", type = "image/png") 24 | public byte[] snap() { 25 | return ScreenShot.capture(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/java/org/automation/junit5/support/UserAggregator.java: -------------------------------------------------------------------------------- 1 | package org.automation.junit5.support; 2 | 3 | import org.automation.junit5.support.data.User; 4 | import org.junit.jupiter.api.extension.ParameterContext; 5 | import org.junit.jupiter.params.aggregator.ArgumentsAccessor; 6 | import org.junit.jupiter.params.aggregator.ArgumentsAggregationException; 7 | import org.junit.jupiter.params.aggregator.ArgumentsAggregator; 8 | 9 | /** 10 | * Created by shantonu on 4/3/2021 11 | */ 12 | public class UserAggregator implements ArgumentsAggregator { 13 | @Override 14 | public Object aggregateArguments(ArgumentsAccessor accessor, ParameterContext context) throws ArgumentsAggregationException { 15 | 16 | return new User( 17 | accessor.getString(1), 18 | accessor.getString(2), 19 | accessor.getString(3)); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/core/DataDrivenTest_withDefaultAnnotation.java: -------------------------------------------------------------------------------- 1 | package org.automation.core; 2 | 3 | import org.automation.Calculator; 4 | import org.easetech.easytest.annotation.Report; 5 | import org.easetech.easytest.runner.DataDrivenTestRunner; 6 | import org.junit.Assert; 7 | import org.junit.Before; 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | /** 12 | * Created by shantonu on 8/26/16. 13 | */ 14 | @RunWith(DataDrivenTestRunner.class) 15 | @Report(outputLocation = "file:TestReports", 16 | outputFormats = Report.EXPORT_FORMAT.PDF, 17 | reportTypes = {Report.REPORT_TYPE.METHOD_DURATION, Report.REPORT_TYPE.DEFAULT}) 18 | public abstract class DataDrivenTest_withDefaultAnnotation { 19 | protected Calculator calculator; 20 | 21 | @Before 22 | public void init(){ 23 | calculator = new Calculator(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /SoapUi/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.automation 8 | 1.0-SNAPSHOT 9 | soapui 10 | 11 | 12 | 13 | com.github.redfish4ktc.soapui 14 | soapui 15 | 4.0.1.0 16 | 17 | 18 | junit 19 | junit 20 | 4.13.1 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /JfrUnit-example/src/main/java/org/example/jftunit/Main.java: -------------------------------------------------------------------------------- 1 | package org.example.jftunit; 2 | 3 | //TIP To Run code, press or 4 | // click the icon in the gutter. 5 | public class Main { 6 | public static void main(String[] args) { 7 | //TIP Press with your caret at the highlighted text 8 | // to see how IntelliJ IDEA suggests fixing it. 9 | System.out.printf("Hello and welcome!"); 10 | 11 | for (int i = 1; i <= 5; i++) { 12 | //TIP Press to start debugging your code. We have set one breakpoint 13 | // for you, but you can always add more by pressing . 14 | System.out.println("i = " + i); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Cucumber-Parallel/src/test/resources/org/automation/cucumber-runner.java.vm: -------------------------------------------------------------------------------- 1 | #parse("/array.java.vm") 2 | #if ($packageName) 3 | package $packageName; 4 | 5 | #end 6 | import org.junit.AfterClass; 7 | import org.junit.BeforeClass; 8 | import org.junit.runner.RunWith; 9 | 10 | import io.cucumber.junit.Cucumber; 11 | import io.cucumber.junit.CucumberOptions; 12 | 13 | import java.io.File; 14 | 15 | @RunWith(Cucumber.class) 16 | @CucumberOptions( 17 | features = {"$featureFile"}, 18 | plugin = #stringArray($plugins), 19 | monochrome = $monochrome, 20 | #if(!$featureFile.contains(".feature:") && $tags) 21 | tags = "$tags", 22 | #end 23 | glue = #stringArray($glue)) 24 | public class $className { 25 | 26 | @BeforeClass 27 | public static void beforeClass(){ 28 | //Do things 29 | } 30 | 31 | @AfterClass 32 | public static void afterClass(){ 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /Serenity-Junit/src/test/java/org/automation/tests/TestOpenCart.java: -------------------------------------------------------------------------------- 1 | package org.automation.tests; 2 | 3 | import net.serenitybdd.junit.runners.SerenityRunner; 4 | import net.thucydides.core.annotations.ClearCookiesPolicy; 5 | import net.thucydides.core.annotations.Managed; 6 | import net.thucydides.core.annotations.Steps; 7 | import org.automation.steps.SearchingSteps; 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | import org.openqa.selenium.WebDriver; 11 | 12 | /** 13 | * Created by shantonu on 9/15/16. 14 | */ 15 | @RunWith(SerenityRunner.class) 16 | public class TestOpenCart { 17 | @Managed(uniqueSession = true, clearCookies = ClearCookiesPolicy.Never) 18 | WebDriver driver; 19 | 20 | @Steps 21 | SearchingSteps search; 22 | 23 | @Test 24 | public void search_an_item(){ 25 | search.openHomePage("Your Store"); 26 | search.search("iphone"); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /spock-junit5/src/main/java/org/example/spock/junit5/Main.java: -------------------------------------------------------------------------------- 1 | package org.example.spock.junit5; 2 | 3 | //TIP To Run code, press or 4 | // click the icon in the gutter. 5 | public class Main { 6 | public static void main(String[] args) { 7 | //TIP Press with your caret at the highlighted text 8 | // to see how IntelliJ IDEA suggests fixing it. 9 | System.out.printf("Hello and welcome!"); 10 | 11 | for (int i = 1; i <= 5; i++) { 12 | //TIP Press to start debugging your code. We have set one breakpoint 13 | // for you, but you can always add more by pressing . 14 | System.out.println("i = " + i); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /testng-executable/src/main/java/org/automation/example/runner/TestNgRunner.java: -------------------------------------------------------------------------------- 1 | package org.automation.example.runner; 2 | 3 | import org.testng.TestNG; 4 | 5 | import java.util.ArrayList; 6 | import java.util.Arrays; 7 | import java.util.Collection; 8 | import java.util.List; 9 | 10 | public class TestNgRunner { 11 | 12 | private final List suites; 13 | 14 | public TestNgRunner(String... suiteFiles) { 15 | suites = new ArrayList<>(Arrays.asList(suiteFiles)); 16 | } 17 | public TestNgRunner(List suiteFiles) { 18 | suites = suiteFiles; 19 | } 20 | public void run(){ 21 | TestNG ng = new TestNG(); 22 | ng.setTestSuites(suites); 23 | ng.setDefaultTestName(System.getProperty("test.name")); 24 | ng.setUseDefaultListeners(Boolean.valueOf(System.getProperty("enableDefaultListeners")).booleanValue()); 25 | ng.run(); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/testsExamples/TestWithPolicyExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.testsExamples; 2 | 3 | import org.automation.core.DataDrivenTest; 4 | import org.automation.policy.PolicyExample; 5 | import org.easetech.easytest.annotation.Param; 6 | import org.easetech.easytest.annotation.TestPolicy; 7 | import org.easetech.easytest.runner.DataDrivenTestRunner; 8 | import org.junit.Assert; 9 | import org.junit.Test; 10 | import org.junit.runner.RunWith; 11 | 12 | /** 13 | * Created by shantonu on 7/16/16. 14 | */ 15 | @RunWith(DataDrivenTestRunner.class) 16 | @TestPolicy(PolicyExample.class) 17 | public class TestWithPolicyExample extends DataDrivenTest { 18 | 19 | @Test 20 | public void testAddFromExcel(@Param(name = "a") Double a, @Param(name = "b") Double b, @Param(name = "expected") Double expected) { 21 | Assert.assertEquals(expected, calculator.add(a, b), 0.1); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Cucumber-Parallel/README.md: -------------------------------------------------------------------------------- 1 | # Parallel Cucumber Example : TODO => need to update 2 | Parallel run cucumber JVM 3 | 4 | # Target 5 | - Cucumber Runner 6 | - Running Scenarios in parallel 7 | - Running Features in parallel 8 | 9 | # Key Config 10 | Find out "parallelScheme" and make it 11 | - FEATURE to run fetures parallel (i prefer) 12 | - SCENARIO to run scenarios parallel 13 | 14 | # Project 15 | A simple calculator for testing cucumber features/scenarios in parallel 16 | 17 | # Testing command (use maven 3.3.9) 18 | mvn clean verify 19 | 20 | # How it works 21 | 1. First it reads the pom configuration 22 | 2. Reads the Runner Template java class 23 | 3. Generates test classes under generated test resources 24 | 4. Put those test classes under test-classes 25 | 5. Finally run those generated runner classes. 26 | 27 | Here is a image of target folder 28 | 29 | ![target](generated_runners.JPG) 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/reports/DefaultReportExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.reports; 2 | 3 | /** 4 | * Created by shantonu on 12/12/16. 5 | */ 6 | 7 | import org.automation.core.DataDrivenTest; 8 | import org.easetech.easytest.annotation.DataLoader; 9 | import org.easetech.easytest.annotation.Param; 10 | import org.easetech.easytest.annotation.Report; 11 | import org.easetech.easytest.runner.DataDrivenTestRunner; 12 | import org.junit.Assert; 13 | import org.junit.Test; 14 | import org.junit.runner.RunWith; 15 | 16 | @RunWith(DataDrivenTestRunner.class) 17 | @Report 18 | public class DefaultReportExample extends DataDrivenTest{ 19 | @Test 20 | @DataLoader(filePaths = "calculator2.xls") 21 | public void testAdd(@Param(name = "a") Double a, @Param(name = "b") Double b, @Param(name = "expected") Double expected) { 22 | Assert.assertEquals(expected, calculator.add(a, b), 0.1); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /junitbenchmark/charts/benchmark-lists.jsonp: -------------------------------------------------------------------------------- 1 | receiveJsonpData({ 2 | "cols": [ 3 | {"label": "method", "type": "string"}, 4 | {"label": "Average time [s]", "type": "number"}, 5 | {"label": "StdDev", "type": "number"}, 6 | {"label": "GC time [s]", "type": "number"}, 7 | {"label": "GC average [s]", "type": "number"}, 8 | {"label": "StdDev", "type": "number"}, 9 | {"label": "GC calls", "type": "number"}, 10 | {"label": "benchmark rounds", "type": "number"}, 11 | {"label": "warmup rounds", "type": "number"}, 12 | {"label": "Total benchmark time", "type": "number"}, 13 | {"label": "Total warmup time", "type": "number"} 14 | ], 15 | "rows": [ 16 | {"c": [{"v": "testSub"}, {"v": 0.25}, {"v": 0.0}, {"v": 0.0}, {"v": 0.0}, {"v": 0.0}, {"v": 0}, {"v": 20}, {"v": 2}, {"v": 2.5}, {"v": 0.25}]}, 17 | {"c": [{"v": "testAddition"}, {"v": 8.55}, {"v": 1.73}, {"v": 0.01}, {"v": 0.0}, {"v": 0.0}, {"v": 1}, {"v": 20}, {"v": 2}, {"v": 87.0}, {"v": 5.4}]} 18 | ]}); 19 | -------------------------------------------------------------------------------- /Serenity-Junit/src/main/java/org/automation/model/OrderCostSummary.java: -------------------------------------------------------------------------------- 1 | package org.automation.model; 2 | 3 | /** 4 | * Created by john on 13/11/14. 5 | */ 6 | public class OrderCostSummary { 7 | private final String name; 8 | private final double itemTotal; 9 | private final double shipping; 10 | private final double totalCost; 11 | 12 | public OrderCostSummary(String name, double itemTotal, double shipping, double totalCost) { 13 | this.name = name; 14 | this.itemTotal = itemTotal; 15 | this.shipping = shipping; 16 | this.totalCost = totalCost; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public double getItemTotal() { 24 | return itemTotal; 25 | } 26 | 27 | public double getShipping() { 28 | return shipping; 29 | } 30 | 31 | public double getTotalCost() { 32 | return totalCost; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Selenide-Junit/src/main/java/org/automation/pages/opencart/common/ProductOpenCartPageCommon.java: -------------------------------------------------------------------------------- 1 | package org.automation.pages.opencart.common; 2 | 3 | import org.automation.pages.opencart.core.OpenCartPageBase; 4 | 5 | /** 6 | * Created by shantonu on 4/27/17. 7 | */ 8 | public class ProductOpenCartPageCommon extends OpenCartPageBase { 9 | 10 | public String description_tab_css="a[href='#tab-description']"; 11 | public String review_tab_css="a[href='#tab-review']"; 12 | 13 | public void addToWishList(){ 14 | } 15 | private String addToCart_id="button-cart"; 16 | public void compareThis(){ 17 | //its a java script event, so we need to call with product identifier 18 | } 19 | public void likeOnFB(){ 20 | 21 | } 22 | public void tweet(){ 23 | 24 | } 25 | 26 | public void pinit(){ 27 | 28 | } 29 | //we need to special handler with JS 30 | public void shareIt(){ 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /junit-easytest/src/test/resources/calculator.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /AllureJunit/README.md: -------------------------------------------------------------------------------- 1 | # Allure Junit 2 | This repository contains 3 | 4 | 1. How can we start Allure Junit 5 | 2. Examples with all annotation supported 6 | 3. This is maven surefire plugins base execution. if you want integration tests, use failsafe. 7 | 8 | # Project Requirements 9 | 1. JDK 8+ (tested upto 21) 10 | 2. maven 3.3.9 + 11 | 12 | And inside POM : 13 | 14 | 3. Junit for test 15 | 4. SLF4J/log4j for logging support of allure 16 | 5. Allure Junit Adapter 17 | 6. Allure plugins for reporting + surefire listener 18 | 19 | 20 | # How to start : 21 | 1. Download this project 22 | 2. ```mvn clean test ``` [for testing] 23 | 3. ```mvn allure:report``` [make allure report] 24 | 4. ```mvn allure:serve``` [show report] 25 | 26 | to change port include this option in mavn command , -Dallure.port=YourPort like 27 | 28 | ```mvn -Dallure.port=9000 allure:serve``` 29 | 30 | Then from browser , if you goto http://localhost:9000 you can see the report. 31 | -------------------------------------------------------------------------------- /WiniumJunit/src/main/java/org/automation/win/app/config/WiniumOptionsForNotePad.java: -------------------------------------------------------------------------------- 1 | package org.automation.win.app.config; 2 | 3 | import org.openqa.selenium.Capabilities; 4 | import org.openqa.selenium.winium.DesktopOptions; 5 | import org.openqa.selenium.winium.KeyboardSimulatorType; 6 | import org.openqa.selenium.winium.WiniumOptions; 7 | 8 | /** 9 | * Created by shantonu on 7/6/17. 10 | * Contains all Config option of application 11 | * 12 | */ 13 | public class WiniumOptionsForNotePad extends DesktopOptions { 14 | 15 | public WiniumOptionsForNotePad(){ 16 | init(); 17 | } 18 | 19 | private void init(){ 20 | this.setApplicationPath(System.getProperty("notepad.path")); 21 | this.setKeyboardSimulator(KeyboardSimulatorType.BasedOnWindowsFormsSendKeysClass); 22 | this.setLaunchDelay(Integer.valueOf(System.getProperty("init.launcher.delay"))); 23 | this.setDebugConnectToRunningApp(Boolean.FALSE); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/policy/PolicyExample.java: -------------------------------------------------------------------------------- 1 | package org.automation.policy; 2 | 3 | import org.easetech.easytest.annotation.DataLoader; 4 | import org.easetech.easytest.annotation.Display; 5 | import org.easetech.easytest.annotation.Parallel; 6 | import org.easetech.easytest.annotation.Report; 7 | import org.easetech.easytest.loader.LoaderType; 8 | import org.easetech.easytest.runner.DataDrivenTestRunner; 9 | import org.junit.Ignore; 10 | import org.junit.runner.RunWith; 11 | 12 | /** 13 | * Created by shantonu on 7/19/16. 14 | */ 15 | 16 | @Ignore 17 | @Parallel(threads = 2) 18 | @Report(reportTypes = {Report.REPORT_TYPE.DEFAULT, 19 | Report.REPORT_TYPE.METHOD_DURATION}, 20 | outputFormats = Report.EXPORT_FORMAT.PDF, 21 | outputLocation = "file:TestReports") 22 | @DataLoader(filePaths = "calculator.xls")// i preffer data loder should be with method 23 | @Display(fields = "id") 24 | public class PolicyExample { 25 | } 26 | -------------------------------------------------------------------------------- /Allure2-Junit5/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO,CONSOLE,file,HTML 2 | 3 | # Direct log messages to a log file 4 | log4j.appender.file=org.apache.log4j.RollingFileAppender 5 | log4j.appender.file.File=./target/logs/test.log 6 | log4j.appender.file.MaxFileSize=10MB 7 | log4j.appender.file.MaxBackupIndex=10 8 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 10 | 11 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 12 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout 13 | log4j.appender.CONSOLE.layout.ConversionPattern= %d{dd MMM yyyy HH:mm:ss} : %t-%5p:%m%n 14 | 15 | log4j.appender.HTML=org.apache.log4j.FileAppender 16 | log4j.appender.HTML.File=./target/junit_results.html 17 | log4j.appender.HTML.layout=org.apache.log4j.HTMLLayout 18 | log4j.appender.HTML.layout.Title=Sony_Test_Results 19 | log4j.appender.HTML.layout.LocationInfo=true -------------------------------------------------------------------------------- /testng-executable/readme.md: -------------------------------------------------------------------------------- 1 | # Main Goal 2 | Making executable JAR file to run tests 3 | 4 | # Side Goals 5 | - Include all dependencies 6 | - Only having JRE should run the App 7 | - Separate folder for suiteXML 8 | - A ini file to maintain Listeners 9 | 10 | 11 | # Requirements For compiling project 12 | - Open Jdk 11 13 | 14 | # Maven Commands 15 | - To make executable JAR ```mvn -DskipTests=true package``` 16 | 17 | # Running 18 | - A folder containing this 19 | 20 | ![test_folder.png](./doc/test_folder.png) 21 | 22 | 23 | type cmd ```java -jar CalculatorTests-1.1.0.jar``` 24 | 25 | and you should see results like this 26 | 27 | ![RunningFromJar.png](./doc/RunningFromJar.png) 28 | 29 | Expected output : 30 | 1. CMD output of log 31 | 2. Test Results in HTML 32 | 3. Log output 33 | 34 | The output folder 35 | 36 | ![output_folder.png](./doc/outputFolder.PNG) 37 | 38 | inside the folder 39 | 40 | ![results.png](./doc/results.PNG) 41 | 42 | # How to run -------------------------------------------------------------------------------- /AzimoBlog/src/tests/Nevigation.java: -------------------------------------------------------------------------------- 1 | package tests; 2 | 3 | 4 | import org.testng.Assert; 5 | import org.testng.annotations.AfterClass; 6 | import org.testng.annotations.BeforeClass; 7 | import org.testng.annotations.Test; 8 | 9 | import Azimo.com.pages.HomePage; 10 | import browserAPI.Browser; 11 | 12 | public class Nevigation { 13 | 14 | private Browser myBrowser; 15 | private boolean acceptNextAlert = true; 16 | private StringBuffer verificationErrors = new StringBuffer(); 17 | 18 | @BeforeClass 19 | public void init() { 20 | myBrowser = Browser.getBrowser(); 21 | } 22 | @AfterClass 23 | public void End(){ 24 | myBrowser.QuitBrowser(); 25 | } 26 | 27 | @Test 28 | public void test() { 29 | HomePage myHomepage = new HomePage(); 30 | myHomepage.selectDeutschVersion(); 31 | myHomepage.selectEnglighVersion(); 32 | 33 | Assert.assertEquals("International Money Transfer - Send Money Online with Azimo", myHomepage.getTitle()); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Selenide-Junit/properties/default/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO,CONSOLE,file,HTML 2 | 3 | # Direct log messages to a log file 4 | log4j.appender.file=org.apache.log4j.RollingFileAppender 5 | log4j.appender.file.File=./reports/logs/test.log 6 | log4j.appender.file.MaxFileSize=10MB 7 | log4j.appender.file.MaxBackupIndex=10 8 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n 10 | 11 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 12 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout 13 | log4j.appender.CONSOLE.layout.ConversionPattern= %d{dd MMM yyyy HH:mm:ss} : %t-%5p:%m%n 14 | 15 | log4j.appender.HTML=org.apache.log4j.FileAppender 16 | log4j.appender.HTML.File=./reports/html/junit_results.html 17 | log4j.appender.HTML.layout=org.apache.log4j.HTMLLayout 18 | log4j.appender.HTML.layout.Title=Sony_Test_Results 19 | log4j.appender.HTML.layout.LocationInfo=true -------------------------------------------------------------------------------- /junit-easytest/src/test/java/org/automation/customtype/TestCustomObjectConverter.java: -------------------------------------------------------------------------------- 1 | package org.automation.customtype; 2 | 3 | import org.automation.Calculator; 4 | 5 | import org.easetech.easytest.converter.ConverterManager; 6 | import org.easetech.easytest.converter.UserDefinedConverter; 7 | import org.junit.Assert; 8 | import org.junit.Before; 9 | import org.junit.BeforeClass; 10 | import org.junit.Test; 11 | import org.junit.runner.RunWith; 12 | import org.junit.runners.BlockJUnit4ClassRunner; 13 | 14 | /** 15 | * Created by shantonu on 7/16/16. 16 | * todo 17 | */ 18 | 19 | public class TestCustomObjectConverter { 20 | private Calculator calculator; 21 | 22 | @BeforeClass 23 | public static void initClass(){ 24 | 25 | } 26 | 27 | @Before 28 | public void init(){ 29 | calculator = new Calculator(); 30 | } 31 | @Test 32 | public void testAdd(){ 33 | Assert.assertEquals(25.0, calculator.add(10.5,14.5),0.1); 34 | } 35 | } 36 | --------------------------------------------------------------------------------