cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting variable to CVS file to use in a later test

SOLVED
Highlighted
New Contributor

Exporting variable to CVS file to use in a later test

Hi All.


I am generating a variable in Test1, that I would like to write/output to a CSV file (or even Excel would work) for use in Test2. 

 

Does anyone know of an easy way to do this? Or can provide some information on where to look on how to write to specific fields in a CSV/Excel file? 


Thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Hi,

 

Any restrictions to use Project Variables (of temporary or permanent type depending on persistence requirements) ?

https://support.smartbear.com/testcomplete/docs/testing-with/variables/collections/project-and-proje...

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Hi,

 

Any restrictions to use Project Variables (of temporary or permanent type depending on persistence requirements) ?

https://support.smartbear.com/testcomplete/docs/testing-with/variables/collections/project-and-proje...

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
New Contributor

Hi Alex,

Thanks for the suggestion. 

Was able to utilise persistent project variables to achieve the same outcome I was hoping for. 

Cheers. 

Chris. 

Highlighted
Community Hero

Hi Chris,

 

Nice to hear that the problem has been solved.

Also, if you need to persist a lot of values, you may consider to use the Storages object provided by TestComplete and store values to .ini or .xml files.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors