Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEditing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/125233/#msg_125233
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)]]>Chandresh Gandhi2008-03-04T05:39:53-00:00Re: Editing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/125281/#msg_125281
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)
>
>]]>Jimmy Jin2008-03-04T13:33:35-00:00Re: Editing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/125846/#msg_125846
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)
>]]>Paul Slauenwhite2008-03-10T10:35:59-00:00Re: Editing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/125923/#msg_125923
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)
>>
>
>]]>Jimmy Jin2008-03-10T14:23:40-00:00Re: Editing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/125987/#msg_125987
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)
>>>
>>]]>Paul Slauenwhite2008-03-11T10:31:54-00:00Re: Editing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/127491/#msg_127491
thanks for your replys ...
here I try to depict my exact problem scenario for better understanding.
Its a just our database product functionality that show host system name
in one of products view. now since we need to have AGR test based on
shown databases underneath that system only, that system name (here its
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, its 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 testsuites object mine as its 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 variables value should be pick-up from list
of values in datapool for each execution of same testsuite.
Thanks,
Chandresh Gandhi. (Skype Id : chandreshgandhi)]]>Chandresh Gandhi2008-03-28T09:18:16-00:00Re: Editing Object mine automatically ???
https://www.eclipse.org/forums/index.php/mv/msg/38533/128901/#msg_128901
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]]>Paul Slauenwhite2008-04-23T10:26:30-00:00