The banner on deals.ebay.com:
The same banner on the eBay Gold store (wait, you didn’t know eBay had a gold store? Neither did its testers!):
Now, why would the height of the banner be different on one page?
Because they’re different, no matter how much the same they seem.
One of the tricks of testing is recognizing how things differ in your applications and Web sites. Although the pages and features try to share code and styling whenever possible, they diverge more than it appears. As you test across features, you’ll get a sense of where different code does the same things, so you’ll learn where to test similar workflows whenever something changes.
That includes checking the styling of different pages within your site when a CSS file changes.
Whenever I see the bottom of lower cased Gs cut off in edit boxes and drop-down lists:
I know to look very closely at design elements of a Web page because the designer has not.
(The story of brown M&Ms explained here.)
Jim Holmes threw down the gauntlet on Twitter:
My thoughts on using loops in automated tests: pic.twitter.com/33sphFHuzm
— Jim Holmes (@aJimHolmes) August 28, 2014
However, don’t is such a challenge to QA.
I use loops in my automated tests for the following things:When running the same sort of test with different data.
When I want to test the same operation with different sets of data, I use a loop to jam the different set of strings into the same form.incrementor=1 until(incrementor == number_of_rows) item = util.get_hash_from_spreadsheet(spreadsheet,incrementor) form.add(browser, item, log, filename) incrementor = incrementor +1 end When adding a large number of records for testing purposes.
I know, with just the right database management toolset, knowledge of the database, and proper tuned queries, I could go directly to the database to add a bunch of records if I want to see what happens when a user is working on a posting with a large number of comments attached to it. I want to see how it reacts when I add another comment or when I delete the posting or a comment.
So I just run a script with it:incrementor = 0 while(incrementor < 100) post.go_to_post(browser,post_id, log, filename) countbefore = comment.get_comment_count(util,browser,post_id,urlstring) comment_text= "Comment left at "+(Time.now.strftime("%m%d%y%H%M%S")) comment.add_comment_on_want_detail(browser, post_id, comment_text, log, filename) countafter = comment.get_comment_count(util,browser,post_id, urlstring) incrementor = incrementor + 1 end
Sure, we can quibble about whether this is an automated test or just a script; however, the script is testing the site's ability to handle 100 comments in a row, ainna? So it's a test and not a set-up script.When testing data loads.
I've got a client who runs different programs for banks, and individual programs are targeted to individual bank branches. This means the client runs a spreadsheet through a data load process, and I have to test to ensure that the bank branches are exposed.
So I take a spreadsheet from the data load and run it through the automated interface tester.incrementor = 1 until(incrementor == number_of_rows) branch = util.get_branch_from_spreadsheet(spreadsheet,incrementor) form.search(browser, branch, log, filename) incrementor = incrementor +1 end
So although you might have good reasons to not use loops in certain instances, loops do prove useful in automated tests.
Just remember, there's always an awful lot of sometimes in never.
Listen up Pollyannas of the world: A dose of pessimism may do you good.
Experts say pessimism can at times be beneficial to a person’s physical and mental well-being. Some studies have found that having a more negative outlook of the future may result in a longer and healthier life. Pessimism and optimism are opposite ends of a spectrum of personality traits, and people generally fall somewhere in between.
“All too often in the literature and in the public conversation, we want people to be more than 90% optimistic,” said Dilip Jeste, a professor of psychiatry and neuroscience at the University of California San Diego. “That’s not good. It is much better to have a balanced perspective and have some pessimistic streak in your personality in order to succeed.”
The sidebar lists four different types of pessimism. Which one is QA’s perspective? Number 5, the classified one.