c#


How can i run same codedUi order test with different CSV file(DataSource)


In codedUi test i'm accessing data from CSV file as below
e.g.
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "C:\\Datafile\\File1.csv", "File1#csv", DataAccessMethod.Sequential), DeploymentItem("File1.csv"), TestMethod]
public void method1()
{
String value = TestContext.DataRow["column1"].ToString().Trim();
}
But, problem with above code is that data-source file name is hard coded here.
Is there anyway to specify file name dynamically?I want to run same test using different CSV files.

Related Links

Split string to dictionary ordered by number of frequencies top 3000 c# [closed]
c# getting informaion from xml file
Stop main thread until WCF Call returns?
Padding is invalid and cannot be removed Exception while decrypting string using “AesManaged” C#
Get the name of the current executing function from within the function in C#
mime soap trailing section content errors
Create charts using Microsoft Chart Control
Loading bitmap takes too long time
How to track app pool recycle in a web application?
Does FormsAuthentication.SetAuthCookie() Require a Redirect?
Why is “Divide by Zero” or any other exception not raised?
Add values from datagridview cells
How to create new file or append file on Ubuntu 10.04 using C# asp.net
How to set active form for all time?
Use C# to save photos to directory that user has no access to
Рow to get 2 to 4 of the object element

Categories

HOME
oauth-2.0
internet-explorer
alasql
cors
compression
grpc
phantomjs
jquery-plugins
singleton
xss
yuv
country-codes
rethinkdb
software-collections
facebook-sharer
yui
facebook-marketing-api
beacon
printf
combinations
dev-c++
devexpress-mvc
bootstrap-accordion
nsopenpanel
custom-fields
restangular
osgi-bundle
apm
edsdk
log4net-configuration
android-scrollview
matlab-compiler
kofax
stochastic-process
cowboy
redbean
glide-image-library
bzip2
api-key
logan-square
weld
text-formatting
spring-cloud-bus
aws-rds
activesupport
sp
fckeditor
nservicebus6
nsalert
dynatable
cedar-bdd
optional-parameters
jspx
konakart
init
sprockets
django-taggit
sbt-proguard
jcalendar
ideavim
bluetooth-lowenergy-4.2
google-app-engine-php
opendolphin
kramdown
om
cyberduck
android-networking
glog
valdr-bean-validation
data-quality-services
drools-guvnor
pytz
im4java
visual-c#-express-2010
atg-dynamo
telerik-appbuilder
sendy
winrun4j
windows-phone-store
google-oauth-java-client
mobile-robots
infomaker
maven-webstart-plugin
select2-rails
msbuild-task
generator-expression
algol
configurationsection
beep
stl-algorithm
scsf
automapper-2
zend-validate
virtual-printer
isgl3d
digg
meego-harmattan
lwp
response-time
nscharacterset
simultaneous
oaw
web-widget
atmega16
file-icons
stackless
paperless

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App