View previous topic :: View next topic |
Author |
Message |
efiten
Joined: 13 Feb 2012 Posts: 19
|
Posted: Wed Feb 29, 2012 5:28 am Post subject: Display difference between 2 filecounts. |
|
|
Hi, I'm trying to do the following.
I have 2 folders :
-MPEG
-mp4
I'm doing a file-count on both of those folder, and I want HM to display the difference between those folders.
ex .
MPEG folder contains 4 files, ready to be converted.
mp4 folder contains 2 files.
HM should display "2" as a result (So I can see how many files still have to be converted (of file-count is equal, all encoding is done.) |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Feb 29, 2012 6:18 am Post subject: |
|
|
Just count files and show difference?
Then you may setup 2 Count Files test items, use 1 of these tests as Master test for another, then mark "Tune up Reply value" for dependant test and use expression like [%::TestA::Reply% - %SuggestedReply%]
or you need to check each file name and detect non-existing files in 2nd folder?
Then you need to write your own script and call it using External or Shell Script test methods.
Regards
Alex |
|
Back to top |
|
|
efiten
Joined: 13 Feb 2012 Posts: 19
|
Posted: Wed Feb 29, 2012 8:33 am Post subject: |
|
|
It's just for counting the difference, without checking extension, etc...
and what name do I have to give to the first variable %::TestA::Reply%?
edit : already found it it was just the full name of the master test.
Is there a way I can only display positive values? so if the result of the test is negative, it just displays a zero ? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Feb 29, 2012 8:46 am Post subject: |
|
|
Quote: | Is there a way I can only display positive values? so if the result of the test is negative, it just displays a zero ? |
if ((%::TestA::Reply% - %SuggestedReply%)>0) [%::TestA::Reply% - %SuggestedReply%]; else 0 |
|
Back to top |
|
|
efiten
Joined: 13 Feb 2012 Posts: 19
|
Posted: Wed Feb 29, 2012 9:05 am Post subject: |
|
|
Is it really that simple? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Feb 29, 2012 9:11 am Post subject: |
|
|
Yes, it is
And there are some examples in the manual...
Regards
Alex |
|
Back to top |
|
|
|