STM-lab-manual VMTW
STM-lab-manual VMTW
LAB MANUAL
Error is a deviation from the actual and the expected result. It represents the mistakes made by people.
Bug is an error found BEFORE the application goes into production. A programming error that causes
a program to work poorly, produce incorrect results, or crash. An error in software or hardware that
causes a program to malfunction.
Defect happens once the error is identified during testing; it is logged as a ‘Defect’ in the tracking
system.
Failure is the incapacity of a system to conduct its required functions within clarified performance
requirements, literally a disappointment or a letdown. And no one wants to do business with a failure.
To make sure your product is powerful enough no matter how many people are using.
There is a big distinction when there is a person using your product referring to hundreds of
people trying to do the same thing at the same time. Your software needs to be strong enough to
guarantee that there will be no crashing down or loading annoying happened when a number of people
are trying to run your products. Therefore, it should be smoothly and perfectly working with everyone.
Testing is surely a fundamental part of software development. Poor testing methodologies cause
the troublesome products and unsustainable development. Having a well-prepared testing plan makes a
product be more competitive and assure the products coming in a predictable timeline associated with
high quality.
Apparently, a product is usually tested from a very early stage when it is just a small code tested
piece by piece then being tested at the final of development when it is under the shape of a full
application or software product in general. Of course, there are a number of Software Testing types out
there (more than 100 different types in general); however, at the beginning, we just need to adjust a few
common types that every product usually goes through before going further.
Unit Test
It is not exaggerated saying that people usually hear about Unit Test before getting noted about
the software testing industry since it is the most basic testing used at the developer level. We focus on
the single piece of unit code whilst it is already isolated from any outside interaction or dependency on
any module before. This test requires the developer checking the smallest units of codes they have
written and prove that units can work independently.
Integration Test
Still, at the developer level, after Unit Test, the combination (or integration) of these smallest
codes should also be checked carefully. Integration test provides the testing modules which access to
network, databases and file system. They will indicate whether the database and the network are
working well when they are combined into the whole system. Most importantly, the connection
between small units of code tested in the previous stage will be proven at this stage.
Functional Testing
There is no doubt to claim that functional testing is the higher level of test type should be used
after Integration Test. Functional tests check for the accuracy of the output with respect to the input
defined in the specification. Not much emphasis is given to the intermediate values but more focus is
given on the final output created.
Experment 1
Procedure:
L
OUTPUT: Recorded and replayed in context sensitive and analog mode:
Experment 2: GUI checkpoint for single property
Procedure:
Log: (Test-passed)
Screen-shot:
GUI-editor-(Test-failed)
LOG(Test-failed)
Procedure:
Log:
OUTPUT: Checkpoint for single object –failed because actual image-imac, expected:iphone
Test-case failed.
Experment 4 GUI checkpoint for multiple objects
Procedure:
Log :
Screen-shot (object-1: iphone image)
Procedure:
Screen-shot: Bitmap-object-matched
Log : statusOK==false
Captured-screen-area:
Bitmap-image-to be verify:
Log: statusok==true
Procedure:
Install UiPath IDE:
Open UI in testing activities mode
Install UiPath testing activities package
Install UiPath.UIautomation activities
Output:
Experment 7: Batch testing without parameter passing
Procedure:
JSON-code:
{
"Name": "DCsvSave",
"CreationDate": "2021-7-21",
"Commands": [
{
"Command": "store",
"Target": "slow",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "open",
"Target": "https://ui.vision/demo/csvsave",
"Value": "",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var d = new Date(); m = d.getFullYear()+\"-
\"+(d.getMonth()+1)+\"-\"+ d.getDate()+\" \"+ d.getHours()+\":\" +
d.getMinutes() + \":\" + d.getSeconds(); return m",
"Value": "timestamp",
"Description": ""
},
{
"Command": "store",
"Target": "${timestamp}",
"Value": "!csvLine",
"Description": ""
},
{
"Command": "echo",
"Target": "First column in the CSV is time (${timestamp})",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "Set i = 1 as we start the extraction with the 2nd table
cell.",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "1",
"Value": "i",
"Description": ""
},
{
"Command": "while_v2",
"Target": "(${i} < 8)",
"Value": "",
"Description": ""
},
{
"Command": "executeScript",
"Target": "return Number (${i}) + 1",
"Value": "i",
"Description": ""
},
{
"Command": "echo",
"Target": "Current value of i = ${i}",
"Value": "i",
"Description": ""
},
{
"Command": "storeText",
"Target":
"//*[@id=\"gcw_mainFNGP5XSu6\"]/div[2]/table/tbody/tr[2]/td[${i}]/a",
"Value": "c2",
"Description": ""
},
{
"Command": "store",
"Target": "${c2}",
"Value": "!csvLine",
"Description": ""
},
{
"Command": "echo",
"Target": "Extracted Value for i=${i} is exchange rate = ${c2}",
"Value": "",
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "${!csvLine}",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "Append content of !csvLine to CSV file (or create file if
none exists)",
"Value": "",
"Description": ""
},
{
"Command": "csvSave",
"Target": "CurrencyConverterData",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "If needed, you can download (save) the CSV data from the
CSV tab to the the download folder",
"Value": "",
"Description": ""
},
{
"Command": "localStorageExport",
"Target": "currencyconverterdata.csv",
"Value": "",
"Description": ""
}
]}
Log:Output:
Test Suite name: databatch
Start Time: Thu Jul 22 2021 00:40:07 GMT+0530 (India Standard Time)
Overall status: OK, Runtime: 23.53s
Macro run: 2
Success: 2
Failure: 0
Macro executed:
databatch (OK, Runtime: 13.00s)
databatch (OK, Runtime: 9.89s)
Experment 9: Test case for calculator in windows application
Procedure:
1. Launch Ui.vision RPA on chrome/firefox Browser
2. Set in desktop-mode
3. Open calculator application from desktop
4. Do xclick-in target e-select to capture window items/by mouse movement
5. Perform activities on selected application
6. Stop
7. Replay test.
L
OUTPUT: Tested Addition functionality of calculator and passed.