Showing posts with label QA. Show all posts
Showing posts with label QA. Show all posts

Saturday, February 19, 2011

How to Use Stack Exchange Area51 Advertisements

I was part of the Project Managers Stack Exchange Private Beta. We were brainstorming some ideas as to how to promote the site, and so far the ideas we came up with include a Facebook page and blog articles. The idea of placing banner ads on a blog or website is of course another creative way to help spread the word.

The problem is, the only banner ads available are within the Stack Exchange network itself. They're essentially inlined into the page using data:image URLs, which doesn't make it easy to just grab some code and place it on your website.

Armed with Chrome Debugger, I set out to see what would be involved in placing an Area51 banner on my blog.

On one of the Stack Exchange sites, I used the inspector to view the HTML for one of the banner ads. It consists of inline CSS, a DIV and TABLE element that contains a hyperlink to the Area51 proposal, and the commit percent. The hyperlink innerHTML contained the name of the proposal.

While It's possible to paste the CSS, HTML, and JavaScript in an HTML page, the only way Blogger would accept the inlined CSS was through an IFRAME. As you can see, I've embedded the Running Q&A Proposal in this article:



DISCLAIMER: Stack Exchange and Area51 images and content are property of the Stack Exchange Network and are subject to the Terms and Conditions. Use of this content in this article falls within the "fair use" section of the Terms and Conditions. You must obtain written permission from Stack Exchange prior to use of this content.

Feel free to view the source of the IFRAME to get the code. Just paste everything within the opening and closing BODY tag on your site, or copy the entire HTML page to your Web server and use an IFRAME to embed the advertisement in the desired location.

I made comments in the code to show the 3 items that represent the proposal link, proposal display name, and percent committed.

View Ad Source

Since the view source link doesn't work in the inferior Internet Explorer browsers, you can also download the code here by right-clicking and selecting "Save File As", or "Save Link", or whatever the most popular way to save files in Internet Explorer is these days.

Tuesday, February 15, 2011

Project Management Stack Exchange Launches Public Beta

Project Management Stack Exchange is now in public beta, meaning that anyone can now join the Q&A site and contribute by asking questions or posting answers.

The site is in need of more expert level project managers. Many questions are basic questions, but I'd like to see more questions asked that are more advanced. Most basic information about any field is available in droves; it's the specialized, expert-level information that is oftentimes more difficult to obtain.

With three years in the field, I'm no expert, but I'm also beyond many of the basic questions about the definition of change management, for instance.

However, some individuals have posted some thoughtful questions, such as How to approach a project given to new PM during execution with vague requirements?. The question involves a specific experience by a project manager and not a random what-if scenario.

The site is still in it's infancy, and it's success will be defined by it's early members. If you have experience with project management -- no matter if your field is software, construction, engineering, or some other project management field -- create your account today at Project Management Stack Exchange.

Wednesday, February 9, 2011

Project Management Stack Exchange Begins Private Beta

On February 7th, 2011, the Stack Exchange network launched the private beta of the Project Management Stack Exchange website, a Q&A site run by the community to address questions regarding the field of Project Management.

The site is a place where professional project managers can go to ask objective or subjective questions regarding their field. The people who run the site encourage participation by professionals who either have a problem they seek the answer to or who would like to help other project managers improve their skills.

The Stack Exchange network works on a voting system, similar to Yahoo Answers. Users who ask really good, helpful, well-written questions will be rewarded with upvotes awarded by other users on the site. Similarly, users can vote on answers given by other users.

Upvotes and downvotes affect users' total reputation score, which represents how well the community trusts the user. As a user increases his or her reputation, the number of priviledges on the site increases. After reaching a score of 10,000, a user pretty much has access to the same tools as the moderators.

In short, this means that you, the user, runs the site. With enough reputation, you have the tools and community trust to close questions that are off topic or spam, edit questions and answers to clean them up, see vote counts, create chat rooms, and much more.

Out of the 57 total questions as of the time of this writing, here are a few of the questions asked so far:

How To Resolve Leadership Conflicts In The Project?

One of My Projects Was Cancelled Very Early. Will This Be Deterimental To My Career?

Do Technical Leaders Compete With Project Managers?


The Stack Exchange network consists of 44 different Q&A sites spanning from Programming, IT, Website Management and other technical topics to music, cooking, and parenting. It began as a single Q&A site, Stack Overflow, as a place for software engineers to ask objective questions.

