Just starting out with scala and gatling. I am trying to understand code written by another team member. The code is:
UploadFile.uploadFile(vehicle.toString+"firstImage", sessionHeaders, ImagePath,vehicle.toString);
uploadFile
is a method in UploadFile.scala
and the uploadFile
method is defined as:
def uploadFile(name:String, headers:Map[String,String], path:String, param:String)
so vehicle.toString+"firstImage"
is the name and is a string. But I dont understand what is vehicle.toString
-what is being done here? And then its concatenated to "firstImage". So then why not just write: ` "vehicle" + "firstImage"...?