kazurayam / inspectus4katalon-gradle-plugin

A Gradle plugin that helps Katalon Studio project to use the inspectus library. Inspectus-powered project will be able to perform Visual Inspection.
Apache License 2.0
0 stars 0 forks source link

functionalTest runs super slow #31

Closed kazurayam closed 1 year ago

kazurayam commented 1 year ago

The "gradle check" task took over 2minutes:

:~/github/inspectus4katalon-gradle-plugin (develop *)
$ gradle clean check

BUILD SUCCESSFUL in 2m 15s
10 actionable tasks: 10 executed

On the other hande, the build in the rehearsal directory runs quick enough.

kazurayam commented 1 year ago

I found a fact.

The zip file of inspectus4katalon-sample-project-0.3.2.zip is large. It is 27.2 mega bytes of size.

/Users/kazuakiurayama/Downloads:
  total used in directory 48989 available 164.5 GiB
  drwx------  8 kazuakiurayama    256 12 16 20:47 .
  drwxr-xr-x120 kazuakiurayama   3.8k 12 16 18:06 ..
  -rw-r--r--  1 kazuakiurayama  27.2M 12 16 20:46 inspectus4katalon-sample-project-0.3.2 (1).zip

The zip file is so bit that the deply-visual-inspection-sample-for-katalon task takes 2 minutes.

Why is it this big? --- the zip contains "docs/demo/store" and "docs/demo/store-backup" directory where a lot of PNG screenshots are saved.

