Open Bug 1446324 Opened 6 years ago Updated 2 years ago

XCUITest: Add test that opens urls from a list (not to be run in daily basis)

Categories

(Firefox for iOS :: Build & Test, enhancement)

Other
iOS
enhancement

Tracking

()

Tracking Status
fxios + ---

People

(Reporter: isabel_rios, Assigned: isabel_rios)

References

Details

Attachments

(1 file)

55 bytes, text/x-github-pull-request
njpark
: review+
jhugman
: feedback+
Details | Review
The idea is to have a file with a list of URLs (long list, around 5000 entries) and have a test that can open URLs from there.

This test is not meant to be run in daily basis, so it will be disabled. This is just a test as a helping tool if at some point it is necessary to load lots of different websites or random websites for different uses.

Please see also bug 1442374. There we will have an exising DB that can be used for other different tests where an exisiting DB has to be used but that test does not generate the DB it only loads it to check that we can manage big browser DBs.
Attached file Pull Request
Please let me know if this is similar to what you have in mind...
Attachment #8959562 - Flags: review?(jhugman)
Summary: XCUITest: Add test that opens ramdom urls from a list (not to be run in daily basis) → XCUITest: Add test that opens urls from a list (not to be run in daily basis)
Comment on attachment 8959562 [details] [review]
Pull Request

Quite a few questions about this PR, but I think you're on the right track.
Attachment #8959562 - Flags: review?(jhugman) → feedback+
Assignee: nobody → irios
Thanks for the review! I made some changes and added new tests to cover some scenarios you were missing according to your comments.

I also added a way to retrieve and store the database(s) generated in each test. But there I'm stuck because it works locally selecting the correct path, but it will not work in another environment. That's why you will see that part with comments to specify the path. There should be a way to specify a general path and then take the browser.db file but I have not found the way to do it correctly yet.
Attachment #8959562 - Flags: review?(npark)
Attachment #8959562 - Flags: review?(jhugman)
Assignee: irios → irios.mozilla
Comment on attachment 8959562 [details] [review]
Pull Request

Looks good, should we put those tests that are not verifying the correctness of the app in a separate folder to group them better?  (i.e. a subfolder) it's your call.  (oh and squashing commits would be nice too)
Attachment #8959562 - Flags: review?(npark) → review+
Comment on attachment 8959562 [details] [review]
Pull Request

Removing the review for now since there is not ongoing work on this bug and it will requiere some updates before asking for review again
Attachment #8959562 - Flags: review?(jhugman)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.