I was undergoing training in Edista Testing Institute. We were testing a calculator (not the Microsoft one) and were making comparisons to Microsoft calculator.
I wanted to do some automation testing and searched automation tool – AutoIT. It allowed me to automate some tests but needed lots of test inputs.
As a co-incident I was introduced to Testers Desk and that was a hope for me. This post speaks about test automation which I did on Microsoft Calculator with the help of www.testersdesk.com
I used Quantified String Generator Output and feeded that as num1 and num2 in N-way/Random Test Case Generator to generate a list of random numbers that I can feed in to test the calculator.
Example:
num1:2,4,6,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,77,80,83,86,89,92,95,98,10
operator:+,-,*,/
num2:2,4,6,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,77,80,83,86,89,92,95,98,10
I got 4900 combinations I could run my script on. I got this output and it was so nice to see 4900 combinatons.
| # Seed value used to generate the below radom data: null | |||
| # N-way Combinations (all combinations of all test parameters) | |||
| # Generated number of test combinations: 4900 | |||
| num | operator | num2 | |
| 2 | + | 2 | |
| 2 | + | 4 | |
| 2 | + | 6 | |
| 2 | + | 8 | |
| 2 | + | 11 | |
| 2 | + | 14 | |
| 2 | + | 17 | |
| 2 | + | 20 | |
| 2 | + | 23 | |
| 2 | + | 26 | |
| 2 | + | 29 | |
| 2 | + | 32 | |
| 2 | + | 35 | |
| 2 | + | 38 | |
| 2 | + | 41 | |
| 2 | + | 44 | |
| 2 | + | 47 | |
| 2 | + | 50 | |
| 2 | + | 53 | |
| 2 | + | 56 | |
| 2 | + | 59 | |
| 2 | + | 62 | |
| 2 | + | 65 | |
| 2 | + | 68 | |
Continues till 4900th combination
Take a look at my script that I ran in AutoIT and I even found bugs with it on Microsoft Calc:
Send(”#r”)
WinWaitActive(”Run”)
Send(”calc.exe{Enter}”)
WiNWaitActive(”Calculator”)
Send(”5{/}0{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”#r”)
WinWaitActive(”Run”)
Send(”notepad.exe {Enter}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”87{/}54{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”2{/}61{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”87{/}87{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”7{/}82{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”69{/}6{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”41{/}12{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”34{/}81{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
WinWaitActive(”Untitled -”)
Send(”^v{Enter}”)
Send(”!{TAB}”)
Send(”95{/}14{=}”)
Send(“{ESC}”)
Send(”^c”)
Send(”!{TAB}”)
I used the output file I generated to compare results with the calculator we were testing.
I recommend newbie/experienced testers to make use of TestersDesk.com to fasten their work of thinking about test inputs. Its free.
Combine it with any other test automation tool for test automation else use it in your manual testing.
Stop waiting and start Testersdesking.
Recent Comments