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

ClickOnce - change some files BeforePublish
RowEditEnded event fired before save
How can I set AllowAutoRedirect per request? Sharing HttpClient in multithreaded environment
Why do I get a constant return instead of scope_identity?
Intellisense XML Documentation for multiple variable declaration.
Create XML Schema with same element but different attribute name
Bigquery internalError when streaming data
Extension Method for anonymous type
Monitor.TryEnter just working the first time
serialization error with system.numerics.complex (MONO environment)
How to define web.config local variables
run into OutOfMemoryException after dbQuery
Web form application, Entity framework 6.1, Build Action and web.config
Cannot not access (404) PDF file on production server (ASP.NET MVC)
how to get return value when a thread is done
Convert a string[] to its associated array of enums [duplicate]

Categories

HOME
asp.net
http
url
sql-server-2014
popover
bigtable
mifare
restheart
normals
ethereum
fetch
ndepend
mamp
point-of-sale
hql
loss
dompdf
k-means
summernote
descriptor
polybase
connection-pooling
v4l2
handle
oracle10g
resx
checkmarx
jms-topic
availability
flickr
voyager
machine-code
zimbra
ragel
flex3
redhat-brms
const
jibx
jquery-inputmask
gem-fury
ui-grid
cakephp-3.2
amazon-fire-tv
confluent
visualizer
sharpdevelop
bioperl
htop
blackberry
nsalert
zedgraph
pyautogui
optional-parameters
distcc
netlink
cosign-api
nsoperationqueue
phpdesigner
pyshark
askbot
google-finance-api
matlab-engine
computability
webservices-client
borland-c++
transparentproxy
autopep8
google-experiments
caption
system.io.packaging
visual-studio-setup-proje
jsmpp
rssi
object-oriented-database
vbaccelerator
jfilechooser
grunt-contrib-imagemin
oc4j
xrandr
kademlia
google-checkout
magicsuggest
microsoft-speech-platform
optimistic-concurrency
parsec
idtabs
utm
qvariant
service-layer
functional-specifications
designated-initializer
netduino
moss2007-security
norton
noise-reduction
activescaffold
code-golf
weak-typing
scalable

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