List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Reg : Queries in Data table accessing


  • Subject: [QF-Test] Reg : Queries in Data table accessing
  • From: arulraj.savariraj@?.com
  • Date: Fri, 5 Dec 2014 10:43:36 +0530

Hi All,

We would appreciate if you provide us the detailed answer with exact syntax as we are in the learning stage of QFS.

Scenario:

The below is my test suite structure

--Test - Set: Project 1
        -- Data Driver : Data Driver
        -- Data Table: Table 1
        -- Data Table: Table 2
--Test - Case: Employee Creation
--Test - Case: ID Creation
--Test - Case: Employee and ID Mapping


Data in the Data tables:

Table 1:

Employee ID        |        Employee Name
-------------------        |-----------------------------
ID0001                |        EMPName1

-------------------        |-----------------------------
                |
ID0002                |        EMPName2
--------------------------------------------------

Table 2:

ID                |        ID Desc        |        Map ID
-------------------        |---------------------------        |------------------------
Em0001        |        IDName1        |

-------------------        |---------------------------        |------------------------
                |                        |
Em0002        |        IDName2        |
-------------------------------------------------------------------------        


Question:

1. In the test case 'Employee Creation' , I need to create Text Input event with the value 'ID0002' which is in the Employee ID column of Table 1. So how to access those table value from the test case?
2. In the test case 'Employee and ID Mapping' , I need to create Text Input event with the value 'ID0002' from Table 1 and 'IDName2' from Table 2. How to access those values from multiple data tables?
3. In the test case 'Employee and ID Mapping', I need to update the field 'Map ID'' with some value. So how to update the field in the data table ?
4. Can we read / Write the data from data table using Server Script / SUT Script ? If yes could you please provide us the sample Groovy Script to achieve that ?

Thanks in advance.

Best Regards
Arul S

This message and any attachments (the "message") is
intended solely for the intended addressees and is confidential.
If you receive this message in error,or are not the intended recipient(s),
please delete it and any copies from your systems and immediately notify
the sender. Any unauthorized view, use that does not comply with its purpose,
dissemination or disclosure, either whole or partial, is prohibited. Since the internet
cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS
(and its subsidiaries) shall not be liable for the message if modified, changed or falsified.
Do not print this message unless it is necessary,consider the environment.

------------------------------------------------------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message")
sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de
ce message qui n'est pas conforme a sa destination, toute diffusion ou toute
publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP Paribas
(et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese
ou il aurait ete modifie, deforme ou falsifie.
N'imprimez ce message que si necessaire, pensez a l'environnement.