Python Forum
How to make a test data file for the full length of definition?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a test data file for the full length of definition?
#1
How to make a test data file for the full length of definition?
================================================================

Thanks for your replies to my threads. Smile

I am looking to make test data file to satisfy the full length of the field definition.

For instance, with this data structure:

Name varchar (10)
Business Name varchar (15)
Address Varchar (20)

there are many more fields around 70-80 after the above sample

Test file to be with '|' delimiter (field separator)

The output like:

xxxxxxxxxx|uuuuuuuuuuuuuuu|pppppppppppppppppppp

The above is a sample. The fields can be filled with fake characters

If Numeric like number (9,2) with digits

If a character like varchar (20) mix of alphabets & digits

some files use ASCII '\031' as a delimiter.

I tried to do this with excel, I couldn't figure it out. I need forum's guidance.

Are we able to do this with Python code? Rolleyes

How do I do that?

Thanks for your guidance.
Reply


Messages In This Thread
How to make a test data file for the full length of definition? - by MDRI - Apr-01-2021, 01:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  class definition and problem with a method HerrAyas 2 293 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  mutable argument in function definition akbarza 1 511 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  error occuring in definition a class akbarza 3 751 Nov-26-2023, 09:28 AM
Last Post: Yoriz
  determine parameter type in definition function akbarza 1 609 Aug-24-2023, 01:46 PM
Last Post: deanhystad
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 981 Feb-15-2023, 05:34 PM
Last Post: zsousa
  shutil.move make data corrupt kucingkembar 0 822 Feb-01-2023, 01:30 PM
Last Post: kucingkembar
  [split] Explain the python code in this definition Led_Zeppelin 1 767 Jan-13-2023, 10:20 PM
Last Post: deanhystad
  Explain the python code in this definition Led_Zeppelin 1 1,123 Oct-27-2022, 04:04 AM
Last Post: deanhystad
  How to sort .csv file test log which item first fail and paint color SamLiu 24 5,094 Sep-03-2022, 07:32 AM
Last Post: Pedroski55
  meaning of -> syntax in function definition DrakeSoft 5 2,013 Apr-09-2022, 07:45 AM
Last Post: DrakeSoft

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020