GithubHelp home page GithubHelp logo

laxman-singh / gponrouterautomation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

Selenium Java based project for automating the router reboot using it's web console. It also uses GraalVM to compile byte code into native binary.

Home Page: https://thinqerr.com/c/create_native_executable_with_spring_boot_and_graalvm

Java 100.00%
graalvm graalvm-native-image gradle gradle-java selenium selenium-java

gponrouterautomation's Introduction

GPONRouterAutomation

Selenium Java-based project for automating the router reboot using its web console. It also uses GraalVM to compile byte code into native binary.

Setup

This project uses gradle as build tool. Run the below command to build this project:

gradle clean build

It will create a standalone jar file inside build/libs directory.

Also check GraalVM native image generation config files are created or not. Look for the below files:

  • build
    • classes
      • main
        • com
        • META-INF
          • com.thinqerr
            • hint
              • dynamic-proxy-config.json
              • native-image.properties
              • resource-config.json
              • reflect-config.json

Create native image:

Note GraalVM JDK is needed to create the native executable. Follow these instructions to setup and installation of GraaalVM.

native-image -jar GPONRouterAutomation-1.0-SNAPSHOT.jar 

The above command will create a native executable binary, which you can run directly:

./router-automation

Output:

Executing GPON Router Automation Task..........!!
1689536363934	geckodriver	INFO	Listening on 127.0.0.1:18505
*** You are running in headless mode.
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
WebDriver BiDi listening on ws://127.0.0.1:22578
Read port: 39021
console.error: ({})
DevTools listening on ws://127.0.0.1:22578/devtools/browser/e71d16e6-544c-4561-9210-6e49b8f6b247
console.warn: LoginRecipes: "Falling back to a synchronous message for: http://192.168.1.1."
console.warn: LoginRecipes: "Falling back to a synchronous message for: http://192.168.1.1."
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
console.error: ({})
Jul 17, 2023 1:09:32 AM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch
WARNING: Unable to find CDP implementation matching 85
Hurry, mission accomplished ..........!!

Schedule (CronTab)

$ crontab -e
0 5 * * * /opt/router-automation/gpon > /opt/router-automation/automation.log

gponrouterautomation's People

Contributors

laxman-singh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.