-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add gallery automation test data and configs #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Anuragyadav622003
wants to merge
1
commit into
mozarkai:main
Choose a base branch
from
Anuragyadav622003:feature/gallery-automation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,8 +174,8 @@ cython_debug/ | |
| # PyPI configuration file | ||
| .pypirc | ||
|
|
||
| *.csv | ||
| *.yaml | ||
| !*.csv | ||
| !*.yaml | ||
| *.jpg | ||
| *.json | ||
| *.log | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| driver_sources: | ||
| - appium: | ||
| enabled: true | ||
| url: "http://localhost:4723" | ||
| capabilities: | ||
| deviceName: R9ZX30AKE6M | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. modify this to an emulator-5554 |
||
| platformName: Android | ||
| platformVersion: "16" | ||
| automationName: UiAutomator2 | ||
| appPackage: com.sec.android.gallery3d | ||
| appActivity: .app.GalleryActivity | ||
| noReset: true | ||
| newCommandTimeout: 300 | ||
|
|
||
| elements_sources: | ||
| - appium_find_element: | ||
| enabled: true | ||
| - appium_page_source: | ||
| enabled: true | ||
| - appium_screenshot: | ||
| enabled: true | ||
|
|
||
| text_detection: | ||
| - easyocr: | ||
| enabled: true | ||
|
|
||
| image_detection: | ||
| - templatematch: | ||
| enabled: true | ||
|
|
||
| log_level: INFO | ||
| json_log: true | ||
| file_log: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| module_name,module_step,param_1,param_2,param_3,param_4,param_5 | ||
|
|
||
| Launch Gallery App,Launch App,com.sec.android.gallery3d,,, | ||
| Launch Gallery App,Sleep,3,,,, | ||
|
|
||
| Open Sidebar,Press Element,${menu_icon_image},,, | ||
| Open Sidebar,Sleep,2,,,, | ||
| Open Sidebar,Press Element,${pictures_option_image},,, | ||
| Open Sidebar,Sleep,2,,,, | ||
|
|
||
| Navigate To Pictures,Press Element,${pictures_option_image},,, | ||
| Navigate To Pictures,Sleep,2,,,, | ||
|
|
||
| Open Search,Press Element,${search_icon_image},,, | ||
| Open Search,Sleep,4,,,, | ||
|
|
||
| Scroll To Search,Scroll,down,,, | ||
| Scroll To Search,Sleep,2,,,, | ||
|
|
||
| Enter Search Text,Detect And Press,${search_input_image},10,, | ||
| Enter Search Text,Enter Text Direct,gurugram,, | ||
| Enter Search Text,Sleep,3,,,, | ||
|
|
||
| Select Image,Detect And Press,${first_image_image},10,, | ||
| Select Image,Sleep,2,,,, | ||
|
|
||
| Delete Image Flow,Detect And Press,${delete_icon_image},10,, | ||
| Delete Image Flow,Sleep,2,,,, | ||
|
|
||
| Confirm Delete,Detect And Press,${move_to_recycle_bin_image},10,, | ||
| Confirm Delete,Sleep,2,,,, | ||
|
|
||
| Delete Multiple Images,Run Loop,Delete Image Flow,2,,, | ||
|
|
||
| Close Gallery App,Force Terminate App,com.sec.android.gallery3d,,, | ||
| Close Gallery App,Close And Terminate App,,,, |
15 changes: 15 additions & 0 deletions
15
optics_framework/samples/gallery/test_cases/test_cases.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| test_case,test_step | ||
|
|
||
| Suite Setup,Launch Gallery App | ||
| Suite Setup,Open Sidebar | ||
|
|
||
| Main Flow,Navigate To Pictures | ||
| Main Flow,Open Search | ||
| Main Flow,Scroll To Search | ||
| Main Flow,Enter Search Text | ||
| Main Flow,Select Image | ||
|
|
||
| Delete Flow,Delete Image Flow | ||
| Delete Flow,Confirm Delete | ||
|
|
||
| Suite Teardown,Close Gallery App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| Element_Name,Element_ID_xpath,Element_ID,Element_Text | ||
|
|
||
| menu_icon_image,"//android.widget.ImageButton[@content-desc=""Open navigation drawer""]",menu_icon.png, | ||
| pictures_option_image,"//android.widget.TextView[@text=""Pictures""]",pictures_option.png,Pictures | ||
|
|
||
| search_icon_image,"//android.widget.ImageView[@content-desc=""Search""]",search_icon.png, | ||
| search_input_image,"//android.widget.EditText",search_input.png, | ||
|
|
||
| first_image_image,"(//android.widget.ImageView)[1]",first_image.png, | ||
|
|
||
| delete_icon_image,"//android.widget.ImageView[@content-desc=""Delete""]",delete_icon.png,Delete | ||
|
|
||
| move_to_recycle_bin_image,"//android.widget.Button[@text=""Move to Recycle bin""]",move_to_recycle_bin.png,Move to Recycle bin | ||
| cancel_delete_image,"//android.widget.Button[@text=""Cancel""]",cancel_delete.png,Cancel | ||
|
|
||
| recycle_bin_toast_image,"//android.widget.Toast",recycle_toast.png, |
Binary file added
BIN
+1.71 KB
optics_framework/samples/gallery/test_data/input_templates/cancel_delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.67 KB
optics_framework/samples/gallery/test_data/input_templates/delete_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+555 KB
optics_framework/samples/gallery/test_data/input_templates/first_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.18 KB
optics_framework/samples/gallery/test_data/input_templates/gallery_tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.6 KB
optics_framework/samples/gallery/test_data/input_templates/menu_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.33 KB
optics_framework/samples/gallery/test_data/input_templates/pictures_option.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.79 KB
optics_framework/samples/gallery/test_data/input_templates/recycle_toast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.33 KB
optics_framework/samples/gallery/test_data/input_templates/search_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.35 KB
optics_framework/samples/gallery/test_data/input_templates/search_input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?