~/Downloads $ tree inspectus4katalon-sample-project-0.3.2
inspectus4katalon-sample-project-0.3.2
├── Include
│   ├── config
│   │   └── log.properties
│   └── data
│       └── MyAdmin
│           └── targetList.csv
├── Object Repository
│   └── CURA
│       └── Page_CURA Healthcare Service
│           ├── appointment
│           │   ├── button_Book Appointment.rs
│           │   ├── input_Apply for hospital readmission.rs
│           │   ├── input_Medicaid_programs.rs
│           │   ├── input_visit_date.rs
│           │   ├── select_Tokyo CURA Healthcare Center.rs
│           │   └── textarea_Comment_comment.rs
│           ├── login
│           │   ├── button_Login.rs
│           │   ├── input_Password_password.rs
│           │   └── input_Username_username.rs
│           ├── summary
│           │   └── a_Go to Homepage.rs
│           └── top
│               └── a_Make Appointment.rs
├── Profiles
│   ├── CURA_DevelopmentEnv.glbl
│   ├── MyAdmin_DevelopmentEnv.glbl
│   ├── MyAdmin_ProductionEnv.glbl
│   └── default.glbl
├── README.md
├── Scripts
│   ├── CURA
│   │   ├── main
│   │   │   └── Script1667709715867.groovy
│   │   ├── materialize
│   │   │   └── Script1667709728945.groovy
│   │   └── run_materialize
│   │       └── Script1667709743309.groovy
│   ├── DuckDuckGo
│   │   ├── main
│   │   │   └── Script1667437517277.groovy
│   │   ├── materialize
│   │   │   └── Script1667437527092.groovy
│   │   └── run_materialize
│   │       └── Script1667616595404.groovy
│   ├── MyAdmin
│   │   ├── main
│   │   │   └── Script1667687348266.groovy
│   │   ├── materialize
│   │   │   └── Script1667687365090.groovy
│   │   ├── processTargetList
│   │   │   └── Script1668563538525.groovy
│   │   └── run_materialize
│   │       └── Script1667687380074.groovy
│   └── common
│       ├── BackupAll
│       │   └── Script1668394619253.groovy
│       └── Scavenge
│           └── Script1668394684813.groovy
├── Test Cases
│   ├── CURA
│   │   ├── main.tc
│   │   ├── materialize.tc
│   │   └── run_materialize.tc
│   ├── DuckDuckGo
│   │   ├── main.tc
│   │   ├── materialize.tc
│   │   └── run_materialize.tc
│   ├── MyAdmin
│   │   ├── main.tc
│   │   ├── materialize.tc
│   │   ├── processTargetList.tc
│   │   └── run_materialize.tc
│   └── common
│       ├── BackupAll.tc
│       └── Scavenge.tc
├── build.gradle
├── console.properties
├── docs
│   ├── MarkdownUtils-0.2.0.jar
│   ├── demo
│   │   ├── store
│   │   │   ├── CURA
│   │   │   │   ├── 20221213_080643
│   │   │   │   │   ├── index
│   │   │   │   │   └── objects
│   │   │   │   │       ├── 2a08c210f5f4f831349506231868a58415b55def.html
│   │   │   │   │       ├── 5e6588d3437effb02a81f9b40f4e8bf4daa41c24.png
│   │   │   │   │       ├── 5f85a75fd071c845e467f4008046d9c0ea4f24f6.html
│   │   │   │   │       ├── 6e1a55c9011dc14568a62666af0c2ee3de760754.png
│   │   │   │   │       ├── 7b09e95496d59f8e34b0f2e9c54623b0155832c3.html
│   │   │   │   │       └── e3ff37bf375ab0ee238e17bbc6ca92cb0f933735.png
│   │   │   │   ├── 20221213_080716
│   │   │   │   │   ├── index
│   │   │   │   │   └── objects
│   │   │   │   │       ├── 13f9e939f8d7c557089165832d630aaf5d1d2450.html
│   │   │   │   │       ├── 2ea53a494badcfbbb66c2f0ad08d8dbe55e58e44.png
│   │   │   │   │       ├── 4575b8b5ca36c35407da552f2fa0610b0151fec9.html
│   │   │   │   │       ├── 5e15a16aac5e4ff7f2bced7127c47139cad5f959.png
│   │   │   │   │       ├── 6e1806225d727ba2546ad6a327cbbb837d2a0188.html
│   │   │   │   │       ├── 9ff31f11fd00ca5d41cd46fece62618d5ce2bd68.png
│   │   │   │   │       ├── e26d624e6f91a239956e013e2db4c31748bc7158.html
│   │   │   │   │       └── ff3aaaafb93a60f70b3b790f2948e62a609d5865.png
│   │   │   │   ├── 20221213_080806
│   │   │   │   │   ├── index
│   │   │   │   │   └── objects
│   │   │   │   │       ├── 1e87e1c9a49d009c4823796ac196a4999acda7e7.png
│   │   │   │   │       ├── 49e4fbbd673843c06ece6756e2c71a188dc40178.png
│   │   │   │   │       ├── 8fcd2c02028c5a5f02ed1637506b0d2b89642e2f.html
│   │   │   │   │       ├── b072929e40f1e8779abdeb3d93ace2190f74471c.html
│   │   │   │   │       ├── e3ff37bf375ab0ee238e17bbc6ca92cb0f933735.png
│   │   │   │   │       └── f1085a4a7721d88619a35a7ef9393ef5603aa52a.html
│   │   │   │   └── 20221213_080831
│   │   │   │       ├── index
│   │   │   │       └── objects
│   │   │   │           ├── 2b9168f3ace6f0caa90d5f75f8897ca3fe62b08b.html
│   │   │   │           ├── 5e6588d3437effb02a81f9b40f4e8bf4daa41c24.png
│   │   │   │           ├── a5dba1fe80af02d63837052456ee4cc057bcf472.html
│   │   │   │           ├── be7603f117950cdcd57062067833b20e9e7bb345.html
│   │   │   │           ├── ce2bd44179ab158abdcfddb807bcc4184b8ad02c.png
│   │   │   │           └── e3ff37bf375ab0ee238e17bbc6ca92cb0f933735.png
│   │   │   ├── CURA-20221213_080716.html
│   │   │   ├── CURA-20221213_080831.html
│   │   │   ├── DuckDuckGo
│   │   │   │   └── 20221213_080436
│   │   │   │       ├── index
│   │   │   │       └── objects
│   │   │   │           ├── 1d201c5bbbbcfe5a41efbe886a34143261e6afd7.html
│   │   │   │           ├── 3477afdca87358c697b9b479cbc8ed4e6bc05a21.html
│   │   │   │           ├── a27103cafc3daf1f5229784f1f365e5d014f43f6.png
│   │   │   │           ├── a297efff9393fbc896d06ce80bed419b6bef963f.png
│   │   │   │           ├── a2c25d986cdfc06faba8f45aa46c1daf31ae5d73.png
│   │   │   │           └── fcd3655bb62ce1f7f62395c621f44535ffb322c7.html
│   │   │   ├── DuckDuckGo-20221213_080436.html
│   │   │   ├── MyAdmin
│   │   │   │   ├── 20221213_080535
│   │   │   │   │   ├── index
│   │   │   │   │   └── objects
│   │   │   │   │       ├── 03a4cd8c6ad2f6282080b44622628cdbfb84fbb1.html
│   │   │   │   │       ├── 0db0532c9deb5c67f165e1ad867f96048f4ab017.html
│   │   │   │   │       ├── 26559bf754cfc8a7269ac4d7f88ed552b68624ab.png
│   │   │   │   │       ├── 6bfd6eaa0df57f1c2d349c10f4fa11a475f978b7.html
│   │   │   │   │       ├── 93f19f62774550aade8ceb9657405c2624c720a0.png
│   │   │   │   │       └── b2250fcb54639acf521223ae408fff1da0343126.png
│   │   │   │   ├── 20221213_080547
│   │   │   │   │   ├── index
│   │   │   │   │   └── objects
│   │   │   │   │       ├── 161599eb7e32dc884767da83734006c883dc1a56.html
│   │   │   │   │       ├── 33c8dcc0004dd5d49db58d81eb56997aec00a119.png
│   │   │   │   │       ├── 74e4a1c3b26c112495f8013c9cbf370f8078111e.html
│   │   │   │   │       ├── 81750bc29881a1bc27c3e1511087d5a73290b712.png
│   │   │   │   │       ├── 83fc345304d0254e1d799176b43f478faab0005b.png
│   │   │   │   │       └── b40c162a8ff66ae7c3c158eb16e6f42ecc242f83.html
│   │   │   │   └── 20221213_080556
│   │   │   │       ├── index
│   │   │   │       └── objects
│   │   │   │           ├── 069ad44665b66eb375e1f578bbd782a3373f1c9d.html
│   │   │   │           ├── 0ac5fd4d560847b532aad7961987f68e87666c23.html
│   │   │   │           ├── 1b3c0d0ef2df5b451049aa61dd07113bc7cfc3f6.png
│   │   │   │           ├── 663af43158a45cd4bdc4dfbd21e1e052c6191ad7.png
│   │   │   │           ├── cf6c13999adff13df7c6ad70d4c492e0106a8836.png
│   │   │   │           └── f56a4798a38d12f2150ad919041650915f92f786.html
│   │   │   ├── MyAdmin-20221213_080556.html
│   │   │   └── index.html
│   │   └── store-backup
│   │       ├── CURA
│   │       │   ├── 20221213_080643
│   │       │   │   ├── index
│   │       │   │   └── objects
│   │       │   │       ├── 2a08c210f5f4f831349506231868a58415b55def.html
│   │       │   │       ├── 5e6588d3437effb02a81f9b40f4e8bf4daa41c24.png
│   │       │   │       ├── 5f85a75fd071c845e467f4008046d9c0ea4f24f6.html
│   │       │   │       ├── 6e1a55c9011dc14568a62666af0c2ee3de760754.png
│   │       │   │       ├── 7b09e95496d59f8e34b0f2e9c54623b0155832c3.html
│   │       │   │       └── e3ff37bf375ab0ee238e17bbc6ca92cb0f933735.png
│   │       │   ├── 20221213_080716
│   │       │   │   ├── index
│   │       │   │   └── objects
│   │       │   │       ├── 13f9e939f8d7c557089165832d630aaf5d1d2450.html
│   │       │   │       ├── 2ea53a494badcfbbb66c2f0ad08d8dbe55e58e44.png
│   │       │   │       ├── 4575b8b5ca36c35407da552f2fa0610b0151fec9.html
│   │       │   │       ├── 5e15a16aac5e4ff7f2bced7127c47139cad5f959.png
│   │       │   │       ├── 6e1806225d727ba2546ad6a327cbbb837d2a0188.html
│   │       │   │       ├── 9ff31f11fd00ca5d41cd46fece62618d5ce2bd68.png
│   │       │   │       ├── e26d624e6f91a239956e013e2db4c31748bc7158.html
│   │       │   │       └── ff3aaaafb93a60f70b3b790f2948e62a609d5865.png
│   │       │   ├── 20221213_080806
│   │       │   │   ├── index
│   │       │   │   └── objects
│   │       │   │       ├── 1e87e1c9a49d009c4823796ac196a4999acda7e7.png
│   │       │   │       ├── 49e4fbbd673843c06ece6756e2c71a188dc40178.png
│   │       │   │       ├── 8fcd2c02028c5a5f02ed1637506b0d2b89642e2f.html
│   │       │   │       ├── b072929e40f1e8779abdeb3d93ace2190f74471c.html
│   │       │   │       ├── e3ff37bf375ab0ee238e17bbc6ca92cb0f933735.png
│   │       │   │       └── f1085a4a7721d88619a35a7ef9393ef5603aa52a.html
│   │       │   └── 20221213_080831
│   │       │       ├── index
│   │       │       └── objects
│   │       │           ├── 2b9168f3ace6f0caa90d5f75f8897ca3fe62b08b.html
│   │       │           ├── 5e6588d3437effb02a81f9b40f4e8bf4daa41c24.png
│   │       │           ├── a5dba1fe80af02d63837052456ee4cc057bcf472.html
│   │       │           ├── be7603f117950cdcd57062067833b20e9e7bb345.html
│   │       │           ├── ce2bd44179ab158abdcfddb807bcc4184b8ad02c.png
│   │       │           └── e3ff37bf375ab0ee238e17bbc6ca92cb0f933735.png
│   │       ├── CURA-20221213_080716.html
│   │       ├── CURA-20221213_080831.html
│   │       ├── DuckDuckGo
│   │       │   └── 20221213_080436
│   │       │       ├── index
│   │       │       └── objects
│   │       │           ├── 1d201c5bbbbcfe5a41efbe886a34143261e6afd7.html
│   │       │           ├── 3477afdca87358c697b9b479cbc8ed4e6bc05a21.html
│   │       │           ├── a27103cafc3daf1f5229784f1f365e5d014f43f6.png
│   │       │           ├── a297efff9393fbc896d06ce80bed419b6bef963f.png
│   │       │           ├── a2c25d986cdfc06faba8f45aa46c1daf31ae5d73.png
│   │       │           └── fcd3655bb62ce1f7f62395c621f44535ffb322c7.html
│   │       ├── DuckDuckGo-20221213_080436.html
│   │       ├── MyAdmin
│   │       │   ├── 20221213_080535
│   │       │   │   ├── index
│   │       │   │   └── objects
│   │       │   │       ├── 03a4cd8c6ad2f6282080b44622628cdbfb84fbb1.html
│   │       │   │       ├── 0db0532c9deb5c67f165e1ad867f96048f4ab017.html
│   │       │   │       ├── 26559bf754cfc8a7269ac4d7f88ed552b68624ab.png
│   │       │   │       ├── 6bfd6eaa0df57f1c2d349c10f4fa11a475f978b7.html
│   │       │   │       ├── 93f19f62774550aade8ceb9657405c2624c720a0.png
│   │       │   │       └── b2250fcb54639acf521223ae408fff1da0343126.png
│   │       │   ├── 20221213_080547
│   │       │   │   ├── index
│   │       │   │   └── objects
│   │       │   │       ├── 161599eb7e32dc884767da83734006c883dc1a56.html
│   │       │   │       ├── 33c8dcc0004dd5d49db58d81eb56997aec00a119.png
│   │       │   │       ├── 74e4a1c3b26c112495f8013c9cbf370f8078111e.html
│   │       │   │       ├── 81750bc29881a1bc27c3e1511087d5a73290b712.png
│   │       │   │       ├── 83fc345304d0254e1d799176b43f478faab0005b.png
│   │       │   │       └── b40c162a8ff66ae7c3c158eb16e6f42ecc242f83.html
│   │       │   └── 20221213_080556
│   │       │       ├── index
│   │       │       └── objects
│   │       │           ├── 069ad44665b66eb375e1f578bbd782a3373f1c9d.html
│   │       │           ├── 0ac5fd4d560847b532aad7961987f68e87666c23.html
│   │       │           ├── 1b3c0d0ef2df5b451049aa61dd07113bc7cfc3f6.png
│   │       │           ├── 663af43158a45cd4bdc4dfbd21e1e052c6191ad7.png
│   │       │           ├── cf6c13999adff13df7c6ad70d4c492e0106a8836.png
│   │       │           └── f56a4798a38d12f2150ad919041650915f92f786.html
│   │       └── MyAdmin-20221213_080556.html
│   ├── diagrams
│   │   ├── out
│   │   │   ├── chronos-diff
│   │   │   │   └── chronos-diff.png
│   │   │   ├── shootings
│   │   │   │   └── shootings.png
│   │   │   └── twins-diff
│   │   │       └── twins-diff.png
│   │   └── src
│   │       ├── chronos-diff.pu
│   │       ├── shootings.pu
│   │       └── twins-diff.pu
│   ├── images
│   │   └── store-index-html.png
│   ├── index-ja.md
│   ├── index-ja_.adoc
│   ├── index.md
│   ├── index_.adoc
│   └── indexconv.sh
├── inspectus4katalon-sample-project.prj
├── sample-project-katalon.prj
├── settings
│   ├── external
│   │   ├── com.kms.katalon.composer.execution.settings.properties
│   │   └── com.kms.katalon.core.db.DatabaseSettings.properties
│   └── internal
│       ├── com.kms.katalon.composer.testcase.properties
│       ├── com.kms.katalon.composer.testcase.settings.properties
│       ├── com.kms.katalon.core.webservice.properties
│       ├── com.kms.katalon.execution.properties
│       ├── com.kms.katalon.execution.webui.properties
│       ├── com.kms.katalon.integration.analytics.properties
│       ├── com.kms.katalon.integration.qtest.properties
│       └── com.kms.katalon.integration.testcloud.properties
└── settings.gradle

86 directories, 195 files
kazurayam commented 1 year ago

How can I make the zip file small?

kazurayam commented 1 year ago

by the build.gradle of the inspectus4katalon-sample-project, run a custom task distributable.

The distributablezip task will create a zip file which contains the files to distribute while excluding the docs/ directory. The zip will be located somewhere in the build/lib directory. I will put the created distributableProject-x.x.x.zip in the "Releases" page of each version; e.g.

The inspectus4katalon Gradle plugin will use the distributableProject zip, instead of the "Source code".zip.

kazurayam commented 1 year ago

The inspectus4katalon-sample-project supported the distributable task.

https://github.com/kazurayam/inspectus4katalon-sample-project/issues/17

It created and publishted the distributable.zip at

https://github.com/kazurayam/inspectus4katalon-sample-project/releases/tag/untagged-fb2be7db4ace408a12b0

The URL of the zip file is

https://github.com/kazurayam/inspectus4katalon-sample-project/releases/download/untagged-fb2be7db4ace408a12b0/distributable.zip

kazurayam commented 1 year ago

The size of distributable.zip file 28.7 kilo bytes. 1000 times smaller than the "Source code.zip".

So, the functionalTest run far faster. It can pass about 12 seconds.