New sites first go through a proposal phase where the community picks examples of on topic and off topic questions. After the proposal phase, the site undergoes a committment phase where a certain number of users must commit to asking at least 10 questions or submitting 10 answers in order to help get the site started.

After the committment phase, the site enters a private beta phase. The purpose of the private beta is to seed the website with some really good questions and answers, so that when the site launches the public beta, it already has some really strong content to attract good, professional project managers.

Although the site is still in private beta, anyone can view the current questions and answers by following the link to the Project Management Stack Exchange Site.

Saturday, June 13, 2009

Revolutionary Testing Tools for AJAX Applications

Revolutionary Testing Tools for AJAX Applications

http://blog.browsermob.com/2008/12/faq-how-do-you-compare-to-selenium/

A few years ago, we used JMeter to try and load test a chat application we were building. Since the chat application used Comet and AJAX, I knew that the JMeter test was going to be grossly inaccurate. However, we did the best we could with tools that clearly weren't right for the job, as nothing was out there that could simulate an AJAX or Comet load test.

A few weeks ago, while working with some other consultants on a project, we discussed the use of Selenium to run some functional testing on a Firefox Extension that inserts signatures into an email. We needed a tool that could automatically send an email using Gmail, Yahoo, and Hotmail, and verify that the signature was still injecting. From my days writing HTML Reply Signatures for Gmail, I knew that this was indeed important, as any change by these third parties could have a drastic effect on the tool's ability to insert a signature.

Today, one consultant and I worked to try to insert an email address into the "To" field of the Gmail Compose window using Selenium. I've done this already in the Firefox extension, and anyone who has ever written a Greasemonkey script or Firefox extension that works with Gmail 2 can attest that this is not always an easy task if you are working outside of the API exposed by Gmail. Google engineers have put lots of effort in writing server-side code that ensures that all the id attributes in the Gmail application randomly change each session. Their creativity has sparked our creativity, and we have solved this problem. With enough time and patience, any problem can be solved.

Anyway, with Selenium, one must locate elements in the HTML of a web application by using XPATH queries. Armed with my trusty Firebug tool, I inspected the element in question and worked my way up the tree one element at a time, writing down the element tag names and positions at each step. Like a complex code, we ended up with long XPATH queries, a seemingly endless series of div[1]/div[2]/div[1]/div[1]. Although I would have preferred to just use JavaScript and a good for loop or regular expression to locate what I wanted, being a code cracker and approaching this problem from another angle was an eye-opener, XPATH is perhaps the way to go!

So that's a little background on my experience so far with testing tools. Selenium isn't a load testing tool of course, but it's a great tool to automate functional testing. It's almost like a macro recorder, similar to iMacros. Our plan is to set our test up on a VMWare image and configure this to run automatically every day. We'll get emails with our signature if it's successful, and broken or no email if it's not successful. We're also configuring it to be really loud and obnoxious if it does detect that something is amiss, just so we don't gloss over the automated emails.

Selenium can do functional testing, but what about load testing? Sure, Selenium can do load testing as well! Selenium uses real web browsers in testing, but it's up to the person doing the tests to go out and purchase the hardware to run the tests. In other words, if you want to do a 100 user load test with Selenium, you need to have 100 computers in your lab and 100 people to all click "Run" at the same time.

This is analogous to a symphony with you as the conductor who tells everyone exactly when to click "Run Test".

Of course, coordinating such an event can be costly, so one of the developers of Selenium Remote Control founded BrowserMob. BrowserMob solves this issue by providing the hardware. They claim to load test your web application using Selenium scripts and N number of real web browsers! I would be really interested to know how this was accomplished and how the costs have been kept so low.

To start, they probably use VMWare and Linux, which is one way to reduce the amount of physical hardware while still trying to simulate real hardware. They say they use Firefox 3.0, which is available on Linux. Finally, if Selenium Remote Control launches Firefox browsers to simulate functional tests, then my guess is BrowserMob is controlling a series of Selenium Remote Control instances, all running on VMWare Linux machines, and allowing BrowserMob to monitor the load.

While there are some costs associated with BrowserMob, I imagine one could use Selenium Remote Control installed on several VMWare images to run a small load test. If anyone has experience with either Selenium Remote Control or BrowserMob, I'd love to hear your thoughts on the two products!
Google