Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Editing Object mine automatically ???
Editing Object mine automatically ??? [message #125233] Tue, 04 March 2008 05:39 Go to next message
Chandresh Gandhi is currently offline Chandresh Gandhi
Messages: 30
Registered: July 2009
Member
Hi,

Is there any of the feature in TPTP, that allows making changes to Object
mine automatically?

Like, we have recorded the AGR test cases with machine name shown in our
product view (recorded product functionality).

Now we want same test cases to run on other machine, but in order to
accomplish these we have to edit object mine reflecting that machine name
manually.

Is there any way like script do this automatable?

Thanks,
Chandresh Gandhi (Skype Id: chandreshgandhi)
Re: Editing Object mine automatically ??? [message #125281 is a reply to message #125233] Tue, 04 March 2008 13:33 Go to previous messageGo to next message
Jimmy Jin is currently offline Jimmy Jin
Messages: 32
Registered: July 2009
Member
Hello, Chandresh,

I have a not so good way to do that. The .testsuite file itself is a zip
file, so you can first unzip it to get a XML file. Then if your original
machine name is very specific (or you can make it very specific?), then
you simply can use some text processing tool to replace that in the XML
file. After that, zip it again to the original .testsuite file.

Jimmy Jin

Chandresh Gandhi wrote:
> Hi,
>
> Is there any of the feature in TPTP, that allows making changes to
> Object mine automatically?
>
> Like, we have recorded the AGR test cases with machine name shown in our
> product view (recorded product functionality).
>
> Now we want same test cases to run on other machine, but in order to
> accomplish these we have to edit object mine reflecting that machine
> name manually.
>
> Is there any way like script do this automatable?
>
> Thanks,
> Chandresh Gandhi (Skype Id: chandreshgandhi)
>
>
Re: Editing Object mine automatically ??? [message #125846 is a reply to message #125233] Mon, 10 March 2008 10:35 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Chandresh,
The object mine can be edited in the AGR test suite editor (button right
of the Test Cases tab). For dynamic data, you can change the values in the
Behaviour tab of the AGR test suite editor for a specific invocation of a
test case. There you can assign a static value, variable value, or use a
datapool.

I would not recommend opening the AGR test suite with a decompression
utility for editing.

Paul
"Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
news:c44b6fced8e0f3b400f082db5dc40419$1@www.eclipse.org...
> Hi,
>
> Is there any of the feature in TPTP, that allows making changes to Object
> mine automatically?
>
> Like, we have recorded the AGR test cases with machine name shown in our
> product view (recorded product functionality).
>
> Now we want same test cases to run on other machine, but in order to
> accomplish these we have to edit object mine reflecting that machine name
> manually.
>
> Is there any way like script do this automatable?
>
> Thanks,
> Chandresh Gandhi (Skype Id: chandreshgandhi)
>
Re: Editing Object mine automatically ??? [message #125923 is a reply to message #125846] Mon, 10 March 2008 14:23 Go to previous messageGo to next message
Jimmy Jin is currently offline Jimmy Jin
Messages: 32
Registered: July 2009
Member
Hello, Paul,

I guess the problem is (correct me if I'm wrong, Chandresh) that we
cannot predict the name of the machine where the script will be run on,
so we cannot edit it manually. Even if we can predict, we then may need
to maintain several copies of the scripts, which use different machine
names. I don't know if there is some way to dynamically change the value
of certain variable, or change the datapool used by the script.

I'm not familiar with using some of generic TPTP features with AGR together.

Regards,
Jimmy Jin

Paul Slauenwhite wrote:
> Hi Chandresh,
> The object mine can be edited in the AGR test suite editor (button right
> of the Test Cases tab). For dynamic data, you can change the values in the
> Behaviour tab of the AGR test suite editor for a specific invocation of a
> test case. There you can assign a static value, variable value, or use a
> datapool.
>
> I would not recommend opening the AGR test suite with a decompression
> utility for editing.
>
> Paul
> "Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
> news:c44b6fced8e0f3b400f082db5dc40419$1@www.eclipse.org...
>> Hi,
>>
>> Is there any of the feature in TPTP, that allows making changes to Object
>> mine automatically?
>>
>> Like, we have recorded the AGR test cases with machine name shown in our
>> product view (recorded product functionality).
>>
>> Now we want same test cases to run on other machine, but in order to
>> accomplish these we have to edit object mine reflecting that machine name
>> manually.
>>
>> Is there any way like script do this automatable?
>>
>> Thanks,
>> Chandresh Gandhi (Skype Id: chandreshgandhi)
>>
>
>
Re: Editing Object mine automatically ??? [message #125987 is a reply to message #125923] Tue, 11 March 2008 10:31 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
This value can be verified in a verification point with some Java code that
resolves the machine name.

Paul
"Jimmy Jin" <jimmyjin.jxm@gmail.com> wrote in message
news:fr3ga1$545$1@build.eclipse.org...
> Hello, Paul,
>
> I guess the problem is (correct me if I'm wrong, Chandresh) that we cannot
> predict the name of the machine where the script will be run on, so we
> cannot edit it manually. Even if we can predict, we then may need to
> maintain several copies of the scripts, which use different machine names.
> I don't know if there is some way to dynamically change the value of
> certain variable, or change the datapool used by the script.
>
> I'm not familiar with using some of generic TPTP features with AGR
> together.
>
> Regards,
> Jimmy Jin
>
> Paul Slauenwhite wrote:
>> Hi Chandresh,
>> The object mine can be edited in the AGR test suite editor (button
>> right of the Test Cases tab). For dynamic data, you can change the
>> values in the Behaviour tab of the AGR test suite editor for a specific
>> invocation of a test case. There you can assign a static value, variable
>> value, or use a datapool.
>>
>> I would not recommend opening the AGR test suite with a decompression
>> utility for editing.
>>
>> Paul
>> "Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
>> news:c44b6fced8e0f3b400f082db5dc40419$1@www.eclipse.org...
>>> Hi,
>>>
>>> Is there any of the feature in TPTP, that allows making changes to
>>> Object mine automatically?
>>>
>>> Like, we have recorded the AGR test cases with machine name shown in our
>>> product view (recorded product functionality).
>>>
>>> Now we want same test cases to run on other machine, but in order to
>>> accomplish these we have to edit object mine reflecting that machine
>>> name manually.
>>>
>>> Is there any way like script do this automatable?
>>>
>>> Thanks,
>>> Chandresh Gandhi (Skype Id: chandreshgandhi)
>>>
>>
Re: Editing Object mine automatically ??? [message #127491 is a reply to message #125987] Fri, 28 March 2008 09:18 Go to previous messageGo to next message
Chandresh Gandhi is currently offline Chandresh Gandhi
Messages: 30
Registered: July 2009
Member
Hi,

thanks for your replys ...

here I try to depict my exact problem scenario for better understanding.

It’s a just our database product functionality that show host system name
in one of product’s view. now since we need to have AGR test based on
shown databases underneath that system only, that system name (here it’s
vipldp-hp001.versant.com) gets recorded for that test case.

i.e. <object descriptive="TreeItem: VOD vipldp-hp001.versant.com:5019"
referenceId="16" resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
id="{{Neighborhood-Host vipldp-hp001.versant.com-VOD
vipldp-hp001.versant.com:5019}}-{{1.0}}"/>

now in order to run same test case with platform neutral manner on other
machine, it’s still able to test databases on machine named
vipldp-hp001.versant.com only.

however here I want same test case to test databases on current host
machine where test is running. Considering this target, I have to have
changed machine name in same testsuite’s object mine as it’s object based
recording.

I want to automate this manual step somehow for same single testsuite, so
that I can avoid having set of testsuites with diff. machine name in their
object mine for particular host machine.

Is there any specific approach to accomplish this task ?

I just thought about having mechanism where hardcore machine name could be
assign to variable and that variable’s value should be pick-up from list
of values in datapool for each execution of same testsuite.

Thanks,
Chandresh Gandhi. (Skype Id : chandreshgandhi)
Re: Editing Object mine automatically ??? [message #128901 is a reply to message #127491] Wed, 23 April 2008 10:26 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Chandresh,
Using the AGR, there are only two ways that you can link user input;
datapool and custom input (see the Detailed Properties in eh Behaviour tab).
Currently, custom input only supports:

-Project location of the test suite.
-Workspace location of the context workbench.

I could see how hostname would be very useful. Please open a defect to
add hostname to the custom inputs.

So that leave using a datapool for linking user input. However, since
the hostname is not a user input and displayed in a view, you need to set a
verification point on that view and write some Java code in the verification
point method to verify the host name.

Paul
"Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
news:1da9b400aa45b5ecc4def23ef6d111cc$1@www.eclipse.org...
> Hi,
>
> thanks for your replys ...
>
> here I try to depict my exact problem scenario for better understanding.
>
> It
Previous Topic:ptrace() call failed for pid ...
Next Topic:Problem in runnig testcase
Goto Forum:
  


Current Time: Thu Oct 23 02:21:17 GMT 2014

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

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