SoapUI Data Driven Testing Groovy

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 27

  • @jeroendebleecker
    @jeroendebleecker 2 года назад +2

    Thanks man, you made my day, awesome tutorial :)

  • @tejaswitadavarthi1200
    @tejaswitadavarthi1200 2 месяца назад

    Thanks for detailed explanation. Can you share the details of writing the data from response to the text file.

  • @Golm1982
    @Golm1982 Год назад +1

    Thank you sharing the knowledge much Appreciated!!

    • @Golm1982
      @Golm1982 Год назад

      Is it possible to use a groovy script for load test...if yes how to validate the performance stats ?

  • @mayam6914
    @mayam6914 3 года назад +1

    Excellent, very helpful.

  • @ashwinihegde1882
    @ashwinihegde1882 2 года назад +1

    thank you! nicely explained.

  • @jayshankar4207
    @jayshankar4207 3 года назад +1

    Nice explanation.

  • @michaelmasanabo611
    @michaelmasanabo611 Год назад +1

    Very helpful , now I need to figure out , how to read xml.

  • @AbhishekSharma-ru6lz
    @AbhishekSharma-ru6lz 2 года назад +1

    can we save the csv file anywhere or in a specified folder(or inside the folder where the project is saved)

    • @LearnTestAutomation
      @LearnTestAutomation  2 года назад +1

      We can save anywhere but would be better to save along with project.

  • @MakkenaTejovardhan
    @MakkenaTejovardhan 2 года назад +1

    how to achieve with excel file instead of CSV file?
    could you please help

    • @LearnTestAutomation
      @LearnTestAutomation  2 года назад

      Hello, we can achieve this using excel as well. We have to include libraries to read Excel. But rest of the concept remains same.

  • @tanvik753
    @tanvik753 2 года назад +1

    I got error when run groovy script

    • @tanvik753
      @tanvik753 2 года назад +1

      Groovy long missing property error can u explain me

    • @LearnTestAutomation
      @LearnTestAutomation  2 года назад

      @@tanvik753 May you please post here your error message. That would give more details to get exact issue.

    • @tanvik753
      @tanvik753 2 года назад

      Java.lang.NullPointerException:connot invoke

    • @tanvik753
      @tanvik753 2 года назад

      Hii can you explain me pls

    • @jaysoorjun131
      @jaysoorjun131 Год назад

      Please save your project and try again. Hope this helps.

  • @johnnymars9782
    @johnnymars9782 3 года назад +1

    Can you post the code?

    • @LearnTestAutomation
      @LearnTestAutomation  3 года назад

      Sure, will add to video description.

    • @wilfreedijk7988
      @wilfreedijk7988 2 года назад +1

      @@LearnTestAutomation Thanks for the demo. Did you ever post the code? I can't find it

    • @LearnTestAutomation
      @LearnTestAutomation  2 года назад

      @Wilf Reedijk I missed this to add, provided link in the description of Github repo.

  • @devendraparate7918
    @devendraparate7918 Год назад +1

    Hello,
    getting an error while reading a file
    java.io.FileNotFoundException: C:\SoapUI\CelsiusToFahrenheit.csv (The system cannot find the path specified) error at line: 13 please help. below is the code
    import groovy.util.*
    def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
    //Define Path
    def projectDir = groovyUtils.projectPath
    File file = new File(projectDir)
    def firstLevelDir = file.getParent()
    def filePath = firstLevelDir + "\\SoapUI\\CelsiusToFahrenheit.csv"
    //log.info filePath
    context.fileReader = new BufferedReader(new FileReader(filePath))
    rows = context.fileReader.readLines()
    int n = rows.size()
    log.info n