I'm working on Scalatest where I need to validate a few parameters against my inputs(in Excel file). My problems are:
More details
Suppose for test case,on clicking on webpage XYZ,parameter/property "ads" should "Y" is fetched and I have given the condition that test case should be PASSED if excel sheet (having property "ads" is "Y" for Webpage XYZ),matches with the parameters fetched from webpage
Any pointers will be appreciated!!
You can use spoiwo or Apache Poi to read the excel
files. You can follow any simple tutorials on how to read and write to excel
file using apache poi
. Here simple example of reading files from excel
.
You can test in scalatest
after retrieving the values from excel and write back the test results.
Hope this was useful.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.