Keikai Developer Reference Example Project Keikai, effortlessly build spreadsheet-driven web apps. This project contains the sample code of…
Keikai Developer Reference Example Project Keikai, effortlessly build spreadsheet-driven web apps. This project contains the sample code of…
Keikai, effortlessly build spreadsheet-driven web apps.
This project contains the sample code of Keikai Developer Reference.
Please read various use cases in blog.
If you are new to run Keikai, we recommend you to read Tutorial first to know some basic ideas.
Clone the project and launch your command line interface in the folder with pom.xml. Execute the following commands based on your OS.
mvn clean verify org.codehaus.cargo:cargo-maven3-plugin:run -Dcargo.maven.containerId=tomcat9x -Dcargo.maven.containerUrl=https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/9.0.45/tomcat-9.0.45.zip
See Codehaus Cargo Maven 3 Plugin Getting Started
mvn jetty:run
It starts faster than Tomcat, but JSP/JSF doesn't work.
Run the Maven wrapper below which will download everything needed for you during starting up:
./mvnw [SAME_GOAL_ABOVE]
mvnw.cmd [SAME_GOAL_ABOVE]
After the server starts up, visit http://localhost:8080/dev-ref with your browser. You will be seeing a list of examples, these examples are explained in Keikai Developer Reference.
After finishing trying it out, you can press Ctrl+c to stop the server.
This project ships browser-based smoke tests built on zk-webdriver (JUnit 5, embedded Jetty + headless Chrome). They open real pages, check browser console errors / ZK error boxes / spreadsheet rendering, and write one JSON record per page under target/smoke/ (plus a screenshot) for cross-version comparison.
Requirements: JDK 17+ and a local Chrome installation. Run in the folder with pom.xml (use ./mvnw / mvnw.cmd if Maven is not installed):
# smoke-load every page (zul + html); merges results into target/smoke/baseline-.json
mvn test -Dtest=Tier0SmokeTest -Dkeikai.version=
# basic edit interaction (click a cell, type, Enter) over manipulatingBookModel / advanced / useCase pages
mvn test -Dtest=InteractionSmokeTest
# login flow for useCase/userPermission (Tier0 skips main.zul because it needs a session)
mvn test -Dtest=UserPermissionFlowTest
# dump the spreadsheet DOM tag / CSS-class inventory of representative pages to target/domdump/
mvn test -Dtest=DomDumpTest
# everything at once
mvn test
Useful switches:
-Dheadless=false — watch the browser while a test runs.-Dkeikai.version=... — only stamps the version string into the JSON records; the actual Keikai version under test comes from pom.xml (switch git branches to test another version).Notes:
SKIP / KNOWN_BASELINE_ISSUES in Tier0SmokeTest); skipped pages still get a JSON record so the page inventory stays complete.Tier0SmokeTest on each branch, keep both baseline-*.json files, and diff them.Freshly release contains the latest features and bug fixes that are under development. It's built for testing and evaluation. Welcome to try it and give us feedback.
The steps are:
pom.xmlWe create the folder and file names according to the section name of Developer Reference. So that you can easily identify a section and its corresponding example zul.
No open issues yet, or sync has not completed.