Posts

Showing posts from December, 2014

Python, how to remove or replace some value in a set's

I found this example very usable [code language="python"] print('"discard" method for remove particular string value from list\n') words = ['test', 'many', 'makeword', 'jazz', 'tube'] # list words = set(words) for word in {"MAKEWORD", "Makeword", "makeword"}: words.discard(word) print words print('\nAnd now we\'re going to "discard" from set number of \ words("MAKEWORD", "Makeword", "makeword", plus using "replace" some string values from tuple\n') words = ('test', 'many[br]', 'makeword', 'jazz[br]', 'doc', 'word', 'words') # tuple words = [w.replace('[br]', '<br/>') for w in words] words = set(words) - {"MAKEWORD", "Makeword", "makeword"} print words [/code] Also, it possible remove elements with set.remove(), bu...

Python: IP address random

i'm working right now over one interesting test case and I need generate random IP address. For my test case I will use second variant but you can use anyone from those two whenever you need.

QA Vocabulary

Baseline Process of managing change, which can serve as a basis for logical comparison from initial state to next state and it can also serve as a basis for further subsequent activities. Blocker Blocks development, testing, or production - regardless of perceived severity Critical Crashes; loss of data; severe memory leak; errors that leave a machine unusable Major Major loss of function. Minor Minor loss of function, or other problem where easy workaround is present; translation/string errors; major cosmetic problems Trivial Cosmetic problems like misspelled words or misaligned text. Keywords Keywords provide a way to group or filter the tests based on the type of tests like User-Interface, smoke, security, performance, Data-validation Scope The work that needs to be accomplished to deliver a product, service, or result with the specified features and functions within the specified duration Test Test is a series of steps with multiple test cases that also includes unique identifier, ...

Python, Asserting Text & WebDriver

Quick tutorial for help my friend, how to verify if looking text exist. [code language="python"] ''' Sources: find_element_by* in operator comparison '!=' assertion ''' driver = webdriver.Firefox() mytext = driver.find_elements_by_id(“myID”).text if “Selenium WebDriver” in mytext print “I found my text!” else: ......... # or some more simple example: if element.text != u'SomeText': print "Verify Failed: element text is not " % element.text # or ... assertTrue(findElement(By.id("myID";)).getText().equals("foo") Obviously "object" identifier can to be changed like: (CSS, XPATH, tagName, ... etc) [/code]

How to Get Started with PyCharm.

Image
How to Get Started with PyCharm and Have a Productive Python IDE 1 Initial Customization 2 Virtualenv and the Python Interpreter 3 Shortcuts 4 External Editor 5 Running Code and the REPL 6 Finding Commands 7 Code completion 8 Access to documentation 9 Code quality 10 Finding your way in the source code 11 Unit tests 12 Dealing with multiple files 13 Split Windows 14 Conclusion

Source Control: RapidSVN software for Ubuntu

Image
If your company using Subversion I found a nice and powerful GUI tool for Ubuntu. Just install it. It’ll create a link to program. sudo apt-get install rapidsvn

One more "Simple REST API" tutorial in jMeter

Image
First of all we need to add an HTTP Request Sampler inside a Thread group (Test Plan -> Thread Group -> Sampler->HTTP Request) Next we need to enter the Server Name or IP of the API and its port(if required) in the web server section.

Mobile Testing: Android Debug Bridge (ADB)

Image
If you read my blog and previous post, this post will be helpful for everyone who will work as a mobile tester. Well, if sound "ADB" confused you and you don't understand what is it, please read it: ADB is the literal meaning "Android Debug Bridge". Though at first glance it doesn’t appear to tell you anything, it actually does. It’s a “bridge” for developers to work out bugs in their Android applications. This is done by connecting a device that runs the software through a PC, and feeding it terminal commands. ADB lets you modify your device (or device’s software) via a PC command line. Let's learn commands: 1. Turn on ADB Go to Menu > Settings > Applications > Development > USB Debugging

Python / WebDriver / Drag & Drop

Few times I was asked which code should be implemented in a test if user interface using drag&drop functionality. Please see how that works. [code language="python"] from selenium import webdriver # see below, this is what are you looking for. from selenium.webdriver.common.action_chains import ActionChains moved = selenium_driver.find_element(By.XPATH, <xPath here>) target = selenium_driver.find_element(By.CSS_SELECTOR, <css here>) ActionChains(selenium_driver).drag_and_drop(moved, target).perform() [/code]

How To Create a Test Automation Framework Architecture With Selenium

Fod my friend which looking at Black-box job. [youtube=http://youtu.be/DO8KVe00kcU] Hope you're enjoyed that video presentation too.