Uncategorized

  • Home
  • /
  • Uncategorized
  • 12
    Jul

    socket error: java.net.BindException: Address already in use: JVM_Bind

    In java if we execute a socket program (which keeps running in JVM), we can use following solution to kill it in Windows OS: Step 1: On command prompt...

    Read More
  • 12
    Jul

    IConfigurable and IHookable example in testng

    IConfigurable interface can be implemented to configure all “Configurable annotations” eg. @BeforeSuite, @BeforeTest etc. method: run(IConfigureCallBack cb, ITestResult itr) Following example demonstrate difference between IConfigurable and IHookable interface implementation...

    Read More
  • 09
    Jul

    Get list of perfecto devices – jmx

    Perfecto-GetListOfDevicesjmx

    Read More
  • 25
    Jun

    Online phone specs finder

    https://www.gsmarena.com/search.php3? https://www.gsmarena.com/samsung-phones-9.php eg Samsung SM-G950U

    Read More
  • 20
    Jun

    timeout in WebDriver

    The timeouts() methods [driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);] are not implemented in some drivers and are very unreliable in general. I use a separate thread for the timeouts (passing the url to...

    Read More
  • 13
    Jun

    Git notes from Google

    FAQs: https://www.git-tower.com/learn/git/faq

    Read More
  • 31
    May

    log4j property file

    log4j.rootLogger=INFO, StdOut log4j.appender.StdOut=org.apache.log4j.ConsoleAppender log4j.appender.StdOut.layout=org.apache.log4j.PatternLayout log4j.appender.StdOut.layout.ConversionPattern=%d [%t] u:%X{user}/d:%X{docId} %-5p %c – %m%n log4j.appender.StdOut.Threshold=DEBUG log4j.logger.org.kuali.rice=INFO log4j.logger.org.springframework=WARN #log4j.logger.org.kuali.rice.core.impl.config=DEBUG log4j.logger.org.apache.struts.util.PropertyMessageResources=ERROR

    Read More
  • 31
    May

    Automation frameworks

    Frameworks from Github: ====================== #1. SeleniumTestsFramework ************************ https://github.com/tarun3kumar/seleniumtestsframework #2. Selenium Cucumber JUnit Framework: https://github.com/Spence1115/selenium-cucumber-framework #3. Wrapper of Selenium WebDriver API with Functional Programming feature from Java 8. https://github.com/yujunliang/seleniumcapsules #4....

    Read More
  • 30
    May

    Automation frameworks

    #1. QMetry https://www.programcreek.com/java-api-examples/?code=qmetry/qaf/qaf-master/src/com/qmetry/qaf/automation/ui/selenium/webdriver/SeleniumDriverFactory.java# #2. RemoteWebDriver tests https://www.programcreek.com/java-api-examples/?code=MicroFocus/SilkAppDriver/SilkAppDriver-master/samples/java/appdriver-tests/src/test/java/com/microfocus/silk/appdriver/tests/MultiWindowTests.java#

    Read More
  • 30
    May

    How to get sikuli-script.jar for Windows 64 bit machine

    Instead of sikuli-script.jar you can use sikuli-java.jar as follows: Download last setup from here https://launchpad.net/sikuli/sikulix/1.0.1/+download/sikuli-setup.jar put it in in a dedicated folder (e.g d:\sikuli) Run the downloaded jar file...

    Read More