-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
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.
Don't use pronouns such as 'you', 'your', etc. Make sure you change sentence structure accordingly.
aut_docs/Design_Document.md
Outdated
@@ -23,7 +23,7 @@ The QA process is divided as follows: | |||
|
|||
- So, each testcase Class inherits `LiveServerTestCase`, Contains a `setUp` | |||
and `tearDown` method to instantiate and end live-server respectively. | |||
Each testcase in the class begins with `test`. | |||
Each Test Case in the class begins with `test`. |
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.
testcase
is fine. If you want to break into two words, don't capitalize the words.
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.
Done. 👍
aut_docs/Design_Document.md
Outdated
@@ -47,3 +47,35 @@ The QA process is divided as follows: | |||
|
|||
- To follow up changes in UI with changes in tests, the modifications need to be made only | |||
in the relevant locators/urls/page file. | |||
|
|||
- Addition of any new view implies that a pom `page` and `locator` corresponding to that |
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.
"...implies that corresponding pom page and locator need to be created". Be concise.
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.
Done 👍
aut_docs/Design_Document.md
Outdated
|
||
## Important points regarding creation of new Test Class: | ||
|
||
- As mentioned earlier, each Test Class corresponds to a view and which has a corresponding |
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.
"view and which" to "view which"
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.
Done 👍
aut_docs/Design_Document.md
Outdated
- As mentioned earlier, each Test Class corresponds to a view and which has a corresponding | ||
pom page and locator. | ||
|
||
- When you are creating a new Test Class, first identify the view you are creating the Class for |
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.
Do not address a person using pronouns. "When creating a new test class, first identify the view the class is being created for, and create corresponding the pom page and locator."
Again, be concise. Also, don't capitalize words randomly (like ...creating the Class... here)
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.
Done 👍
aut_docs/Design_Document.md
Outdated
- Use of implicit waits should always be avoided unless needed in an extreme case and has the | ||
approval of a maintainer. If wait is needed use explicit waits instead. | ||
|
||
- Tests in normal mode might fail if all are executed at once, but if a test is failing in |
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.
fails in
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.
Done 👍
aut_docs/Installation_Setup.md
Outdated
@@ -0,0 +1,103 @@ | |||
## Steps to run tests: | |||
|
|||
Following 4 points are to be followed only once to setup repository. |
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.
"A one-time setup requires the following four steps"
Prefer words intext over numerals.
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.
Done 👍
aut_docs/Installation_Setup.md
Outdated
virtualenv -p python3.6 venv | ||
``` | ||
|
||
Following points are needed at start of every session of work. |
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.
"To start a testing session"
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.
Or just session, as you please.
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.
Done 👍
aut_docs/Installation_Setup.md
Outdated
:Note: If you are using Windows then see this link to configure geckodriver in your environment | ||
https://stackoverflow.com/a/40208762 | ||
|
||
- To execute all the tests in the VMS, use this command: |
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.
To execute all tests in VMS:
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.
Done 👍
Thanks @naman1901 for the review, done with changes please review again. |
aut_docs/Documented_Failures.md
Outdated
@@ -0,0 +1,12 @@ | |||
There are a few tests which have been commented out currently to avoid travis build failure: |
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.
Capitalize Travis. Replace with Travis CI, maybe. This is an official doc. You need it to be as perfect as possible.
aut_docs/Installation_Setup.md
Outdated
``` | ||
|
||
- Automated tests in VMS require you to setup geckodriver in your path, for that | ||
you can either run this command in root of project: |
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.
...path. For that, either run the following command in....
aut_docs/Installation_Setup.md
Outdated
```bash | ||
bash setup-geckodriver.sh | ||
``` | ||
OR you can run these commands: |
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.
no you
aut_docs/Installation_Setup.md
Outdated
tar -xzvf geckodriver-v0.20.1-linux64.tar.gz | ||
sudo mv geckodriver /usr/local/bin | ||
``` | ||
:Note: If you are using Windows then see this link to configure geckodriver in your environment |
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.
It might be okay to write you
here because conditional to the user.
aut_docs/Installation_Setup.md
Outdated
python manage.py test <app_name>.tests.<test_file_name> -v 2 | ||
``` | ||
|
||
- For the automated tests, if you have configured geckodriver correctly then |
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.
if geckodriver has been configured correctly...
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.
travis :/
@ayushgarg1804 Travis is getting weird sometimes now, it just needs a rebuild it'll fix automatically. I'll do it in afternoon. ( On mobile atm so can't restart the build) |
That's quite strange. |
@Monal5031 please resolve the conflict |
8b9d2cb
to
1fd984c
Compare
Description
This PR documents the automated testing in VMS.
Fixes #779
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
N/A?
Checklist:
Code/Quality Assurance Only