Skip to content

Commit

Permalink
ISSUE-405: crate bat script to launch jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
OvsyannikovMaksim committed May 4, 2024
1 parent 61e6eba commit f1f5747
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion artifacts/page-object-code-gen
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
echo "Make ui damp and pull it"
pathToUiDump=$(adb shell uiautomator dump | grep -oE '/.*?xml')
echo "$pathToUiDump"
adb pull "$pathToUiDump"
echo "Create page object"
java -jar page-object-code-gen.jar window_dump.xml "$1" "$2"
Expand Down
7 changes: 7 additions & 0 deletions artifacts/page-object-code-gen.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
echo off
echo Make ui damp and pull it
adb shell uiautomator dump
adb pull /sdcard/window_dump.xml
echo Create page object
java -jar page-object-code-gen.jar window_dump.xml %~1 %~2
del window_dump.xml

0 comments on commit f1f5747

Please sign in to comment.