This repository includes the tests of Notepad application on an Android device. I have used Graphwalker with an Appium to test the application.
It goes to the note creation page and enters title and a content. After sending keys, it clicks on the save button, and goes back to the note list page. When it goes back to the note list page, we can see the title of a note created with a creation date and time. If it clicks on the title of a note, we can see the title and content together.
It goes to the note creation page and enters title. After sending keys, it clicks on the save button, and goes back to the note list page. When it goes back to the note list page, we can see the title of a note created with a creation date and time.
It goes to the note creation page and enters content. After sending keys, it clicks on the save button, and goes back to the note list page. When it goes back to note list page, title seems blank. We can see just the creation date and time of the note. When it clicks on it, we can see the content.
It clicks on the title, and goes into the full note view. It enters new words into the title, and clicks on save button. When it goes to the note list page, we can see the title changed.
It clicks on the title, and goes into the full note view. It enters new words into the content, and clicks on save button. After that, it goes back to the note list page. When it clicks on the title, and goes into the full content view, we can see the content changed.
It clicks on the title, and goes into the full note view. It clears the title and content altogether, and clicks on save button. When it goes back to the note list view, we can see the note still unchanged. Another delete button is also not available in the application. That is why, we can not delete the note.
- Using yEd graph editor, I drew the graph below. After downloading the graphml file, I have added to 'src/main/resources' file in IDE.
- I run the commands below in the terminal. By using the following commands, graphwalker generates the interface 'myNotepad'. The class 'automation' implements this interface.
mvn graphwalker:generate-sources
mvn graphwalker:test
- Start android emulator.
- Start Appium.
- Run command
mvn graphwalker:test
in the terminal.