rejetto forum

HFS Template Changes - Please Help!

Anil · 2 · 2935

0 Members and 1 Guest are viewing this topic.

Offline Anil

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
I am using the HFS Version 2.3 beta 282 build. Any help on getting me started with a logic I want to implement
using the HFS macro/symbols and url operators will be highly appreciated.I have been having a tough time since a week
to get this logic implemented using the latest wiki documentation, which is lacking good use with examples. ???


On posting the below url from vba code or from the browser to the HFS webserver:
http://localhost?tpl=PN=Project1&CPTP=Component1&Testtype=Functional&TCNum=10

save it in csv or XML format (which ever is eaisier) on the server like:
Project1,Component1,Negative,20
Project1,Component1,Functional,10
Project1,Component2,Functional,30

On the home page:
Actions box on the LHS to display a button Test Metrics
ON clicking button, Read the csv or XML file and display in tabular format in another page or same page (Attached screen shot). every post to the server from code or web browser will append to the csv file as new entry.
 
Project Name   Component Name      Functional   Negative
Project1      Component2         10                 20
Project1      Component1         30         


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
do something like this at the start of the template

{.if|{.?CPTP.}|{:
  {.savefile|myfile.csv|{.?PN.},{.?CPTP.},{.?Testtype.},{.?TCNum.}
.}
:}.}