Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Creating a plugin to extract a substring from a long string(Creating a plugin to extract a substring from a long string)
Creating a plugin to extract a substring from a long string [message #1385555] Mon, 09 June 2014 10:27 Go to next message
anand manjalkar is currently offline anand manjalkarFriend
Messages: 1
Registered: April 2014
Junior Member
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.
Re: Creating a plugin to extract a substring from a long string [message #1385706 is a reply to message #1385555] Tue, 10 June 2014 15:25 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1294
Registered: July 2009
Senior Member
An answer to this was sent on the jubula-rc-dev list, where the question was also asked.
Previous Topic:Automate the startup and login
Next Topic:Running tests with testexec html toolkit
Goto Forum:
  


Current Time: Fri Mar 27 02:06:33 GMT 2015

Powered by FUDForum. Page generated in 0.12318 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software