Wednesday, September 16, 2020
Smart way of Testing
Rest Assured Automation - API
Hello All,
Try to put some information around Rest Assured API
testing using eClipse, TestNG. in subsequent blog, will provide some technical
view.
API testing using RestAssured
- RestAssured itself is API designed for automating Rest services/ Rest
APIs.
- Implemented using java classes
- Available in jar files
- Multiple request, get response from apis, validate
data etc
- Restassured only support Rest services, it not support SOAP services
Setting up
- Java
- Eclipse
- Test NG
- Maven (specify dependencies)
Steps:
- Create Maven project in eclipse
- Need to update POM.xml file
- RestAssured (https://mvnrepository.com/artifact/io.rest-assured/rest-assured/4.3.1)
- TestNG
(https://mvnrepository.com/artifact/org.testng/testng/7.3.0)
- JSON – simple
(https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple/1.1.1)
- Apache poi (https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml/4.1.2, https://mvnrepository.com/artifact/org.apache.poi/poi/4.1.2)
Validations:
Status Code
Status Line
Request body n parameters
Success code
Validate Header
Json contains
Print headers
Data driven testing
1 prepare test data in excel
2 add apache poi dependency in pom.xml or download apache poi & attach jars to
your build path
3 XL utility file(java class file) which will read
data from excel
4 write TestNG with data provider method
Cheers,
TJ
Sunday, August 30, 2020
Mobile Testing - About Native, Mobile and Hybrid App
Hi
Folks,
During
mobile testing, you heard about few words like one app, hybrid etc. Below are
difference between them, hope it help you.
- Native
App- native apps are those apps ... can be installed through google/apple
store... accessible without internet, provide high performance as like
built in app
- Mobile
Web App -runs by mobile browsers chrome for android and safari
for ios, same as desktop browser but make responsive to mobile
browsers
- Hybrid
app – combination of native and web app contained in a native container
with low development time, downloadable from play store and
compatible with most devices
Cheers.
TJ
Saturday, August 8, 2020
Find a Filename from folder path
Public Function fnFindFileFromPath(SearchPath, SearchFileName, dataSht) As String
Dim StrFile As String
'Debug.Print "in LoopThroughFiles. SearchPath: ", SearchPath
' StrFile = Dir(SearchPath & "\*" & SearchFileName)
StrFile = Dir("D:\Test\")
While (StrFile <> "")
If InStr(StrFile, "Test") > 0 Then
MsgBox "found " & StrFile
Exit Function
End If
StrFile = Dir
Wend
End Function