Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jubula-rc-dev] Developing new plugin

Hello,

 

I am trying to create a plugin to create new toolkit which can extract a sub string from a long string and save it in an variable.

I have written a method as follow

public class ImageID {

             

              public static String fetchImageId(String logs){

                             String output ="";

                             String input=logs;

                             int beginIndex = input.lastIndexOf("backupid=")+9;

                             System.out.println(input.lastIndexOf("backupid="));

                             System.out.println(input.lastIndexOf(")"));

                             output = input.substring(beginIndex, input.lastIndexOf(") job"));

                             return output;

              }

 

}

 

I want to create a new toolkit using it which returns a string.

Can anybody please help me to achieve this?

I am very new to Jubula and Plugin devlopment.

 

Regards,

Anand Manjalkar

 


Back to the top