Posts

fake again...

First post with email generator here . Usable service for create spreadsheet with fake data: http://www.yandataellan.com/ And fake-factory: One more example: http://gowrishankarnath.com/generate-fake-data-programmatically-using-faker-with-python/ [code language="python"] from faker import Faker fake = Faker() fake.name() print(fake.name()) fake.address() print(fake.street_address()) fake.text() print(fake.text()) for _ in range(0, 10): print fake.name() fake.random fake.random.getstate() print(fake.random.getstate()) [/code]   [code language="python"] from faker import Factory def create_fake_stuff(fake): """""" stuff = ["email", "bs", "address", "city", "state", "paragraph"] for item in stuff: print "%s = %s" % (item, getattr(fake, item)()) if __name__ == "__main__": fake = Factory.create() create_fake_stuff(fake) [/code]

Verification displayed number of rows inside table by Robot Framework

I got task for verification number of rows per page after switch "Show" filter.  *** Variables ** ${full_xpath}         xpath=//div[@id=\'rso\']/div/div/div[ x ]/div/h3/a     # not usable ${xpath_part1}     xpath=//div[@id=\'rso\']/div/div/div[ ${xpath_part2}    ]/div/h3/a *** Keywords *** # Format Method ----------------------------------------------------- Format - Looking by number     [Arguments]       ${locator1}    ${num}    ${locator2}     wait until elemet dispayed         ${locator1}${number}${locator2} *** Test Cases *** # Row x  ----------------------------------------------------------------- Verify number of raws by "Show" filter All     Format - Looking by number   ${ xpath_part1 } @{ num }[ x ] ${ xpath_part2 }  

Robot Framework vs Cucumber

Image
robotframework-extendedselenium2library 0.9.1 Downloads ↓ Extended Selenium2 web testing library for Robot Framework with AngularJS support Introduction ExtendedSelenium2Library is web testing library for Robot Framework that uses the Selenium 2 (WebDriver) libraries from the Selenium project, to control the web browser with AngularJS support. It leverages Selenium2Library internally to provide AngularJS synchronization support, to provide AngularJS locators support, to deliver keywords enhancement, and strive for a seamless migration from Selenium2Library . ExtendedSelenium2Library runs tests in a real browser instance. It should work in most modern browsers and can be used with both Python and Jython interpreters. More information about this library can be found in the Keyword Documentation . Robot Framework and Cucumber Similarities  ...

Firefox releases: URL

https://ftp.mozilla.org/pub/firefox/releases/ Steps for install 46's: firefox --version wget -q https://ftp.mozilla.org/pub/firefox/releases/46.0.1/linux-x86_64/en-US/firefox-46.0.1.tar.bz2 tar -xjf firefox-46.0.1.tar.bz2 sudo rm -rf /opt/firefox sudo mv firefox /opt/firefox46 sudo rm -rf /usr/bin/firefox sudo ln -s /opt/firefox46/firefox /usr/bin/firefox firefox —version

5 useful email expressions

https://www.youtube.com/watch?v=itLLVAJjXNI#action=share

Python: Dictionary

Quick diving into "dictionary" of the python. Actually, this is example of code was written as a simple explanation for my little brother how to work with dictionary. This is simple example, without deep diving for many possible situations.