Skip to content
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

WIP: build pipeline to test with dogtail automatically #25

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hung0913208
Copy link

@hung0913208 hung0913208 commented May 31, 2020

###Description:
Since i have seen that ibus-unikey currently is testing manually, travis-ci only uses for build and verify that the code can't build with latest libraries. We should find a simple way to test as the way the enduser usually does and we can build a better way to develop this project.

###What has been done?

  • Build a generic pipeline to test directly with latest Ubuntu using virtual machine (VM).
  • Allow using VNC to connect directly to the VM to help to troubleshoot better.
  • Try to test with the simple test case, using dogtail to automate typing text to gedit, save it to file, open this file again and verify that what we typing are same with the text we instruct dogtail doing.

tulequ and others added 6 commits May 31, 2020 10:05
Description:
   This commit suggests an automatically way to build a pipeline for
testing ibus-unikey's commits or PR requests. Here is what i have done:

- Create a lightweight pipeline inside file commit.yaml for testing with
each commit, it uses another repository to support building a new
generic pineline. Each commit must be proved to be passed with this
pipeline. This pipeline is build within the github action to make a
better maintaining and forking.
- Create a heavy pipeline with UI testing inside. Still now, it only
support ubuntu for testing and it's defined inside regression.yaml and
 .travis.yml. I don't suggest using github action since it doesn't
 support kvm which make the pipeline takes more time for verification.

Signed-off-by: Hung Nguyen Xuan Pham <[email protected]>
Description:
- Define a sample example of how to build a UI automation test case with dogtail and gedit

Signed-off-by: Hung Nguyen Xuan Pham <[email protected]>
Description:
- Add README.MD to instruct how to use this pipeline and how to
troubleshoot with the VM using VNC services.

Signed-off-by: Hung Nguyen Xuan Pham <[email protected]>
Description:
- Detect which suite is configured to be UI suites and do it separatly.

Signed-off-by: Hung Nguyen Xuan Pham <[email protected]>
Description:

  - This PR helps to test ibus-unikey automatically on gedit using dogtail. On the previous commits, i just don't how to run test cases automatically without any real test with the current project. This commit should finish off what i'm still unfinishing.

Known issues:

  -  Since we are mainly using travis-ci for testing enduser cases using virtual machine, timing issues are big problem like clicking doesn't work or saving take so much time to finish.
  -  Dogtail might stucks when we try with gnome-terminal
  -  Typing is stucked or hanged a litter bit, this issue didn't happen when we test without ibus-unikey.

Signed-off-by: Hung Nguyen Xuan Pham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants