Home » Archived » Test and Performance Tools Platform (TPTP) » Editing Object mine automatically ???
|
Re: Editing Object mine automatically ??? [message #125281 is a reply to message #125233] |
Tue, 04 March 2008 13:33 |
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 |
Paul Slauenwhite Messages: 975 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 |
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 |
Paul Slauenwhite Messages: 975 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)
>>>
>>
|
|
| | |
Goto Forum:
Current Time: Tue Sep 24 02:16:12 GMT 2024
Powered by FUDForum. Page generated in 0.03656 seconds
|