erik-whiting/LuluTest

Create more tests for other websites

Opened this issue · 4 comments

In order to figure out what the limitations of the current implementation are, we should write new browser tests for all kinds of websites. For this issue, you should:

  • Find a web page and think of how you would test it
  • Write the test for it in test_other_pages.py
  • As you write the test, see if there is something missing from LuluTest preventing you from writing that test
    • Either add that feature yourself, or submit an issue requesting it to be added

The Point

The point of writing tests for other websites is to see what's missing from LuluTest. Find something to test and try to write a test script for it. Once you get to a point where you realize LuluTest is missing the appropriate feature to test the page, add it!

Some suggestions:

Hi!

Can you clarify what do you want to test with respect to file downloads?

I wrote some code that can click on a file link and using Chrome it definitely downloads the file to the predefined location (current user's Download folder in Windows 10), but it is hard for Selenium to handle file downloads: https://sqa.stackexchange.com/questions/2197/how-to-download-a-file-using-seleniums-webdriver

@ddrm86 thanks for joining the conversation.

For starters, I want the ability for people writing tests (ie, users of this project) to be able to write file download tests with minimal headache. So, like most of these requests, I'm not asking for just a test, but some additional functionality to support that test.

What I picture for file download tests is a function that can capture the name of a downloaded file, and a function that can check a user-supplied path for that file. Some pseudo code:

bp.element("download button").click()
bp.last_downloaded_file() # This would output the name of the file downloaded
assertTrue(bp.last_downloaded_file().is_in("~/home/Downloads/")

This is what i picture

Thank you for your answer.

I wrote a test for autocomplete but I cannot push it to Github:

ERROR: Permission to erik-whiting/LuluTest.git denied to ddrm86

I checked that my SSH key in Github matches the one in my local computer.

@ddrm86 are you trying to push to development? if so, it won't let you.

Most people fork the repository to their own profile, and make their branch there, then send a PR from there.